From 56efd2e9c89a3ac7d3d95da974ab380f0c1aaf88 Mon Sep 17 00:00:00 2001 From: Nedim Hadzimahmutovic Date: Tue, 16 Feb 2016 16:23:29 +0100 Subject: [PATCH] Update Ispconfig3.php switch php to fpm --- bb-library/Server/Manager/Ispconfig3.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bb-library/Server/Manager/Ispconfig3.php b/bb-library/Server/Manager/Ispconfig3.php index d5f3fdd..252f863 100644 --- a/bb-library/Server/Manager/Ispconfig3.php +++ b/bb-library/Server/Manager/Ispconfig3.php @@ -236,9 +236,18 @@ private function createSite(Server_Account &$a) $site_params['php_open_basedir'] = $server['php_open_basedir']; //PHP Configuration - $site_params['php'] = 'suphp'; //php available posible values + $site_params['php'] = 'php-fpm'; //php available posible values $site_params['ip_address'] = '*'; //important $site_params['active'] = 'y'; + $site_params['pm_process_idle_timeout'] ='30'; + $site_params['pm_max_requests'] ='30'; + $site_params['php_fpm_use_socket'] = 'y'; + $site_params['pm'] = 'ondemand'; + $site_params['pm_max_children'] ='10'; + $site_params['pm_max_requests'] ='30'; + $site_params['php_open_basedir'] = $server['php_open_basedir']; + $site_params['added_by'] = 'admin'; + $site_params['active'] = 'y'; //Creating a site $result = $this->_request('sites_web_domain_add', $site_params); @@ -625,4 +634,4 @@ private function _request($action, $params = array()) return $soap_result; } -} \ No newline at end of file +}