Jump to content

Recommended Posts

Hi there,

 

I can't always get my laptop connected to the internet and I installed LAMP on it (using Ubuntu Hardy) in order to work on a web site that I was previously working on using WAMP.

 

I got the whole thing working perfectly (so far) except for one thing (that was never a problem on Windows) - with the internet not connected, any attempt to access my web site on localhost shows this error:

 

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required '/home/john/public_html/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line

 

When the laptop is connected to the internet, the web site is displayed correctly. I just want to be able to work on my web site offline.

 

public_html is my localhost folder.

 

Can anybody help me with this? Thanks a lot.

Hi there,

 

Cheers for the response.

 

I tried it out and now instead of getting the php error stated above, Firefox gives me the generic Offline Mode screen that I would get with any other web page. I seem to have gone back a step...

In Firefox, click File and then uncheck "Work Offline". I don't even know why that feature is there, but when it's checked you cannot browse any pages. Or is that not the offline mode you are referring to?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.