Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Another php problem


jhansen

Recommended Posts

Posted

Hi all.

 

I have a small new problem.

 

Warning: I am able to write to the configuration file: /customers/xxx/xxx/httpd.www/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

I know how to change the permissions in ftp, cannot do it in the server control panel.

Contacted support but the suggested to make a php file to do this.

 

Anyone know how, when I don't know much about making php files.

 

This is what I got back from support:

 

You can change it through a php command instead.

 

Create a php file and use this code:

<?

chmod("/customers/kassa-systemer.net/kassa-systemer.ne

t/httpd.www/catalog/includes/configure.php",

0444);

?>

 

Have tryed to make a php-file called drive.php with this code inside, but I cant get it right.

 

What is it I'm doing wrong ?

Posted

OK

 

1. Open a text editor (notepad etc.)

 

2. Insert the following codes

 

<?php
chmod("/customers/kassa-systemer.net/kassa-systemer.net/httpd.www/catalog/includes/configure.php", 0444);
?>

 

Please double check the file path.

 

Permission 444 (octal value of 0444) allow the file to be readable, not writeable and not executable for owner, group and public.

 

3. Save this file on your computer as mychmod.php

 

4. Upload it to your server.

 

5. Use your web browser to execute the mychmod.php (www.mydomain.com/mychmod.php etc)

Posted

Is there anywhere in the knowledge base that lists what files need to be set at what permissions?

Julie

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...