HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Squeeze (http://www.howtoforge.com/forums/showthread.php?t=56628)

maxxer 21st March 2012 14:01

How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Squeeze
 
What about phpmyadmin? Anyone configured it?
Just linking /etc/phpmyadmin/apache.conf won't process php files! :(

sjau 21st March 2012 15:09

it should be enough to just:

Code:

apt-get install phpmyadmin

maxxer 21st March 2012 15:13

no. that procedure creates the link to /etc/phpmyadmin/apache.conf, but then I believe fcgid doesn't have the permission to read from /usr/share/phpmyadmin, because when I try to access http://server/phpmyadmin I get offered the php source and not the real php web page.

Found out that in /etc/phpmyadmin/apache.conf, before <IfModule mod_php5.c> you need to add:

Code:

    Options FollowSymLinks +ExecCgi
    <IfModule mod_fcgid.c>
            AddHandler fcgid-script .php
            FCGIWrapper /var/www/php-fcgi-scripts/web1/php-fcgi-starter .php
            AllowOverride All
            Order allow,deny
            allow from all
    </IfModule>



All times are GMT +2. The time now is 18:43.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.