Zen Cart Logo
Forums / Installing on a Linux/Unix Server / New Host - Cannot Chmod to 444

New Host - Cannot Chmod to 444

Locked

Views: 2,424

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
18 Mar 2009, 3:22 AM
#1
cylants avatar

cylants

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

New Host - Cannot Chmod to 444

Hello All,

I got a new web host that will not allow me to chmod the config files to 444.However I can to 644, which I think is an OK setting. Obviously not as my cart shows the security warning at the top.

If anyone could help I would greatly appreciate it.

Thank You..

18 Mar 2009, 4:11 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: New Host - Cannot Chmod to 444

try setting 444 using the control panels filemanager

18 Mar 2009, 4:29 AM
#3
cylants avatar

cylants

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: New Host - Cannot Chmod to 444

I also tried using the File Manager, however the setting did not stay. I finally called the hosting company and they informed me that 444 file permissions are not possible with my accout. We spent quite a bit getting everything ready.

Do you recommend anything else I could do?

18 Mar 2009, 8:08 AM
#4
website_rob avatar

website_rob

Inactive

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

Re: New Host - Cannot Chmod to 444

Cylants:

I finally called the hosting company and they informed me that 444 file permissions are not possible with my accout.
That's just silly. Did you also ask 'why' it is not possible?

In the meantime, try this.

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.

If that doesn't work then change line 24 of /includes/init_includes/init_header.php
define('WARN_CONFIG_WRITEABLE', 'true');

From 'true' to 'false'.

5 Jun 2010, 7:33 PM
#5
bman avatar

bman

New Zenner

Join Date:
May 2010
Posts:
5
Plugin Contributions:
0

Re: New Host - Cannot Chmod to 444

This worked perfect for myself, but I did remove line 2 , then I had no problems.

I was having the same issues and realized my config file really wasn't updating, and then to have the chmod 644 issue on top. I will use this code again for sure.:laugh: