I have upgraded to El Capitan a few months ago. I have followed a few guides to install and setup AMP: Get Apache, MySQL, PHP and phpMyAdmin working on OSX 10.11 El Capitan
But I can't access my /Sites folder, because I can't connect to "localhost".
localhost (I actually tried with "localhost" typed in the address bar, and with my machine's address 192.etc) doesn't display "It works" message, instead I see this:
Your website. Create and publish your own website quickly and easily using iWeb, Pages, and many other applications available for Mac OS X.and a few other sentences.
neither
localhost/~username(username = my name), norlocalhost/usernamework - Safari displays a message that it can't connect to the localhost.and of course I can't reach my Sites folder, because two previous steps don't work.
httpd -v Server version: Apache/2.4.18 (Unix) Server built: Feb 20 2016 20:03:19
Apache configtest is successful:
apachectl configtest
Syntax OK
I have seen these discussions/pages:
- El Capitan Safari Can't open localhost
- http://chat.stackexchange.com/rooms/34060/discussion-between-fred-j-and-max-ried
- Setting up a local web server on OS X
- How to install MySQL on Mac OS X El Capitan
but I am not sure if this is applicable to my situation.
Aslo, what's surprising, given the situation with apache, is that I can access phpmyadmin and mysql tables.
I will be grateful for your help!
httpd.conf– Allan Dec 09 '16 at 15:02The requested URL /~username/Sites was not found on this server, though today I don't get the message zSafari can't load a pagewhen I try to load mylocalhost/~username`. It used to work though, a few months ago. I do need help on this issue. I am just learning, so the all is still difficult for me. – Vitale Dec 10 '16 at 07:18