I just updated to Sierra from El Capitan. When I went to continue my work on my localhost, which happens to be on my Mac, it stopped working. When I go to http://localhost/
1st it says "It works", when I reload the page, it says "This site can't be reached", the same when I go to localhost/~matthew
. It does not list all the files and folders like it should. Does anybody know why or have had a similar problem? Any way to fix it? I've checked Terminal and localhost is in fact running.
I've already tried using localhost/~matthew/
, http://localhost/~matthew/
and [actual ip address]/~matthew/
. None of these work. The server is apache. The Sites
folder is already in place under Users/Matthew/
.
If you uncommened loading php5_module in the /etc/apache2/httpd.conf, DO NOT COMMENT OUT. Make sure this line commented (which means, # has to be prefixed) #LoadModule php5_module libexec/apache2/libphp5.so
Also, when you change httpd.conf file, make sure to execute sudo apachectl restart
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.