Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

set permissions and still have the same warning :s


kristof de block

Recommended Posts

hello

 

When I'm opening my webstore i still get the same message

 

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

 

I set the permission to read only i try it on the ftp server and with my ftp program

 

Can somebody hel me

 

Greetings

 

Kristof

Link to comment
Share on other sites

use your host's cpanel to set the file's mode. Try setting the permissions first to 400. If it does not work try it with 444.

Link to comment
Share on other sites

use your host's cpanel to set the file's mode. Try setting the permissions first to 400. If it does not work try it with 444.

 

 

hello

 

I cane change the permission with the cp of my webhost, i e-maild with them and the send me this reaction

 

 

You can use PHP CHMOD script to set permissions

to the files. Here is a guide:

 

<?

$filename = "configure.php";

chmod("/customers/rc-store.net/rc-store.net/httpd.www/

$filename", 0400);

echo "chmod for $filename was changed";

?>

 

Save the file as CHMOD.PHP in the root folder

and execute it using the browser.

 

I make it like this and it don'st work did anyone what i do rwong?

Link to comment
Share on other sites

the configure.php file is in the catalog\includes\configure.php. Depends on the installation where you placed it. So first locate the configure.php and then set the path accordingly. If your osc store is in the catalog folder then the file contents would be:

 

<?php
$filename = 'configure.php';
if( chmod($_SERVER[DOCUMENT_ROOT] . '/catalog/includes/' . $filename, 400) )
 echo 'chmod for ' . $filename . ' was changed';
else
 echo 'chmod for ' . $filename . ' failed';
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...