From httpd -v
, I get the below:
Server version: Apache/2.4.16 (Unix)
Server built: Aug 22 2015 16:51:57
Also, etc/hosts
is as follows:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
I start the server using sudo apachectl start
and it returns no error. However, I am not able to connect to localhost
on a web browser. Would you suggest a solution? Thanks for your time.
Please see if https://donatstudios.com/PHP-in-OS-X-Yosemite helps you re-configure the httpd.conf