PHP Settings

Custom PHP settings that are applied to all plan subscriptions are defined by the php-settings node. This node is specified by complex type phpSettings (domain_template.xsd). This type is structured as follows:

webspace_phpSettings

 

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

<packet>
<service-plan>
<add>
   <name>base_plan</name>
   <php-settings>
      <setting>
         <name>memory_limit</name>
         <value>128M</value>
      </setting>
      <setting>
         <name>safe_mode</name>
         <value>on</value>
      </setting>
   </php-settings>
</add>
</service-plan>
</packet>

 

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.