Page 1 of 1

New modules. How to chmodd folders and files to 777

Posted: Thu Nov 02, 2006 8:11 pm
by lasc
Hello.
I need some help in one thing:
After donwloading and installing a new module, I am not able to chmod the folders and files in my server to 777.
There is some error after that.
Is there any problem with that, or every thing goes normal? The fact is that I begin having some problems with photo album module, for instance: it doesn't let me change the template or other configurations.
How to download modules and change their permissions after downloading?
Thanks.

Re: New modules. How to chmodd folders and files to 777

Posted: Thu Nov 02, 2006 8:18 pm
by tsw
as php creates those files and most likely your server is set to run php with apache process rights you don't own the files and thus cant change the permissions with ftp or by login with ssh.

there is a small script to that changes the rights.

http://cmsmadesimple.org/pastebin/421

as this script is also run with php process rights it has permissions to change them.

note that 777 is not a secure solution.

make necessary changes to the script (mostly change the module name on line four and upload to your site and point your browser to it.

hope this helps

Re: New modules. How to chmodd folders and files to 777

Posted: Thu Nov 02, 2006 8:33 pm
by lasc
Ok. It's all fine. I have that php file with the script. I pointed the browse ant the answer is that the permissions have changed.
But the problem in changing permissions to Album folder persists. In which directory must I pu the file i have uploaded? Must I put this file in anothet place?
Thanks for you help.

Re: New modules. How to chmodd folders and files to 777

Posted: Thu Nov 02, 2006 8:36 pm
by lasc
I works!!

I put the file inside the Album folder and all the directories became 777 chmodd. Thaks for you help!