Page 1 of 1

editing another user's file

Posted: Sun Jul 03, 2005 10:52 am
by dracoola
Hi !

I want to edit apache's config file with a php script.
But as you know php can't reach the root's file.
How can i edit this config file?

Posted: Sun Jul 03, 2005 11:34 am
by Chris Corbyn
Who's server? Is it your own server?

If it is your server you just need to change the owner of the file to "nobody" or "wwwroot" or whoever the username is that PHP scripts run under.

If it's not your server you can forget it and will have to make do with .htaccess :?