Setting your Apache2 and PHP5 after upgrading Leopard

2007年 10月 26日

After upgrading Leopard (not clean install), I could not browse my local web server. Then I have decided to set Apache2 and PHP5 as follows.

  1. Copy the old config file to the new directory for Apache2.
    sudo cp /etc/httpd/users/{user_name}.conf /etc/apache2/users/{user_name}.conf
  2. Comment out this line in /etc/apache2/httpd.conf to enable PHP5.
    #LoadModule php5_module  libexec/apache2/libphp5.so
  3. Restart Apache.
    sudo apachectl restart

That’s it. Now, my only question is whether or not I should change the group name in my home directory. On Tiger, the group name is same as the owner name, but it has changed to “staff” (like past OS X Server system) on Leopard.
Apple Store(Japan)

Tags: