Jump to content

Disable PHP/SSI on a per product basis?


Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated