I run all my Apache+PHP servers using mod_fcgid, and not mod_php5. When you install phpMyAdmin from the repositories in Ubuntu, it assumes mod_php5, and it won't work.
Ok, I got it to work. I hope it helps someone by putting it here.I had to change the /etc/apache2/mods-enabled/fcgid.conf to tell it to use php5-cgi:
root@srvr-test:/etc/apache2/mods-enabled# cat fcgid.confAddHandler fcgid-script .fcgi .phpFcgidConnectTimeout 20# Where to look for the php.ini file?# Maximum requests a process handles before it is terminatedMaxRequestsPerProcess 1000# Maximum number of PHP processesMaxProcessCount 10# Number of seconds of idle time before a process is terminatedIPCCommTimeout 240IdleTimeout 240#Or use this if you use the file aboveFCGIWrapper /usr/bin/php5-cgi .phpServerLimit 500StartServers 3MinSpareThreads 3MaxSpareThreads 10ThreadsPerChild 10MaxClients 300MaxRequestsPerChild 1000PHP_Fix_Pathinfo_Enable 1
Then I had to edit /etc/phpmyadmin/apache.conf to add +ExecCGI in the section:
root@srvr-sandbox1:/etc/phpmyadmin# cat apache.conf# phpMyAdmin default Apache configurationAlias /phpmyadmin /usr/share/phpmyadminOptions FollowSymLinks +ExecCGIDirectoryIndex index.php....
Comments
Post a Comment