Forums / Installing on a Linux/Unix Server / Can't Change Configure.php After Install

Can't Change Configure.php After Install

Locked

Views: 5,142

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
23 Mar 2007, 4:40 PM
#1
beegolof avatar

beegolof

New Zenner

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

Can't Change Configure.php After Install

I've just installed ZenCart on a site and am getting a report that I need to set the /public_html/index/includes/configure.php to (read-only, CHMOD 644 or 444).
Here is a screenshot:

I'm not sure if this is a problem with the FTP or the software but when I go into the FTP and change it to read only it won't chage.
Is this the correct place to change it? If not how can I fix this?

Thanks :smile:

23 Mar 2007, 5:10 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Can't Change Configure.php After Install

Some servers do not allow 444 settings via FTP. You should log into your server admin C-Panel (or equivalent) via HTTP:// and reset the 444 there.

20 years a Zencart User

23 Mar 2007, 5:44 PM
#3
beegolof avatar

beegolof

New Zenner

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

Re: Can't Change Configure.php After Install

I'm in the site cPanel with it's FTP program but I don't see where to change the 444. :blink:

Is this the right tool?

23 Mar 2007, 6:26 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Can't Change Configure.php After Install

No, use CPanel's File Manager to change the permissions. When you're in File Manager, click on the file name and I'll give you the option to change the permissions.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

23 Mar 2007, 9:53 PM
#5
beegolof avatar

beegolof

New Zenner

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

Re: Can't Change Configure.php After Install

Thanks it works.

30 Mar 2007, 9:44 PM
#6
nedward avatar

nedward

New Zenner

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

Re: Can't Change Configure.php After Install

I've just got the same problem today. I didn't have this message for about a week since my install, but today I installed asp on my webhosted server because my hosts (fasthosts.co.uk) said I'd need to do that to enable cURL for paypal payments. So now when I go to my ZC site I have the red banner saying that my configure.php can be written to.

I tried to change permissions in flashfxp but nothing changes when I change the chmod number or check the check boxes to change to read only.
I tried to set the file in windows to read only which works in windows but when i upload to the server the permissions have reset back to 700.

I asked my hosts if I could change the permissions in control panel but they said I had to close this account and put it onto their Linux servers.

Does that sound right?

Thanks for any advice.

Steven

2 Apr 2007, 12:37 PM
#7
armie avatar

armie

New Zenner

Join Date:
Apr 2007
Posts:
28
Plugin Contributions:
0

Re: Can't Change Configure.php After Install

I have the same problem, and my FTP client with Godaddy.com does not have such tools for me to change it into ready only. What can I do??:dontgetit

3 Apr 2007, 6:26 AM
#8
nedward avatar

nedward

New Zenner

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

Re: Can't Change Configure.php After Install

I decided to change my account to a Linux hosted one and now this problem is solved. I have another one now with .htaccess but that's another story that I'm waiting for an answer in another thread.
Good Luck m8.

Steven

4 Apr 2007, 11:29 AM
#9
armie avatar

armie

New Zenner

Join Date:
Apr 2007
Posts:
28
Plugin Contributions:
0

Re: Can't Change Configure.php After Install

My hosting is Linux also, but the ftp client of godaddy has nothing like I can edit it into chmod 644. i contacted them and the say to me about WS FTP, i don't know what it is.

5 Apr 2007, 6:20 AM
#10
nedward avatar

nedward

New Zenner

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

Re: Can't Change Configure.php After Install

Ws ftp is an ftp client that you can locate from http://www.ipswitch.com/
I use flashfxp from http://www.inicom.net/pages/en.ffxp-home.php which is a more widely used ftp client (I think).

Just install either, login into your ftp space using the login and password that you'll get from your host and then right click on the files in question and change the permissions. Dead easy really.

This has been a public service announcement from Steven :lookaroun

Steven

5 Apr 2007, 7:47 AM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Can't Change Configure.php After Install

These issues highlight the need to research hosting companies in advance of installing Zen Cart.

I would advise all prospective zenners (people who are keen to use the software but haven't yet done so), to appreciate what optimal server set-up is desirable, for Zen Cart to work efficiently.

Then... find a host that understands Zen Cart. This part is easy... follow the "hosting" link at the top of this page.

20 years a Zencart User

5 Apr 2007, 4:49 PM
#12
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Can't Change Configure.php After Install

WS FTP is the most widely used and, in my opinion, most reliable FTP client.

Nedward? Your problems are only going to get worse. Whatever you do don't pay for their shared ssl - it won't work with dynamic php based shopping carts. If they tell you otherwise - ask them for the name of a site that it works on.

If your site is on an Apache based server and you can't change permissions any other way then do this:

  1. Create a new text document and rename it to chmod.php (ignore the warning about changing the file type).

  2. Put this code in it:

<?php chmod ("includes/configure.php", 0444); ?>
  1. Upload it to the root of your website and go to it in your browser e.g. http://www.yourdomain.com/chmod.php - you won't see anything but the file permission should have changed.

  2. Don't leave the chmod.php file on the server after use.

Vger

5 Apr 2007, 6:52 PM
#13
nedward avatar

nedward

New Zenner

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

Re: Can't Change Configure.php After Install

Vger:

WS FTP is the most widely used and, in my opinion, most reliable FTP client.

Nedward? Your problems are only going to get worse. Whatever you do don't pay for their shared ssl - it won't work with dynamic php based shopping carts. If they tell you otherwise - ask them for the name of a site that it works on.

If your site is on an Apache based server and you can't change permissions any other way then do this:

  1. Create a new text document and rename it to chmod.php (ignore the warning about changing the file type).

  2. Put this code in it:

<?php chmod ("includes/configure.php", 0444); ?>
  1. Upload it to the root of your website and go to it in your browser e.g. http://www.yourdomain.com/chmod.php - you won't see anything but the file permission should have changed.

  2. Don't leave the chmod.php file on the server after use.

Vger

Thanks Vger and Schoolboy, I hear what you say. I wish I knew what I know now, 3 weeks ago. :blink: My chmod probs are sorted now that I'm on a linux hosted server. I can chmod to my hearts desire.
I never realised that hosts would do things differently. I naively thought they would all follow the same sort of guidelines. But you should have seen the fun I had with brinkster with a simple non dynamic site. another story.
Anyway I'm taking your advice and will stay away from ssl with fasthost and will research a new host when the time is right.
Anyway again, I'm loving Zen Cart and my shop is generating sales, which is nice. thanks for tips.

Steven

6 Apr 2007, 12:38 PM
#14
armie avatar

armie

New Zenner

Join Date:
Apr 2007
Posts:
28
Plugin Contributions:
0

Re: Can't Change Configure.php After Install

Thank you so much Nedward. That helps me.