• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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