SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

How do I change file/folder permissions since my server has upgraded to phpsuexec?
An ordinary FTP client will not allow you modify file/folder permissions on existing sites after upgrading to phpsuexec. You will have to use your cpanel file manager to do this or use the following script as an example of using php to cange the permissions.
<?php 
chmod
("mainfile.php"0444);
chmod("cache"0755);
chmod("uploads"0755);
chmod("templates_c"0755
?>
This is the standard requirements for a xoops installation. usage 1- put the above code into a text file and save it as changeperm.php or whatever name you prefer. 2- upload the file to the root of your xoops site, ie, where mainfile.php is. 3- call the scripthttp://example.com/changeperm.php 4- You will see a blank page 5- Now return to your FTP client and check your file permissions for the folders CACHE -0755 TEMPLATES_C -0755 UPLOADS -0755 MAINFILE.PHP -0444 You can of course change the files/ folders to carry out this permissions change method.


The comments are owned by the author. We aren't responsible for their content.
user

 Worked fine


I struggled with this. I could set all the other file-permissions with my ftp-manager, but not the "mainfile.php"- file, it always reverted back to 644.

Doing it through a "changeperm.php"-file worked fine though.

Thx

 


Login

Who's Online

192 user(s) are online (2 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 192


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

You can prevent selected objectionable words ever being published on your site?

Random question

How do you make the default module stay at the top of the page?