getting php server going in mac 10.6
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?
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?
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.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.