2015年4月26日 星期日

suPhp

http://blog.sinjakli.co.uk/2009/05/27/wordpress-with-suphp/




apt-get install apache2 php5 mysql-server libapache2-mod-suphp
Having followed the WordPress installation guide you should have a working database (I sort of recommend phpmyadmin for this, especially if you want to do this in a GUI) and configuration. Now for the important part. You need to configure suPHP, and to be honest this is almost completely trivial.  First enable the module:
a2enmod suphp
Then edit the suphp config file at /etc/suphp/suphp.conf so that it contains either the line:
check_vhost_docroot=true
or the line:
docroot=/path/to/your/docroot/
The first will allow suPHP to run anywhere you define a DocumentRoot in your Apache vhost, the latter will allow you to point suPHP to a specified DocumentRoot.


沒有留言:

張貼留言