CGI/FCGI issue

12 posts / 0 new
Last post
#1 Thu, 09/17/2015 - 10:03
Interact

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

Fri, 09/18/2015 - 03:42
Hotdancer

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

Fri, 09/18/2015 - 10:02
andreychek

Howdy,

Which distribution/version are you guys using?

-Eric

Fri, 09/18/2015 - 10:07
Hotdancer

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

Fri, 09/18/2015 - 10:10
Interact

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

Fri, 09/18/2015 - 11:14
andreychek

Okay, and what is the output of this command:

rpm -qa | grep php

Fri, 09/18/2015 - 12:18
Interact
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
Fri, 09/18/2015 - 13:07
andreychek

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...

Fri, 09/18/2015 - 13:38 (Reply to #8)
Interact

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

Fri, 09/18/2015 - 13:43 (Reply to #9)
Interact

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

Fri, 09/18/2015 - 14:06
andreychek

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

-Eric

Sat, 09/19/2015 - 10:57
Hotdancer

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

Topic locked