kywee Posted December 27, 2005 Share Posted December 27, 2005 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 More sharing options...
Jack_mcs Posted December 27, 2005 Share Posted December 27, 2005 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 More sharing options...
kywee Posted December 27, 2005 Author Share Posted December 27, 2005 You need to create a file, call it chmod.php. In that file, placechmod ("/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 More sharing options...
MaBiSmAd Posted December 27, 2005 Share Posted December 27, 2005 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 More sharing options...
kgt Posted December 27, 2005 Share Posted December 27, 2005 0600 still allows the owner read/write access and will generate the warning. Try 0400. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
kywee Posted December 27, 2005 Author Share Posted December 27, 2005 0600 still allows the owner read/write access and will generate the warning. Try 0400. The 0400 worked, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.