PHP Settings

PHP settings of websites hosted within the subscription are defined by the php-settings node. This node is specified by complex type phpSettings (plesk_domain.xsd). This type is structured as follows:

webspace_phpSettings

 

The following sample packet creates a subscription and sets the memory_limit and safe_mode settings:

<packet>
<webspace>
<add>
   <gen_setup>
      <name>newsite.com</name>
      <ip_address>192.0.2.132</ip_address>
   </gen_setup>
   <php-settings>
      <setting>
         <name>memory_limit</name>
         <value>128M</value>
      </setting>
      <setting>
         <name>safe_mode</name>
         <value>on</value>
      </setting>
   </php-settings>
</add>
</webspace>
</packet>