What is PHPSUEXEC ?

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).

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 is able to 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 and it also fixes file ownership problems. This is 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 in their browsers. PHPSUEXEC will also refuse to serve any pages that are at security risk, for example with 777 as permissions.

  • 22 Users Found This Useful
Was this answer helpful?

Related Articles

Should I store a local copy of my website?

It is essential to keep a local copy of your website to protect it from any number of...

Do you support SFTP?

SFTP is activated if you have SSH access. If not, you need SSH access and to be able to use...

Can I set 'always populate raw post data' in the php.ini file?

By default, this feature is off. You can email support@Mando Hosting and request this feature to...

Does Mando Hosting support Dolphin?

Mando Hosting dedicated hosting plans allow any application to be installed including dolphin. It...

How do I read my web stats on Webalizer?

You can view your website's statistics through the Webalizer feature in cPanel. This can be found...