-1

When I want to open a php file that is saved in /var/www/html/ this message is shown:

problem loading page : unable to connect

I’ve checked all the files and their permissions...
I'm using Ubuntu 15.04

But when i'm online,i mean there is an internet connection it works perfectly... Is it OK?!!

Please help thank you all.

3
  • Have a look at this thread Unable to Connect Apache whether this helps.
    – BDRSuite
    Aug 26, 2015 at 8:04
  • Check if apache is running on port 80 with command sudo netstat -tunlep | grep :80, also share your error logs (/var/log/apache2/error.log) and virtualhost configuration Aug 26, 2015 at 8:27
  • is it ok? tcp6 0 0 :::80 :::* LISTEN 0 37723 3719/apache2
    – fateme
    Sep 2, 2015 at 6:59

1 Answer 1

-2

Check /etc/hosts file. Check value

hostname 127.0.0.1

replace with

hostname <current ipaddress>

See below link for installation of apache, mysql and php hope this help.

1
  • Just thought I'd explain the downvote, but this doesn't seem right. It just seems like a bad copy/paste from somewhere. Also, why would you replace the 127.0.0.1 address with the current IP address?
    – Dan
    Aug 28, 2015 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .