cPanel & WHM Version 98 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Disabling PHP for an account or reseller

Nathan Lierbo shared this idea 8 years ago
Open Discussion

Call for Comments

Currently, there is no way to disable PHP on a per-account basis. Not all websites need PHP and some web hosting providers may even want to have a very low tier of web hosting where CGI and PHP are both disabled.


There should be a way to disable PHP (just like there is to disable CGI) on a per-account basis. Furthermore, it would be appreciated if PHP could be disabled per-reseller as well.


For extra certainty that PHP is disabled, both methods of disabling PHP will be used.


This will all be accomplished via cPanel-generated include files for EasyApache. This system currently accommodates per-user and per-reseller include files. Also, these directives cannot be overridden by a user's .htaccess file so there is no fear of a user simply bypassing this setting even if they are intimately familiar with Apache.


Original thread: http://forums.cpanel.net/f145/disabling-php-account-reseller-case-51859-a-30353.html

Best Answer
photo

This will actually be possible with EasyApache 4. We've enabled ways to disable PHP on a per domain basis or a server-wide basis. We're planning to release a Tech Preview of EasyApache4 in 11.50.

Please check out the latest information on EasyApache 4 here:http://forums.cpanel.net/f133/easyapache4-announcement-447882.html

Replies (7)

photo
1

I really like this idea, this is similar to another feature request about changing settings per user for PHP that cannot be overridden in order to allow different options for different hosting plans.


this would take it one step further in allowing us to have a really basic plan (Free?) and if a user needs more then can then upgrade to the next tier. and so on

photo
1

Any news on this?


Thanks,


Andreas

photo
1

Just voted for this one too. Would like to have an easy way to disable PHP for a package so we could sell HTML only plans. This would mean using much less CPU as there would be no PHP or MySQL to run…

photo
2

This will actually be possible with EasyApache 4. We've enabled ways to disable PHP on a per domain basis or a server-wide basis. We're planning to release a Tech Preview of EasyApache4 in 11.50.

Please check out the latest information on EasyApache 4 here:http://forums.cpanel.net/f133/easyapache4-announcement-447882.html

photo
1

Hello,


I wanted to offer no PHP features and have this same question. I am using EasyApache4 on my server, how can I create PHPless accounts? My original forum thread

photo
1

Hey everyone! Unfortunately it looks like this specific feature wasn't included when we rebuilt the spec for EasyApache 4 last year. I've pointed this request out to the EasyApache team, and it's again on their radar. However, since it's not yet available and not yet aimed for a specific version, I'm going to move this request back to 'Open Discussion'. If you have any further feedback or need anything else from me, just let me know!

photo
1

CPanel/WHM providing a lot of other site software languages, for example RoR, Node.ja, perl.

Such sites not need php.

Please release this feature ASAP.

Leave a Comment
 
Attach a file