Downgraded PHP to 5.4, but still stuck with "PHP 7.0 Configuration" in the UI

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

Status: 
Closed (fixed)

Comments

Try running rm /etc/webmin/virtual-server/links-cache/* and then reloading the page.

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

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.

Status: Active ยป Fixed