The Apache Foundation webserver

Server Migrate from suPHP to mod_fcgid

I went ahead and migrated the configs on the server from suPHP to mod_fcgid. So far the performance is much better. Pages are loading faster and we are able to use APC again.

The steps were really just installing mod_fcgid, then add a line in the httpd conf, setup the wrapper script and change the vhosts.

There is already tons of information on the subject so I will just point to a few pages to help others…

I don’t use Ubuntu, but it helps to see some steps.
http://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-11.10

ArchLinux simple install guide
https://wiki.archlinux.org/index.php/Apache_and_FastCGI

Says Apache 1.X but some information
http://www.fastcgi.com/drupal/node/10

Not talking about vhosts but some good info
http://alexforencich.com/wiki/en/linux/arch_php_fcgid

By |July 31st, 2013|Categories: General|Tags: , , , |2 Comments

Apache, PHP, suPHP Problems

Last night if you tried visiting you might have gotten some errors on the site. I upgraded the servers which included a slightly newer version of PHP, Apache, and suPHP.

Everything upgraded fine but websites would not load. After some digging it was apparent that the problem was directly related to the PHP setting open_basedir. I have each virtual host configured to use its own php.ini file and that file was not being used, trying instead to use the default php.ini file in /etc/php. Which of course did not have the correct open_baseidir settings.

For some reason Apache or PHP stopped caring about the lines in my httpd-vhosts.conf file that stated:


SetEnv PHPRC /path/to/specific/php.ini

I could never find out why it was ignoring this line now. But after some research I found another that provides the same thing. Since I am using suPHP I went with the following for each vhost.


suPHP_ConfigPath /path/to/specific/folder/containing/php.ini

It’s a little frustrating that I cannot name the php config files after the vhosts because it wants a folder path without a file name, but it will do for now.

Another site that might help.

By |June 5th, 2013|Categories: General|Tags: , , , , |0 Comments
Go to Top