What userid does my PHP scripts run under?

Your PHP scripts will run under the same userid as the webserver (Apache), which is "nobody". Therefore, since your PHP scripts do not run under your userid, you must take this into consideration when you are trying to create, edit, or modify files with your PHP scripts.

Secondly, PHP scripts run under the group "nobody" as well. All clients are in the group "cust". Therefore, in order to allow PHP to create, modify, and/or delete files within your account, you would need to have world read/write permission on the files and within the directories where the files will be created.

  • 2 Users Found This Useful
這篇文章有幫助嗎?

Related Articles

What is PATH information for impotant modules on Linux Servers?

WWW Directory: /home/username/public_html Root Directory: /home/username Perl: /usr/bin/perl...

Is CURL with SSL support installed [Linux Only]?

Yes, CURL with SSL support is installed on our servers.

Why am I getting 550 error while uploading/deleting files?

This is a known issue with Windows Server 2003 and HELM Control Panel. Please read the Default...

I get either Error 403 Forbidden or Error 404 Not Found. What is wrong?

Either of the two things happened: you deleted your /public_html/ directory [Linux Server] or...

Can I run PHP scripts anywhere on my virtual server?

Yes, PHP scripts do not have to reside in a particular directory and will run anywhere on your...