What user id does my PHP scripts run under?

Your PHP scripts will run under the same user id 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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Can I run PHP scripts anywhere on my hosting account?

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

Can I use short tags in my PHP scripts?

Yes, we have installed PHP to support short tags, so you can use this feature in your PHP scripts.

Do you offer web hosting with PHP4 or PHP5?

PHP4 has reached an "end of life" status with the developers and as such Hands-on Web Hosting is...

What is PHP?

PHP is a server-side, cross-platform, HTML embedded scripting language. It has a syntax familiar...

What permissions do I need to use on my PHP scripts?

To avoid any problems, you should set your PHP scripts to 755, or user everything, group and...

Powered by WHMCompleteSolution