Apache / SuExec / FastCGI / phpmyadmin problem
All works well for named vhosts but when i install phpmyadmin and try to access the url
Obviously i tried to change the conf of phpmyadmin in apache to match the conf of my vhosts (the ones working) but with no luck. Aside from all sorts of erros, no can do. :\
i don't have mod_php installed.
root@guardian:~# dpkg -l | grep apache2
ii apache2 2.2.12-1ubuntu2.2 Apache HTTP Server metapackage
ii apache2-mpm-prefork 2.2.12-1ubuntu2.2 Apache HTTP Server - traditional non-threade
ii apache2-suexec 2.2.12-1ubuntu2.2 Standard suexec program for Apache 2 mod_sue
rc apache2-suexec-custom 2.2.12-1ubuntu2.2 Configurable suexec program for Apache 2 mod
ii apache2-utils 2.2.12-1ubuntu2.2 utility programs for webservers
ii apache2.2-bin 2.2.12-1ubuntu2.2 Apache HTTP Server common binary files
ii apache2.2-common 2.2.12-1ubuntu2.2 Apache HTTP Server common files
ii libapache2-mod-fcgid 1:2.2-1 an alternative module compat with mod_fastcg
rc libapache2-mod-php5 5.2.10.dfsg.1-2ubuntu6.4 server-side, HTML-embedded scripting languag
root@guardian:~# dpkg -l | grep php
rc libapache2-mod-php5 5.2.10.dfsg.1-2ubuntu6.4 server-side, HTML-embedded scripting languag
ii php5-cgi 5.2.10.dfsg.1-2ubuntu6.4 server-side, HTML-embedded scripting languag
ii php5-common 5.2.10.dfsg.1-2ubuntu6.4 Common files for packages built from the php
ii php5-mcrypt 5.2.6-0ubuntu2 MCrypt module for php5
ii php5-mysql 5.2.10.dfsg.1-2ubuntu6.4 MySQL module for php5
rc phpmyadmin 4:3.2.2.1-1 MySQL web administration tool
Here's the conf of a php-working vhost
<virtualhost 109.74.xxx.xxx:80="">ServerName domain.net
ServerAlias www.domain.net
ServerAdmin mail@domain.net
DocumentRoot /var/www/domain.net/web
<ifmodule mod_fcgid.c="">SuexecUserGroup web web
PHP_Fix_Pathinfo_Enable 1
<directory var="" www="" domain.net="" web="">Options +ExecCGI
AllowOverride All
AddHandler fcgid-script .php
FCGIWrapper /var/www/php-fcgi-scripts/domain.net/php-fcgi-starter .php
Order allow,deny
Allow from all</directory></ifmodule>
ErrorLog /var/www/domain.net/logs/error.log
CustomLog /var/www/domain.net/logs/access.log combined
ServerSignature Off</virtualhost>
Contents of php-fcgi-starter
#!/bin/sh
PHPRC=/etc/php5/cgi/
export PHPRC
export PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_CHILDREN=8
exec /usr/lib/cgi-bin/php
I've tried to configure phpmyadmin and failed.
What can i do? Can someone shed a light on this subject?
Thanks
Nuno