Skip to main content
Inspiring
July 27, 2010
Answered

getting php server going in mac 10.6

  • July 27, 2010
  • 2 replies
  • 843 views

1 - turned on web sharing in sys prefs

2 - i set up a new blank site in DW in the webserver docs folder of osx

html works ok - but php is not working ....

Q: how do I turn on php built in server on 10.6?

This topic has been closed for replies.
Correct answer

locate the hidden file /etc/apache2/httpd.conf and comment out line 115

#LibraryModule php5_modulte libexec/apache2/libphp5.so

Then locate /etc/apache2/php.ini and change the following lines:

/var/tmp/mysql.sock on line 1060, 1213, and 1272

change to

/tmp/mysql.sock

finally setup timezone on line 997 (remove semicolon at the beginning of the line)

date.timezone = "America/Los_Angeles"

Then depending on if you require a database or not instal MySQL and phpMyAdmin. Relaunch Apache by stopping and restarting web sharing in System Preferences.

2 replies

jon8
Inspiring
August 1, 2010

many mac users simply download MAMP which dumbs down the entire process to a start and stop button.  you can choose your ports and served folder location (if you want to use Sites).

Correct answer
July 27, 2010

locate the hidden file /etc/apache2/httpd.conf and comment out line 115

#LibraryModule php5_modulte libexec/apache2/libphp5.so

Then locate /etc/apache2/php.ini and change the following lines:

/var/tmp/mysql.sock on line 1060, 1213, and 1272

change to

/tmp/mysql.sock

finally setup timezone on line 997 (remove semicolon at the beginning of the line)

date.timezone = "America/Los_Angeles"

Then depending on if you require a database or not instal MySQL and phpMyAdmin. Relaunch Apache by stopping and restarting web sharing in System Preferences.

revdaveAuthor
Inspiring
July 27, 2010

THANKS IPHP - THAT WORKED GREAT! Now I'm up and running!