Submitted by gyorgy.chityil@... on Fri, 04/29/2016 - 06:25
Seemingly when php is updated from a 3rd party repo, Virtualmin uses incompatible Apache php conf settings. As a result, php pages are downloaded in the browser instead of the server parsing them. The issue seems to be affecting fcgid users since httpd.conf gets php_admin value off lines added to vhosts, and commenting them out solves the issue.
Lots of other mentions around the web
Status:
Active
Comments
Submitted by andreychek on Fri, 04/29/2016 - 10:16 Comment #1
Howdy -- that's unfortunately something that's outside our control.
Third party repositories do indeed often cause configuration problems and software conflicts, as they install their own configuration files, which overwrite or override the existing config.
So much so, that we actually recommend against their use. We've seen quite a few serious problems arise when using packages from third party repositories.
Instead, we offer instructions on how to setup a second and newer PHP version from a known good repository:
https://www.virtualmin.com/documentation/web/multiplephp
Submitted by gyorgy.chityil@... on Sat, 04/30/2016 - 14:44 Comment #2
Thx, I tried following that, but the rpm in your guide is lacking some of the most basic php packages. Following this scl guide seems to have worked much better. https://www.softwarecollections.org/en/scls/rhscl/rh-php56/
Submitted by gyorgy.chityil@... on Sat, 04/30/2016 - 17:34 Comment #3
Submitted by gyorgy.chityil@... on Sat, 04/30/2016 - 17:35 Comment #4
PS Even with an scl php 7, I encountered this php_admin_value bug in Virtualmin :) So, it seems like it is not just 3rd party repo related.
Submitted by andreychek on Sat, 04/30/2016 - 17:42 Comment #5
What setting is Virtualmin using that's causing a problem?
Submitted by gyorgy.chityil@... on Sat, 04/30/2016 - 18:28 Comment #6
php_admin_value engine Off
The solution was to comment out these VirtualHost entries in /etc/httpd/conf/httpd.conf
I added some links in the issue description, but if you search for Virtualmin and php_admin_value engine you will have lots of results :)
Submitted by gyorgy.chityil@... on Sun, 05/01/2016 - 03:35 Comment #7
Submitted by gyorgy.chityil@... on Sun, 05/01/2016 - 04:35 Comment #8
I have encountered this issue many times, especially with PHP7.
Commenting out php_admin_value engine Off was the solution.
Submitted by goodme on Fri, 09/02/2016 - 11:02 Comment #10
Agree, after few days in hair tearing episode, I finally found this fix. With mine using Webmin version 1.810, Virtualmin version 5.04, with php 5.6.25 from remi, this bug seems keep popping out. Any idea if we can find this issue on http.conf template to sort it fix it temporary? It seems generated on a new virtual account after this recent update, while leaving pass account normal.
Submitted by andreychek on Fri, 09/02/2016 - 11:32 Comment #11
That should only be a problem if the repo is overriding the configured PHP Execution Mode with mod_php.
How to check for that is described here:
https://www.virtualmin.com/documentation/system/faq#toc-why-does-php--pr...