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
- Jacl:
$AdminTask createPHPServer workstation_nameNode01 {-name myphpserver -serverConfig {-phpPath C:/PHP5 -apachePath C:/apache2}}
- Jython:
AdminTask.createPHPServer workstation_nameNode01 ('[-name myphpserver -serverConfig [-phpPath C:/PHP5 -apachePath C:/apache2]]')
Interactive mode
- Jacl:
$AdminTask createPHPServer workstation_nameNode01 {-interactive}
- 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
- Jacl:
$AdminTask listPHPServers {}
- Jython:
AdminTask.listPHPServers ('[]')
Interactive mode
- Jacl:
$AdminTask listPHPServers {-interactive}
- 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
- Jacl:
$AdminTask startServer {-nodeName workstation_nameNode01 -serverName phpserver}
- Jython:
AdminTask.startServer ('[-nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode
- Jacl:
$AdminTask startServer {-interactive}
- 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
- Jacl:
$AdminTask stopServer {-nodeName workstation_nameNode01 -serverName phpserver}
- Jython:
AdminTask.stopServer ('[-nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode
- Jacl:
$AdminTask stopServer {-interactive}
- 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
- Jacl:
$AdminTask deleteServer {-nodeName workstation_nameNode01 -serverName phpserver}
- Jython:
AdminTask.deleteServer ('[-nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode
- Jacl:
$AdminTask deleteServer {-interactive}
- 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
- Specifies a 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
- Jacl:
$AdminTask createPHPServerTemplate {-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver}
- Jython:
AdminTask.createPHPServerTemplate ('[-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode
- Jacl:
$AdminTask createPHPServerTemplate {-interactive}
- 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
- Specifies a 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
- Jacl:
$AdminTask deleteServerTemplate {-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver}
- Jython:
AdminTask.deleteServerTemplate ('[-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver]')
Interactive mode
- Jacl:
$AdminTask deleteServerTemplate {-interactive}
- Jython:
AdminTask.deleteServerTemplate ('[-interactive]')
Related concepts
Middleware nodes and servers
Related tasks
Create PHP servers and PHP dynamic clusters Deploy PHP applications
Intelligent Management: middleware application administrative tasks