Sorry, I don't have a link for you but a few simple tips might help you. When using suphp ownership of files is very import. I'm not sure what kind of defaults Ubuntu ships with but looking in /etc/suphp/suphp.conf will more than likely help you understand things a bit better.
A couple of points: The docroot directive specifies which directories should use suphp. This is very handy if you want to use suphp for some directories but not for others. Some web applications install stuff in say /usr/share and that stuff usually does not work well under suphp unless you change ownership of all files. There are also directives named min_uid and min_gid, these restrict who can run php scripts under the docroot directory. More than likely since you are getting 500 errors this is due to the user/group of the web pages being lower that what is allowed. Checking /var/log/suphp/suphp.log might prove to be a valuable resource. Hope this helps -- David On Thu, 2011-11-03 at 13:53 -0700, Richard C. Steffens wrote: > Does anyone have a good site reference for how to work with suPHP on > Apache 2? > > Using Synaptic, I installed apache2, which brought along > apache2.2-common and apache2.2-bin. > The version is 2.2.14-5ubuntu8.6. > > Next I installed suphp-common and libapache2-mod-suphp which brought > along php5-common and php 5-cgi. > Both suphp packages are version 0.7.1-1. The php5 packages are version > 5.3.2-1ubuntu4.10. > > If I browse to localhost the "It works!" page opens, showing that Apache > is working. If I change the name from index.html to index.php I get the > "500 Internal Server Error" error message. > > I'm assuming that there must be something different in the way php files > are handled, or perhaps there's something else I was supposed to do that > doesn't show up in the installation instructions I've read. > > Pointers to appropriate documentation are appreciated. > > Thanks. > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
