Moving a subserver to a new parent, using fgci php, php.ini not updated

using virtualmin gpl somo time now i switched from mod_php to mod_fcgi apache module. After migrating a subserver to become a new parent server i was not able to perform a login to the website on the new parent server. Unfortunately the login kept just telling me to check my credentials (TYPO3 btw)

It turned out the php.ini file residing in /home/new_path/etc/php5/ was not updated to fit the path of the newly created parent server

upload_tmp_dir = /home/old_path_that_wont_exist/tmp
session.save_path = /home/old_path_that_wont_exist/tmp

kind regards, G.Gothe

Status: 
Closed (fixed)

Comments

Virtualmin version is 3.81.gpl

Did you switch from mod_php to fcgid mode before or after moving the domain?

good point, reproduced it:

When the server ist set to fcgid before it is moved the php.ini settings are updated correctly.

Issue occurs when you move a subserver to become parent and then switch from mod_php to fcgid. The php.ini is generated with the paths pointing to the former servers dirs, regadless if the former parent server still exists.

Ok, that explains it. I will modify Virtualmin in the next release to properly fix the .ini files in this case.

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