Submitted by Lucian on Mon, 11/21/2016 - 12:19
Hello,
We installed PHP7 on our server initially, but downgraded to stock 5.4; now however we are stuck with that menu entry in Virtualmin which is incorrect. Even though we use Nginx + PHP 5.4, phpinfo for the site still shows php.ini is loaded from $homedir/etc/php70/php.ini ...
How can we get the PHP config reset?
CentOS 7 with Nginx and stock PHP 5.4 (was 7.0 at some point).
Files:
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Mon, 11/21/2016 - 18:00 Comment #1
Try running
rm /etc/webmin/virtual-server/links-cache/*
and then reloading the page.Submitted by Lucian on Tue, 11/22/2016 - 03:33 Comment #2
Thanks Jamie, however there is no such directory. I found this one though: /var/webmin/modules/virtual-server/links-cache/
I removed the files inside it, however no improvements.
What seems to work is:
1 - remove $home/etc/php70 (otherwise we end up with 2 PHP config lines in the menu, see http://storage2.static.itmages.com/i/16/1122/h_1479807262_2277989_20b737... )
2 - edit the virtual server and disable nginx and nginx+ssl features, then re-enable them.
Good job this hasn't gone to production yet..
Thanks, Lucian
Submitted by JamieCameron on Tue, 11/22/2016 - 15:39 Comment #3
Ok, I see the bug here - the problem is that those links to configure PHP are determined by which
php.ini
files exist, NOT which versions are available. This will be fixed in the next release.Submitted by JamieCameron on Tue, 11/22/2016 - 15:39 Comment #4
Submitted by Lucian on Thu, 12/01/2016 - 11:20 Comment #5
Thanks Jamie