Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I change file permissions when my host server does not allow it?


kywee

Recommended Posts

Hello,

 

My host does not allow me to change the permissions on the FTP server, so they tell me to edit it within the PHP. I have the code

 

chmod ("/directory/file.php", 0600);

 

but I don't know where to put it in the configure.php file. If someone could let me know where it goes so I don't get the Pink Error on top of my store that would be great. TIA

Link to comment
Share on other sites

You need to create a file, call it chmod.php. In that file, place

chmod ("/directory/file.php", 0600);

But be sure to change the directory part to the directory your shop is in. Then upload that file to your root and, in abrowser, type in http://www.yoursite.com/chmod.php and press enter. That will change the permissions for you. Then go back and delete the file from your server.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You need to create a file, call it chmod.php. In that file, place
chmod ("/directory/file.php", 0600);

But be sure to change the directory part to the directory your shop is in. Then upload that file to your root and, in abrowser, type in http://www.yoursite.com/chmod.php and press enter. That will change the permissions for you. Then go back and delete the file from your server.

 

Jack

 

 

I created a file in Dreamweaver, but I'm not sure if I'm doing it right. I made one file with just

 

chmod ("/includes/configure.php", 0600);

 

in it and saved it as chmod.php and put it in the main folder of my site (public_html, www, etc) I Then typed in the URL and hit enter and deleted the chmod file like you said. This didn't work so I made a file with

 

<?php

chmod ("/includes/configure.php", 0600);

?>

 

and this did not work either when I did the same process as above.

 

I am not fluent with PHP code, only HTML, so I am sorry if this is annoying.

Link to comment
Share on other sites

I created a file in Dreamweaver, but I'm not sure if I'm doing it right. I made one file with just

 

chmod ("/includes/configure.php", 0600);

 

in it and saved it as chmod.php and put it in the main folder of my site (public_html, www, etc) I Then typed in the URL and hit enter and deleted the chmod file like you said. This didn't work so I made a file with

 

<?php

chmod ("/includes/configure.php", 0600);

?>

 

and this did not work either when I did the same process as above.

 

I am not fluent with PHP code, only HTML, so I am sorry if this is annoying.

 

Tell us if this is on a Windows server, if so chmod is not supported.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...