Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

getting php server going in mac 10.6

Contributor ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

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?

TOPICS
Server side applications

Views

749
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Jul 27, 2010 Jul 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 restarti

...

Votes

Translate
Guest
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 01, 2010 Aug 01, 2010

Copy link to clipboard

Copied

LATEST

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).

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines