Which user is httpd?


#1

Can someone give me the definitive answer as to the user that httpd runs as? I’ve heard it runs as me, as the group I belong to (which is like pg9999999), as nobody, and so on.

I’m trying to sort out directory and file permissions for a perl script that runs as cgi and which wants to write to a log file.

Other scripts run fine with 755, but this script appears to be having some write issues.

This is such a basic thing, yet there is a surprising amount of misinformation when you go googling for it.

Thanks.


#2

DH uses Suexec and CGI runs as the user it is called from.

Make sure the script and the directory it’s in isn’t writable by anyone but the user.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

Many thanks.