In answer to the many many questions we get about how PHP has been compiled, let us try to explain why and how and what to do for everything to function. PHP5 Servers: Points to be aware of when running PHP compiled as CGI: #2 World writable folders (chmod 777) will not be required for file uploads through php #3 The php files will also have ownership of your userid #4 php files (scripts) do not need 755 permissions. 644 is fine. In fact 400 or 600 is ok too (especially good for sensitive information) #5 php_flag or php_value can NOT be used in .htaccess files (It will result in Internal Server Error)
************
ALL of our PHP5 servers have PHP compiled as CGI with phpSuExec running. This will allow you the proper use of php uploads and prevents the user "nobody" taking ownership of your files. [SINCE V5.1.2+ YOU CAN NO LONGER OVER-RIDE THE SERVERS MAIN PHP.INI FILE]
************************************************
#1 php scripts will now run using the userid of the account holder instead of user "nobody"
Knowledgebase
PHP Compiled as? (Problems with files)
- 70 Users Found This Useful
Was this answer helpful?
Related Articles
Errors relating to Magic Quotes
If your getting error messages relating to "Magic Quotes" when using or programming in PHP, or...
Creating PHPinfo files
When you first setup your hosting account with you you will probably want to see whats...
open_basedir restriction in effect
If you are trying to use your temporary URL provided in your welcome email and are getting error...
Path to PEAR and PEARDB
Your path to PEAR on all servers is: /home/cpanelusername/php (Replacing "cpanelusername"...
Perl version & Path to Perl & Sendmail
If you need to find out the Current Versions and Paths to both Perl and Sendmail then simply...