Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently installed mod_fcgid and suExEc on my Ubuntu server following these instructions:

http://www.howtoforge.com/Fhow-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-10.04

Since suExec does not support symbolic links (needed to use phpMyAdmin because it resides in /usr/share/phpmyadmin), the ServerFault article here poses a workaround.

It directs you to edit /etc/apache2/mods-available/suphp.conf, however, my configuration uses only apache2-suexe, libapache2-mod-fcgid, and php5-cgi -- not suphp.

Can I apply the workaround using my environment (fcgid and suexec instead of suphp). If so, where should I place the directives?

share|improve this question
add comment

1 Answer

If you want to use PHP as a CGI script and use that along with suexec, you can do so, but the accepted docroot for suexec is /var/www which means that it would fail anyway with something in /usr/share/*. If you wanted to use suexec for this, you'd need to recompile suexec with an alternative docroot. I suggest that is much less preferable than many other options, such as just using suphp itself.

My recommendation is to use suphp but it's not impossible to use suexec, but it would be necessary to use run PHP as a CGI, which isn't awesome.

Another option is to use apache2-mpm-itk instead and just fork out Apache processes as different users and run your PHP directly that way.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.