php.ini error after installing various updates

6 posts / 0 new
Last post
#1 Mon, 12/05/2016 - 14:54
h4ns3n

php.ini error after installing various updates

I'm seeing the following error after "checking configuration". Nothing has been changed on the server wrt php except virtualmin updates that have been applied. The error message is below.

The following PHP versions are available : 5.6.27 (/usr/bin/php5-cgi)

PHP versions have changed to 5 since last check. Regenerating any missing php.ini files.

Failed to copy /etc/php5/apache2/php.ini to /home/repsolutions/domains/repsolutions.panel.automaticforthepeople.web.za/etc/php5/php.ini : cp: cannot create regular file ‘/home/repsolutions/domains/repsolutions.panel.automaticforthepeople.web.za/etc/php5/php.ini’: No such file or directory

Any advice how I can resolve this error?

Tue, 12/06/2016 - 10:17
cmeis

Same here. CentOS 6 x64 and VirtualMin 5.05. This does seem to happen only for server ALIASES, not real servers...

Sun, 12/18/2016 - 10:20 (Reply to #2)
h4ns3n

Yes, agreed, only virtual servers.

Signature: Implement powerful CRM solutions using: Agile CRM: Advanced Marketing Automation (Note: This is an affiliate link)

Wed, 12/07/2016 - 04:07
bobemoe

Same here. Debian 7.11, Virtualmin 5.05.

Also experiencing sites down because apache is now running the web apps as www-data rather than the site owner. Not sure if that is related but its the reason I ran check-config and the only clue I can find so far...

Wed, 12/07/2016 - 05:04
bobemoe

OK, so I fixed my cgi owner issue by running virtualmin modify-web --mode fcgid on all affected domains, which although the sites were already set to fcgid seemed to regenerate the apache conf files differently this time and fix my issue.

I'm not sure if this is actually related to the OP, but I suspect the failure to regen config files could be the cause? If not, sorry to hijack the thread. I am still getting the OPs error though.

Tue, 01/10/2017 - 00:11
thisara

Same here with Cent OS 7. On mine, the re-check config routine tries to copy php.ini to an alias domain where the folder /home/.../etc/php5/ doesn't exist.

As per this post (https://www.virtualmin.com/node/44325), one stated as below.

"This is a bug in Virtualmin - it shouldn't be trying to generate missing php.ini files for alias domains. However, it's harmless and can be ignored. We will fix it in the next release though."

I'm seeing a message on front page as below. But can't proceed.

"Information! Virtualmin's configuration has not been checked since it was last updated. Click the button below to verify it now."

Any updates?

Topic locked