I am not familiar with the permission setup of PHP, so I was wondering what level I needed to run my PHP scripts on so they can write/edit files.

I did a whoami call and received httpd. I take it that I should run as root? Is this a security risk? I mean, any more than PERL running on root?