• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

File permission help

WebWatcher

New Member
I have a VPS and when i upload files it automatically does the file permissions as 644! (Which is no good when using most php scripts!!)

Is there a way to change it so it automatically changes hem to 744 or 755??

Thanks in advance
 
There probably is I just don't know how to but... if you go in via ssh and want to change all the files in say public_html to 777 then do the following

navigate to the folder ABOVE public_html (i.e. /home/user/)

chmod 777 public_html -R

the -R will make sure all files folders and sub folders are 777

:)
 
Just remember though... if you need to change permissions on certain files, only change them, not globally.
 
Make sure you don't have suPHP which requires any executable scripts to have 644 permissions and all folders to have 755 permissions . If you change this it won't work .

Again , if you don't use suPHP , change it to 777 . If your scripts don't work , change the permissions as stated above .

Best Regards,
Aloycasmir
 
Back
Top