Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CHMOD help please


CHEME1LL

Recommended Posts

Posted

Hi

 

I am still having problems with my Configure.php files.

 

I cannot change it on my FTP software (I've tried 2 different ones) it changes then immediatly reverts to READ AND WRITE and the warning is still on my store.

 

My file manager in my cpanel doesn't have the option to chenage the permissions. I spoke with my provider and they say i need to create a CHMOD.PHP file using this text:

 

<?php

$filename = "file.php";

chmod("/customers/mydomain.dk/mydomain.dk/httpd.www/$filename", 0777);

echo "chmod for $filename was changed";

?>

 

I am a novice to PHP and am slightly confused as to what I am supposed to do with it. filing it in seems straightforward, but what do I do with the file once saved and how to I execute it to change the permission?

 

any explanation and help would be appreciated

Many thanks

Cheme1ll

Posted

As far as I know, you just navigate to the chmod file in your browser... i.e.

 

www.yourdomain.com/directory/chmod.php

 

Obviously you have to change the bit that says 0777 to 0644 or 0444 or 0400

Posted

:blush: WOW it was as simple as that!

 

Thanks very much M.a.t.t and FIMBLE - error removed....at last

Many thanks

Cheme1ll

Archived

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

×
×
  • Create New...