CentOS Linux 6.7
Webmin version 1.760
Virtualmin version 4.18.gpl
I have an issue with PHP after installing php-mcrypt. To install php-mcrypt I followed the instructions here:
http://stackoverflow.com/questions/17109818/install-php-mcrypt-on-centos-6
Specifically:
“I had the same issue, and found the previous suggestions gave me enough info to get it working on my server. The following is what I did:
1) Install EPEL repository (From: http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-r...):
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6.rpm epel-release-6.rpm
2) Install it via:
yum update
yum install php-mcrypt*
The yum update updated the repository reference on my server then the 2nd command got what I needed :)
3) Restart your webserver. For my apache install I did:
service httpd restart”
php-mcrypt is now installed and working with php 5.3 however now the server won't run multiple php versions.
When I try and use PHP 5.4 php doesn't execute when I try and browse a site it downloads a file rather than rendering the page in the browser.
Can anyone help me with this issue?
A little more detail on this; the issue I have now is I cannot run sites in either CGI or FCGI mode now I can only run as mod_php and when in mod_php mode the php for the site is controlled via /etc/php.ini not /home/site/.../php.ini
Something to do with the install of php-mcrypt now means CGI & FCGI modes no longer work. Can anyone help/advise me on how to fix this issue???
Can anyone help me with this issue?
OK for anyone who has this same issue I've resolved it, it turns out it relates to:
https://www.virtualmin.com/documentation/system/faq#Why_does_PHP_ProFTPd...
I found this
SetHandler application/x-httpd-php
in /etc/httpd/conf.d/php54-php.conf
Commented out and restarted Apache and now multiple php versions work as I can now set/use CGI & FCGI modes and selected php 5.4