Change chmod in subdomain folders ;-)

bumfank

Verified User
Joined
Oct 23, 2008
Messages
9
Hi!

Where I can find a place that I can change a chmod to 0777 for folders are maked by subdomain script ;-)

I`m writing a PHP script where I use httpsocket class and after make a subdomain I need to copy some files by this script but I cant because i dont have got a permissions. I tried to use chmod("/home/user/domains/domain.com/public_html/subdomain", 0777); but it isnt works. I think give a 777 right by direct admin will solve my problem
 
You can write a script to do it, and put it somewhere reasonable (such as root's home directory, /root.

Make it executable.

Run it as a root owned cronjob (do it from a root shell).

Be sure of the script before you run it; root can do anything, including delete all the files, destroy the server, etc.

Jeff
 
Back
Top