http://localhost/ now working in browser mac

1,596

Solution 1

Try running the following command:

netstat -an -p tcp | grep 80 | grep LISTEN

you should get a line like this one :

tcp4       0      0  *.80                   *.*                    LISTEN

If you don't, your server is not started, whatever the reason is.

If you are trying to access is your Web sharing, check the System settings -> Sharing -> Personal Web Sharing is active.

Solution 2

The error log reveals that \xe2\x80\x9c appears twice in the path. That means that you have used rather than " in your path, which will not be interpreted correctly.

Replace them both with " instead and you should be good to go!

Share:
1,596

Related videos on Youtube

Pety Rewt
Author by

Pety Rewt

Updated on September 18, 2022

Comments

  • Pety Rewt
    Pety Rewt almost 2 years

    The problem with displaying google picker in apps script when placing the script in a iframe of another web site. When you call the picker, a white square is displayed.

    Not in the frame of another web site, the picker works fine.

    HtmlService google apps script

    function doGet() {
    return HtmlService.createTemplateFromFile('form.html')
        .evaluate() 
        .setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);}
    
    https://stackoverflow.com/questions/40842627/embedding-google-apps-script-in-an-iframe#answer-40843413


    The picker is based on this documentation -

    https://developers.google.com/apps-script/guides/dialogs#file-open_dialogs


    I decided to try a demo premium script File Upload Form.

    https://ctrlq.org/code/19747-google-forms-upload-files


    Will insert the script into the frame, but the result was similar - an empty white square.

    https://script.google.com/macros/s/AKfycbxlX3r_dt_ZLZC9TqloaqtdextROJoIH9mUDu3MWOiXtI6ADhqb/exec


    Example

    http://jsfiddle.net/qqq7df51/

    Whether it is possible to solve this problem.

    • imtheman
      imtheman almost 12 years
      What happens if you do http://127.0.0.1/?
    • Bhushan
      Bhushan almost 12 years
      same not working
    • YK_NL
      YK_NL almost 12 years
      What error message do you get in the browser?
    • Bhushan
      Bhushan almost 12 years
      Oops! Google Chrome could not connect to localhost
    • Rhys
      Rhys almost 12 years
      Silly question: is apache2 started and listening on port 80?
    • Bhushan
      Bhushan almost 12 years
      how do I check that? if its not, how do I start it?
  • Bhushan
    Bhushan almost 12 years
    how do I check if web-server is running and if not running how do I start it
  • Bhushan
    Bhushan almost 12 years
    I tried stoping and restarting web server with apachectl stop and apachectl start command but still not working
  • Dmitri Shuralyov
    Dmitri Shuralyov almost 12 years
    How to check if a web-server is running depends on the web-server. Which web-server did you install? Did you try following the instructions they've laid out for getting started?
  • Bhushan
    Bhushan almost 12 years
    the that comes with snow leopard, i guess its apache web server
  • Bhushan
    Bhushan almost 12 years
    I can't see anything. how do I fix this?
  • Julien Ch.
    Julien Ch. almost 12 years
    What do you expect to find when you access localhost ? Did you check that "Personal web sharing" is active ?
  • Bhushan
    Bhushan almost 12 years
    yes it is active. I expect to see It Works message. Actually I am trying to setup phpmuadmin
  • Julien Ch.
    Julien Ch. almost 12 years
    From your error string i woulg guess that you weongly copied and pasted left and right quotation marks ( like “,” or «,») when setting up phpmyadmin. Did you check that?
  • Pety Rewt
    Pety Rewt about 7 years
    I tried to install in the parent page X-Frame-Options: ALLOW-FROM script.google.com, did not help. I found out that the error Invalid 'X-Frame-Options' header encountered when loading' docs.google.com/…) )&rpctoken=x7q7llusvmq1&rpcService=tsleem8si4fc&thirdParty= True ':' ALLOW-FROM script.google.com 'is not a recognized directive. The header will be ignored. appears always. When outside the frame everything works.
  • Pety Rewt
    Pety Rewt about 7 years
    When working in a iframe, an error is added Uncaught Error: Incorrect origin value. Please set it to - (window.location.protocol + '//' + window.location.host) and the picker is not displayed, only the white square.
  • Pety Rewt
    Pety Rewt about 7 years
    Uncaught Error: Incorrect origin value. Please set it to - (window.location.protocol + '//' + window.location.host) of the top-most page at new cJ (docs.google.com/picker/...-picker_modularized_opc.js:940:94‌​) at _createPicker (docs.google.com/picker/static/…) at init (docs.google.com/……%7D))&rpctoken=1whfx63vzx2v&rpcService=..‌​.=true:273:23) at onload (docs.google.com/……%7D))&rpctoken=...y=true:243:44)
  • 365SplendidSuns
    365SplendidSuns about 7 years
    @PetyRewt, I'm having the same problem displaying a Google Sheet in an iFrame. The sheet shows fine but if you need to open the picker to import from another sheet or insert n image etc then the picker shows blank with the same error message. Since I don't have the google sheets code on my server is there somewhere I can put the setOrigin code?
  • Pety Rewt
    Pety Rewt about 7 years
    Perhaps you need to implement a insert images as an add-on to the table using google apps script developers.google.com/apps-script/articles/… When implementing a picker change setOrigin in function createPicker. developers.google.com/apps-script/guides/…