Multiple PHP Versions Issue

So I followed the andreychek instructions for adding a 2nd PHP to my system, thanks, great work, but seem to have found a little bug.

I set virtualmin to use the "old" version as the default, and then went into my test domain and set it to use 5.4.

Phpmyadmin was complaining about needed an update, so I said (using virtualmin) go ahead.

it complained about not being able to find the php.ini! Humm, its always been there.

So, looking at the folders, on that domain, we find these 2 folders:

/home/domain/etc/php5
/home/domain/etc/php.ini  ->  php5.4/php.ini

Whoops. No such place.

I can fix this manually, no issue there, but I think Virtualmin means to do the right thing.

Status: 
Closed (fixed)

Comments

I think I see the bug here - to work around it, go to the Website Options page, change to CGI mode for PHP, save, then go back, change to fcgid mode, and re-save.

That "fixes" it, and adds a new PHP 5.4 Configuration option under services that wasn't there before. Knowing the reason makes it way easier to fix I am sure.

Great - the next release of Virtualmin will include a proper fix for this, so that the php.ini file is created when you change the PHP version for a domain.

Automatically closed -- issue fixed for 2 weeks with no activity.