PDA

View Full Version : Changing two file permissions - Zen Cart


eluthiumpark
07-05-2009, 09:33 PM
Hello,

Recently iv'e installed Zen Cart but I have to change the permissions on two files both called configure.php

I have to change them to "just read" to prevent any threats (like hackers re-writing the configuration file).

Iv'e tried changing the permissions via FTP but once I change them they go back to how they were before. On the Zen Cart installation guide it said:

Sometimes you have to do this via a File Manager tool provided by your webhosting provider. In cPanel, it's called File Manager. In other tools it might be called something different. In the file manager, you can simply navigate to the file you want to alter permissions for, then click on the File Properties link/button and set permissions. The links could have varying names.

If your FTP program won't let you set CHMOD 444 and 644 doesn't work successfully, you'll have to use the File Manager approach above. If that doesn't work, then you must contact your hosting company's tech support to ask them to do it for you.

Now that im unable to change the permissions via FTP it needs to be done with the cpanel/file manager. I haven't got a clue how to do this so please help.

The first file is located at:

/includes/configure.php

The second file is located at:

/admin/includes/configure.php

inside the "store" folder. They both need to be read only (444), I hope this is clear enough!

Cheers

UnlimitedMB
07-06-2009, 12:27 AM
The permissions cannot be changed to something that would deny access to the file.
Just ignore the permissions and continue on with the next step of the installation.

eluthiumpark
07-06-2009, 03:45 PM
Yes but the problem is I have a big warning paragraph at the top of my Zen-Cart pages, and if I don't make the files read only it won't go.
(All the steps have already been installed but this was something that needed doing at the end of the installation process)

This is what the warning message says:

Warning: I am able to write to the configuration file: /hosted/domains/e/l/eluthiumpark.com/public_html/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.

Thanks

UnlimitedMB
07-06-2009, 07:07 PM
From using google this is a common problem with zen-cart.
You need to edit its source code to remove the message.
If you cannot do this I would recommend you use another cart such as osCommerce.

eluthiumpark
07-09-2009, 04:50 PM
Iv'e managed to fix Zen-Cart and it's working great. Thanks for your support!

Best Regards,
Dan