Zen Cart Logo
Forums / Upgrading to 1.5.x / Odd problem with configure.php when trying to upgrade

Odd problem with configure.php when trying to upgrade

Views: 2,097

Results 1 to 5 of 5
19 Mar 2012, 5:09 PM
#1
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Odd problem with configure.php when trying to upgrade

I've uploaded all the files to my ftp site, and changed includes/configure.php permissions to 644. I goto my website/zc_install, click continue, select I have read and agree, click continue, and it tells me "store configure.php is not writeable"

I check the file permissions, and they are changed back to 444. I change them back to 644, and click "Re-Check" at the bottom of the page, and the file permissions instantly change back to 444. I've tried changing them to 666, and 777, but the second I click recheck, the permissions get changed back to 444.

I called my webhost, and they said something in the upgrade script is changing the permissions. Of course they're point the finger the other way.

Also, I've deleted the entire zc_install directory and reuploaded hoping something went wrong during the ftp upload, but that didn't work.

Anybody encounter this before?

19 Mar 2012, 5:17 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Odd problem with configure.php when trying to upgrade

Some servers (usually Windows) don't allow you to change permissions using FTP. Try the File Manager in your hosting control panel.

19 Mar 2012, 5:20 PM
#3
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Odd problem with configure.php when trying to upgrade

Thank you for the reply.

My webhost uses linux and apache. The back end is cpanel. I tried using the cpanel file manager, but the permissions still change.

This is weird. I was going to build a virtual xp WAMP setup and try to upgrade it that way.

19 Mar 2012, 6:07 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Odd problem with configure.php when trying to upgrade

If you're doing an UPGRADE, then it doesn't matter that your configure.php files are not writable.

If you're doing a fresh install, then setting the configure.php files to writable will allow zc_install to set the correct contents.
HOWEVER, the storefront will attempt to make the files read-only if you access the storefront at any time. So, if you're going to https://www.mysite.com instead of properly going to https://www.mysite.com/zc_install in order to do your install, then you're causing yourself the problems you mention.

19 Mar 2012, 6:16 PM
#5
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Odd problem with configure.php when trying to upgrade

Good to know. Thanks doc!