How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Squeeze

Discussion in 'HOWTO-Related Questions' started by maxxer, Mar 21, 2012.

  1. maxxer

    maxxer Member

    What about phpmyadmin? Anyone configured it?
    Just linking /etc/phpmyadmin/apache.conf won't process php files! :(
  2. sjau

    sjau Local Meanie Moderator

    it should be enough to just:

    apt-get install phpmyadmin
  3. maxxer

    maxxer Member

    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:

        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

Share This Page