• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Can i disable php-cgi?

Linulex

Silver Pleskian
Is it possible to limit the php types that can be used?
I would like to only offer mod_php (with ruid2) and php fastcgi, and disabling php-cgi.

regards
Jan
 
Look at /usr/local/psa/admin/conf/site_isolation_settings.ini file and corresponding feature description in Plesk docs.
 
can you give me an example?

I have tried:

[hosting]
;php = any
php_handler_type = module,fastcgi

[hosting]
php = off
php_handler_type = module,fastcgi

[hosting]
;php = any
php_handler_type = "module","fastcgi"

[hosting]
php = on
php_handler_type = module,fastcgi


Always restarted psa, sw-cp-server, sw-engine, httpd, the lot.

But i always keep having all 3 options at the hosting setup screen. I have tried it with a new domain and an existing domain.

i use centos 6.4 plesk 11.5.30 MU17
I have tried this logged in as admin and as reseller.

If i unable "Setup of potentially insecure web scripting options that override provider's policy" as admin, then the reseller doesn't have a php choise all together.
But i want them always to be able to choose between fast-cgi and module.

regards
Jan
 
BTW,

# plesk bin php_handler --help

Usage: php_handler command [options]
Available commands:
--add Registers a new PHP handler.
--update Updates an existing PHP handler.
--replace Replaces a certain PHP handler with
another one for all service plans and
websites in Panel.
--remove Removes a PHP handler.
--list Displays the list of all PHP handlers
registered in Panel.
 
Not relevant, i have only 1 php installed. I want to disable php cgi for this 1 before i start testing with multiple versions.

This is the 3rth item i find not working in plesk 11.5.30. This version is clearly not ready for production yet.

regards
Jan
 
This is the 3rth item i find not working in plesk 11.5.30. This version is clearly not ready for production yet.

This item has never worked as you want.
There is no ability to set array value in site_isolation_settings.
 
This item has never worked as you want.
There is no ability to set array value in site_isolation_settings.

Ok,

Why does IgorG points me to there then to disable php-cgi ?
Who can i trust if i cant believe on the answers given here by parallels employees ?

And how do i disable php-cgi then and enable php-fastcgi and php module?
 
Back
Top