Back to PHP (Applications and Scripts)

What Is PHPSUEXEC


This article is for cPanel Accounts. Determine where your account is with this guide.

Differences between phpsuexec and "regular PHP":
 When using the common PHP installation on a webserver, PHP runs as the user nobody and it doesn't require the execute flag to be enabled. The problem with this is that if mod_openbasedir is not installed, every user will be able to read your php files because everyone is virtually sharing the same username (nobody).

As most of you already know, PHP Files are not meant to be read, but parsed, and that is where the problem resides. PHP Files have to be parsed, otherwise everyone who can read your php file will see settings that you would probably want to keep private, such as your MySQL username and password.

PHPSUEXEC fixes all this because it requires PHP to be run as the file owner's username. (for example: Andre) This is not everything it fixes though. PHPSUEXEC is also here to fix file ownership problems. This has been a common issue on a few Content Management Systems such as Joomla and also on the popular blog software: WordPress.

It also adds security to your files as you can use permissions such as 600 or 700 in your files and your visitors will still be able to view them (parsed) in their browsers. PHPSUEXEC will also refuse to serve any pages that are at security risk, for example with 777 as permissions. (will generate an Internal Server Error)


Related Articles

How To Troubleshoot PHP Upgrade Issues
Can I Enable PHP Allow_url_include On My Account
Can I Increase The PHP post_max_size Setting
Can I Modify My Suhosin Settings With A Local php.ini File
Can I Utilize PHP Shell Exec Functions

Can’t Find what you need?

No worries, Our experts are here to help.