问题
I have put together a small ubuntu 10.04 server with apache2 and php for use only for testing purposes. I am finding suphp keeps getting in my way. Doubtless this is a useful tool for security etc, but right now, as this is only a local testing ground I would like to disable it to prevent it continually throwing errors relating to file ownership etc.
So, as the title says: How do I disable suphp on ubuntu server 10.04.
Thanks
回答1:
a2dismod suphp -> to disable su php mod
回答2:
instead of disabling all use virtual hosts conf file or http.conf and add
<VirtualHost ..>
suPHP_Engine off
...
来源:https://stackoverflow.com/questions/8462428/how-do-i-disable-suphp-on-ubuntu-10-04-server