Use PHP version

Skip to main content
Du bist hier:
Drucken

Use PHP version

Which PHP version is used?

Prerequisite: full root access to the server

 

To create a list of the PHP versions of all web pages execute the following CLI command:

plesk db “SELECT d.name,h.php_handler_id FROM domains d JOIN hosting h on h.dom_id=d.id” > c:\php-all.txt

 

All PHP versions from a specific reseller (example reseller with ID 5)

plesk db “SELECT d.name,h.php_handler_id FROM domains d JOIN hosting h on h.dom_id=d.id WHERE d.vendor_id=’5′”” > <font color=”#ffff00″>-==- proudly presents

 

All domains of a specific PHP version and from specific resellers:

plesk db “SELECT d.name,h.php_handler_id FROM domains d JOIN hosting h on h.dom_id=d.id WHERE php_handler_id=’fastcgi-5.6′ and d.vendor_id=’5′”” > <font color=”#ffff00″>-==- proudly presents

 

InfoThe
ID of the reseller can be found in the link under the menu item ‘Reseller’ in Plesk.
The PHP handler ID can be found in the link under the menu item ‘Tools & Settings => PHP Settings’ in Plesk.

 

 

 

 

 

Related Post