Zen Cart Logo
Forums / General Questions / cant chmod configure.php

cant chmod configure.php

Locked

Views: 2,342

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
29 Aug 2008, 6:07 PM
#1
shady1 avatar

shady1

New Zenner

Join Date:
Mar 2006
Posts:
3
Plugin Contributions:
0

cant chmod configure.php

Hi all,

im having a problem getting shut of the error message:

Warning: I am able to write to the configuration file: /user/htdocs/store/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively. Contact your webhost for assistance.

I have tried setting it to 644, 444, 400 in my host CP and using ws_ftp and still with no luck.
I sent a message to my hosting company explaining the problem and they said i should use SSH, so i setup a SSH account and logged in with putty and CHMOD the configure.php from there.
And to my supprise the error message is still coming up, can anyone help, i tried the tutorial and FAQ with no success

Thanks

29 Aug 2008, 6:55 PM
#3
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: cant chmod configure.php

Try winscp. I use cuteftp and has the same problem as well. Or you can try to use sftp instead of ftp and see if that works.

30 Aug 2008, 5:52 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: cant chmod configure.php

Since you have Shell accees, here's the big question, "Did you verify the change?"

As many people don't have Shell access but run into this problem, if changing permissions using your Hosting Control Panel doesn't work this seems to work for all.

Make a blank file and inside put the following code:

<?php chmod("includes/configure.php", 0444); chmod("admin/includes/configure.php", 0444); echo 'Completed' ?>

Note: if you renamed the 'admin' directory then change "admin" to whatever you renamed it to and you're good to go.

Save the file as chmod.php and upload it to the same directory where these files are:
index.php - ipn_main_handler.php - nddbc.html

Now load this URL into your Browser: http://yoursite.com/chmod.php
(adjust URL accordingly if Zen Cart is in a sub-directory)

You will see the 'Completed' msg. and can then load your Zen Cart "index" page to verify Error msg. is gone.

Any Admin login problem(s) should also be gone.

Now delete the 'chmod.php' page.

30 Aug 2008, 9:08 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: cant chmod configure.php

Some hosts have applications such as "File Manager" in their Control Panel (CPanel) suite that you need to use to do this sort of thing.

1 Sep 2008, 12:57 AM
#6
shady1 avatar

shady1

New Zenner

Join Date:
Mar 2006
Posts:
3
Plugin Contributions:
0

Re: cant chmod configure.php

Hi guys

Thanks for the quick responses, ftp appz didnt do it, neither did the hosts CP file manager.
When using putty i verified the changes with the same results, how ever i did spend a bit more time on putty messing around with it and somehow managed to change change it.
So that problem is solved now and have to try and deal with the next problem of the htaccess file not allowing the images to to be viewed in the shop and in admin unless i delete them out.
Thank you for your help and will keep thia info in mind for the next time.

1 Sep 2008, 1:38 AM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: cant chmod configure.php

This doesn't sound like a very Zen friendly host. Have you searched the forum for them to see if anyone else has had problems?

1 Sep 2008, 2:15 AM
#8
shady1 avatar

shady1

New Zenner

Join Date:
Mar 2006
Posts:
3
Plugin Contributions:
0

Re: cant chmod configure.php

Yep ive just searched and it not as good as i thought, others are having similar problems.
Best thing for me is to find a new friendly host that as got a good technical support, bulk users, ssl, allows htaccess and dont rip you off.

1 Sep 2008, 2:20 AM
#9
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: cant chmod configure.php

:thumbsup: Check with the Certified Hosts. Link at the top of the page.