CGI/FCGI issue

I have installed phpMyAdmin using Virtualmin scripts and after installation all sites which were using CGI/FCGI stopped to execute php. I found that topic which is similar to my issue but any solution suggested in it is not working for me.

Thanks for any tips

After update apache packages, I have got same problem.
I don’t know why mod_apache was uninstalled. I install it manually after that CGI/FCGI stopped to execute php. Now only “apache mod_php” works


Which distribution/version are you guys using?


Virtualmin version 4.18.gpl
Webmin version 1.760
Debian Linux 7
Linux 3.2.0-4-amd64 on x86_64

Virtualmin version 4.18.gpl
CentOS Linux 6.7 Linux 2.6.32-573.3.1.el6.x86_64 on x86_64

Okay, and what is the output of this command:

rpm -qa | grep php wbm-php-pear-1.5-1.noarch php-pear-1.9.4-4.el6.noarch

Ah, yeah, it does look like you’re using a third party repository there, which is likely the cause of the problem.

Just to verify, you’re saying you reviewed this particular solution here:

OK. I have downgraded PHP from 5.4 (Atomic) to 5.3 (EPEL) but still have same problem to run PHP as CGI/FCGI

Well - /etc/httpd/conf.d/php.conf had added AddHandler not SetHandler - commented out that line and now I can run PHP as CGI/FCGI

Great, I’m glad to hear you got it working now!


Same problem with Debian 7 x64

libapache2-mod-php5 5.4.45-0+deb7u1 php-pear 5.4.45-0+deb7u1 php5 5.4.45-0+deb7u1 php5-cgi 5.4.45-0+deb7u1 php5-cli 5.4.45-0+deb7u1 php5-common 5.4.45-0+deb7u1 php5-curl 5.4.45-0+deb7u1 php5-gd 5.4.45-0+deb7u1 php5-geoip 1.0.7-8 php5-imagick 3.1.0~rc1-1+b2 php5-mcrypt 5.4.45-0+deb7u1 php5-mysql 5.4.45-0+deb7u1

My sources.list

deb wheezy main

deb wheezy main
deb-src wheezy main

deb wheezy/updates main
deb-src wheezy/updates main

wheezy-updates, previously known as ‘volatile’

deb wheezy-updates main
deb-src wheezy-updates main
deb virtualmin-wheezy main
deb virtualmin-universal main