- Navigate to
/etc/apache2
- Do a search for “php”. You should see the following line:
#LoadModule php5_module libexec/apache2/libphp5.so
Remove the “#” - Save the file. You may need to authenticate upon saving.
- run
sudo apachectl restart
to restart apache - visit
localhost
you will see It works! /etc/apache2/httpd.conf
Search for “virtual” in your text editor. You should see the following lines:
|
|
Uncomment the second line that starts with “#Include” by removing the “#”. We now need to modify httpd-vhosts.conf file to add our virtual hosts.
- open
/etc/apache2/extra/httpd-vhosts.conf
|
|
Another tutorial
- Install : XAMPP Mac OS X 1.7.3 download
sudo su
/Applications/XAMPP/xamppfiles/xampp start
if you see
|
|
do these commands
|
|
- in http://localhost you can see the test site