Intelligent Management: PHP server administrative tasks
Use the following commands to create and configure PHP servers and server templates.
The administrative tasks for creating and configuring PHP servers include the following commands:
- createPHPServer
- listPHPServers
- startServer
- stopServer
- deleteServer
- createPHPServerTemplate
- deleteServerTemplate
createPHPServer
The createPHPServer command creates a new PHP server.
Required parameters:
- -name
- Name of the server. (String, required)
Optional parameters:
- -templateName
- Name of the server template to use. We can specify templateServerNode and templateServerName to use an existing server as a virtual template instead of a defined template. (String, optional)
- -genUniquePorts
- Specifies a boolean to generate unique ports for the server. (String, optional)
- -templateLocation
- Location in which the template is stored. Use the system defined location if the location is not specified. (String, optional)
- -serverConfig
- Configuration of the server definition properties. Specify phpServerRoot or apacheServerRoot for the runtime path. Specify phpVersion or apacheVersion for the version number. (String, optional)
Batch mode example usage
- Use Jacl:
$AdminTask createPHPServer workstation_nameNode01 {-name myphpserver -serverConfig {-phpPath C:/PHP5 -apachePath C:/apache2}}- Use Jython:
AdminTask.createPHPServer workstation_nameNode01 ('[-name myphpserver -serverConfig [-phpPath C:/PHP5 -apachePath C:/apache2]]')
Interactive mode example usage
- Use Jacl:
$AdminTask createPHPServer workstation_nameNode01 {-interactive}- Use Jython:
AdminTask.createPHPServer workstation_nameNode01 ('[-interactive]')
listPHPServers
The listPHPServers command lists all of the PHP servers.
Required parameters: None.
Optional parameters:
- -nodeName
- Name of the node. Specify this parameter to narrowly scope the command. (String, optional)
Batch mode example usage
- Use Jacl:
$AdminTask listPHPServers {}- Use Jython:
AdminTask.listPHPServers ('[]')
Interactive mode example usage
- Use Jacl:
$AdminTask listPHPServers {-interactive}- Use Jython:
AdminTask.listPHPServers ('[-interactive]')
startServer
The startServer command starts a PHP server.
Required parameters:
- -serverName
- Name of the server to start. (String, required)
- -nodeName
- Name of the node on which the server is located. (String, required)
Optional parameters: None.
Batch mode example usage
- Use Jacl:
$AdminTask startServer {-nodeName workstation_nameNode01 -serverName phpserver}- Use Jython:
AdminTask.startServer ('[-nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode example usage
- Use Jacl:
$AdminTask startServer {-interactive}- Use Jython:
AdminTask.startServer ('[-interactive]')
stopServer
The stopServer command stops a PHP server.
Required parameters:
- -serverName
- Name of the server to stop. (String, required)
- -nodeName
- Name of the node on which the server is located. (String, required)
Optional parameters: None.
Batch mode example usage
- Use Jacl:
$AdminTask stopServer {-nodeName workstation_nameNode01 -serverName phpserver}- Use Jython:
AdminTask.stopServer ('[-nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode example usage
- Use Jacl:
$AdminTask stopServer {-interactive}- Use Jython:
AdminTask.stopServer ('[-interactive]')
deleteServer
The deleteServer command deletes a PHP server.
Required parameters:
- -serverName
- Name of the server to delete. (String, required)
- -nodeName
- Name of the node on which the server is located. (String, required)
Optional parameters: None.
Batch mode example usage
- Use Jacl:
$AdminTask deleteServer {-nodeName workstation_nameNode01 -serverName phpserver}- Use Jython:
AdminTask.deleteServer ('[-nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode example usage
- Use Jacl:
$AdminTask deleteServer {-interactive}- Use Jython:
AdminTask.deleteServer ('[-interactive]')
createPHPServerTemplate
The createPHPServerTemplate command creates a PHP server template.
Required parameters:
- -templateName
- Name of the template to create. (String, required)
- -serverName
- Name of the server to use as a template. (String, required)
- -nodeName
- Name of the node on which the server is located. (String, required)
Optional parameters:
- -description
- Description for the server template. (String, optional)
- -templateLocation
- Location in which the template is stored. Use the system defined location if the location is not specified. (String, optional)
Batch mode example usage
- Use Jacl:
$AdminTask createPHPServerTemplate {-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver}- Use Jython:
AdminTask.createPHPServerTemplate ('[-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode example usage
- Use Jacl:
$AdminTask createPHPServerTemplate {-interactive}- Use Jython:
AdminTask.createPHPServerTemplate ('[-interactive]')
deleteServerTemplate
The deleteServerTemplate command deletes a PHP server template.
Required parameters:
- -templateName
- Name of the template to delete. (String, required)
- -serverName
- Name of the server that uses the template. (String, required)
- -nodeName
- Name of the node on which the server is located. (String, required)
Optional parameters:
- -description
- Description for the server template. (String, optional)
- -templateLocation
- Location in which the template is stored. Use the system defined location if the location is not specified. (String, optional)
Batch mode example usage
- Use Jacl:
$AdminTask deleteServerTemplate {-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver}- Use Jython:
AdminTask.deleteServerTemplate ('[-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode example usage
- Use Jacl:
$AdminTask deleteServerTemplate {-interactive}- Use Jython:
AdminTask.deleteServerTemplate ('[-interactive]')
Related:
Middleware nodes and servers Create PHP servers and PHP dynamic clusters Deploy PHP applications Intelligent Management: middleware application administrative tasks