Php_admin_value migrating from php5 to php7

not sure if I’m hitting an apache change, a php change or a O/S change …

am taking a VirtualMin backup of a site on a RedHat6 that uses apache 2.2 and php 5.6 and restoring it on another much newer server … RedHat7, apache 2.6 and php 7.2

my issue … the old environment has the line in httpd.conf in the virtual host stanza

php_admin_value engine Off

but the new environment does not like it … so much so that when VirtualMin reloads apache at the end of the restore process, apache refuses to start, generating this in /var/log/messages

Jun 2 11:21:10 vhost92-test httpd: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration

in the past I have just waited for the restore to finish and then quickly edited httpd.conf by hand to delete that line …

FYI, new virtual servers created on the new server work find from day one …

… but want to explore better ways to deal with this … for one, perhaps its a bug – that is, the restore routine should notice the different environment and not put that line into httpd.conf

… or … is there a way I can prep the old virtual server in the older environment just before making my Backup … or manually expand, edit, and re-create any of the .tar.gz files in the backup bundle.

and today as preparation for testing, I updated my new server to wbm-virtual-server-6.09

Verne

Maybe related to this

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.