Check for writeable config file

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Streamer
New Member
New Member
Posts: 7
Joined: Wed Mar 31, 2010 4:44 am

Check for writeable config file

Post by Streamer »

Trying to upgrade to 2.2.10.

"Check for writeable config file
The HTTP process cannot write to the config.php file. Please try to change the permissions on this file to 777 until the upgrade process is complete"

I have set chmod 777 config.php its -rwxrwxrwx but still the same error.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1036
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Check for writeable config file

Post by DIGI3 »

It may be an ownership issue rather than permission. You'd need to see what user PHP/phar is running as and compare it to the owner of the config.php file. It's possible you'll need to contact your host for assistance if you don't have shell access.
Not getting the answer you need? CMSMS support options
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1036
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Check for writeable config file

Post by DIGI3 »

Also in rare cases I've also seen that problem come up when there's other non-writable files in the site directory. I don't know if that's still a thing, but worth checking.
Not getting the answer you need? CMSMS support options
Streamer
New Member
New Member
Posts: 7
Joined: Wed Mar 31, 2010 4:44 am

Re: Check for writeable config file

Post by Streamer »

Thanks for the reply. I have shell access, how do I check what user PHP/phar is running?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3274
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Check for writeable config file

Post by velden »

777 should be good.

Make sure the browser is refreshed, or start the upgrade from another (incognito) browser.
Post Reply

Return to “CMSMS Core”