Dgital Essence Posted November 26, 2010 Share Posted November 26, 2010 Is it possible to disable features like PHP or SSI on a per product basis? I know under Module settings you can disable cgi, MySQL etc but not PHP. Not sure that I want to do this but just wondering... thanks. 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted November 26, 2010 Share Posted November 26, 2010 PHP is always either enabled or disabled per server basis. You can look into php extensions such as suhosin or suPHP they may help you do what you are trying to do. A possible solution assuming you have root access you can run a script you maybe able to run a WHMCS hook that disables php per a user using htaccess. Please refer to for disabling php this way: http://www.electrictoolbox.com/disable-php-apache-htaccess/ The reason I say root access is because you would need exclusive access to the htaccess file to make sure they can't modify the file. The htaccess has to belong to another user for that to work. You may have to grant read permission to the user though. I can't guarantee this will work as I believe the user can overwrite the htaccess file with another one in the directory he wants to run the PHP script from. Hope this helps. 0 Quote Link to comment Share on other sites More sharing options...
Dgital Essence Posted November 28, 2010 Author Share Posted November 28, 2010 Thanks for that. I'm going to keep it enabled but saw some other hosting companies limit PHP on a per package basis. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.