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 https://www.virtualmin.com/node/25521 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

Howdy,

Which distribution/version are you guys using?

-Eric

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

php-pdo-5.4.45-51.el6.art.x86_64 php-odbc-5.4.45-51.el6.art.x86_64 php-imap-5.4.45-51.el6.art.x86_64 wbm-php-pear-1.5-1.noarch php-common-5.4.45-51.el6.art.x86_64 php-cli-5.4.45-51.el6.art.x86_64 php-gd-5.4.45-51.el6.art.x86_64 php-snmp-5.4.45-51.el6.art.x86_64 php-xml-5.4.45-51.el6.art.x86_64 php-pear-1.9.4-4.el6.noarch php-5.4.45-51.el6.art.x86_64 php-mcrypt-5.4.45-51.el6.art.x86_64 php-mbstring-5.4.45-51.el6.art.x86_64 php-mysql-5.4.45-51.el6.art.x86_64 php-pgsql-5.4.45-51.el6.art.x86_64 php-xmlrpc-5.4.45-51.el6.art.x86_64

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:

https://www.virtualmin.com/documentation/system/faq#Why_does_PHP_ProFTPd_no_longer_work_after_performing_updates_I-m_using_CentOS_and_enabled_third_party_repositories

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!

-Eric

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 http://ftp.nl.debian.org/debian/ wheezy main

deb http://ftp.nl.debian.org/debian/ wheezy main
deb-src http://ftp.nl.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

wheezy-updates, previously known as ‘volatile’

deb http://ftp.nl.debian.org/debian/ wheezy-updates main
deb-src http://ftp.nl.debian.org/debian/ wheezy-updates main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-wheezy main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main