ispconfig のリモート API を使用して、ispconfig ユーザー、Web サイト、および ftp ユーザーを作成しています。すべて正常に動作しています。ispconfig ユーザー、Web サイト、および ftp ユーザーが作成されます。ISPConfig および FTP を介してそれらにアクセスできます。 Web サイトも同様に機能しますが、params で有効にしても PHP は有効になりません。
必要なコードは次のとおりです。
$domain = 'domain.example.com';
$params = array(
'domain' => $domain,
'ip_address' => '',
'type' => 'vhost',
'parent_domain_id' => 0,
'vhost_type' => '',
'hd_quota' => 100,
'traffic_quota' => 4000,
'cgi' => 'n',
'ssi' => 'n',
'suexec' => 'n',
'errordocs' => 1,
'is_subdomainwww' => 1,
'subdomain' => '',
'php' => 'y', /* This is activated but it does nothing*/
'ruby' => 'y', /*This is also activated and works*/
'redirect_type' => '',
'redirect_path' => '',
'ssl' => 'n',
'ssl_state' => '',
'ssl_locality' => '',
'ssl_organisation' => '',
'ssl_organisation_unit' => '',
'ssl_country' => '',
'ssl_domain' => '',
'ssl_request' => '',
'ssl_cert' => '',
'ssl_bundle' => '',
'ssl_action' => '',
'stats_password' => '',
'stats_type' => 'webalizer',
'allow_override' => 'All',
'apache_directives' => '',
'php_open_basedir' => '/',
'custom_php_ini' => '',
'backup_interval' => '',
'backup_copies' => 1,
'active' => 'y',
'traffic_quota_lock' => 'n'
);
'custom_php_ini' に何も書く必要はないと思いますが、正しいですか?
ispconfig を使用するクラスがあり、Web サイトを作成する方法は次のとおりです。
public function addWebSite($clientid, $params) {
$params['server_id'] = $this->server_id;
utf8_encode_array($params,'utf8_decode_array');
try {
return $this->soapClient->sites_web_domain_add($this->session_id, $clientid, $params, $readonly = false);
} catch (SoapFault $e) {
throw new IspcfgException($e->getMessage(), 500);
}
}
ispconfig ユーザーの作成で、パラメーター ''web_php_options' => 'mod' も追加しましたが、機能しません...
誰でも私を助けることができますか?よろしくお願いします!
PHP エンジンを示すのにわからないパラメーターがあると思いますが、正しいドキュメントが見つかりません。