[AIX Solaris HP-UX Linux Windows][z/OS]

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

The createPHPServer command creates a new PHP server.

Required parameters

-name
Specifies the name of the server. (String, required)

Optional parameters

-templateName
Specifies the name of the server template to use. You 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
Specifies the location in which the template is stored. Use the system defined location if the location is not specified. (String, optional)
-serverConfig
Specifies the 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

  • Using Jacl:
    $AdminTask createPHPServer workstation_nameNode01 {-name myphpserver -serverConfig {-phpPath C:/PHP5 -apachePath C:/apache2}}  
  • Using Jython:
    AdminTask.createPHPServer workstation_nameNode01 ('[-name myphpserver -serverConfig [-phpPath C:/PHP5 -apachePath C:/apache2]]')  

Interactive mode example usage

  • Using Jacl:
    $AdminTask createPHPServer workstation_nameNode01 {-interactive}  
  • Using Jython:
    AdminTask.createPHPServer workstation_nameNode01 ('[-interactive]')

listPHPServers

The listPHPServers command lists all of the PHP servers.

Required parameters

None.

Optional parameters

-nodeName
Specifies the name of the node. Specify this parameter to narrowly scope the command. (String, optional)

Batch mode example usage

  • Using Jacl:
    $AdminTask listPHPServers {}  
  • Using Jython:
    AdminTask.listPHPServers ('[]')  

Interactive mode example usage

  • Using Jacl:
    $AdminTask listPHPServers {-interactive}  
  • Using Jython:
    AdminTask.listPHPServers ('[-interactive]')

startServer

The startServer command starts a PHP server.

Required parameters

-serverName
Specifies the name of the server to start. (String, required)
-nodeName
Specifies the name of the node on which the server is located. (String, required)

Optional parameters

None.

Batch mode example usage

  • Using Jacl:
    $AdminTask startServer {-nodeName workstation_nameNode01 -serverName phpserver}  
  • Using Jython:
    AdminTask.startServer ('[-nodeName workstation_nameNode01 -serverName phpserver]')  

Interactive mode example usage

  • Using Jacl:
    $AdminTask startServer {-interactive}  
  • Using Jython:
    AdminTask.startServer ('[-interactive]')

stopServer

The stopServer command stops a PHP server.

Required parameters

-serverName
Specifies the name of the server to stop. (String, required)
-nodeName
Specifies the name of the node on which the server is located. (String, required)

Optional parameters

None.

Batch mode example usage

  • Using Jacl:
    $AdminTask stopServer {-nodeName workstation_nameNode01 -serverName phpserver}  
  • Using Jython:
    AdminTask.stopServer ('[-nodeName workstation_nameNode01 -serverName phpserver]')  

Interactive mode example usage

  • Using Jacl:
    $AdminTask stopServer {-interactive}  
  • Using Jython:
    AdminTask.stopServer ('[-interactive]')

deleteServer

The deleteServer command deletes a PHP server.

Required parameters

-serverName
Specifies the name of the server to delete. (String, required)
-nodeName
Specifies the name of the node on which the server is located. (String, required)

Optional parameters

None.

Batch mode example usage

  • Using Jacl:
    $AdminTask deleteServer {-nodeName workstation_nameNode01 -serverName phpserver}  
  • Using Jython:
    AdminTask.deleteServer ('[-nodeName workstation_nameNode01 -serverName phpserver]')  

Interactive mode example usage

  • Using Jacl:
    $AdminTask deleteServer {-interactive}  
  • Using Jython:
    AdminTask.deleteServer ('[-interactive]')

createPHPServerTemplate

The createPHPServerTemplate command creates a PHP server template.

Required parameters

-templateName
Specifies the name of the template to create. (String, required)
-serverName
Specifies the name of the server to use as a template. (String, required)
-nodeName
Specifies the 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
Specifies the location in which the template is stored. Use the system defined location if the location is not specified. (String, optional)

Batch mode example usage

  • Using Jacl:
    $AdminTask createPHPServerTemplate {-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver}  
  • Using Jython:
    AdminTask.createPHPServerTemplate ('[-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver]')  

Interactive mode example usage

  • Using Jacl:
    $AdminTask createPHPServerTemplate {-interactive}  
  • Using Jython:
    AdminTask.createPHPServerTemplate ('[-interactive]')

deleteServerTemplate

The deleteServerTemplate command deletes a PHP server template.

Required parameters

-templateName
Specifies the name of the template to delete. (String, required)
-serverName
Specifies the name of the server that uses the template. (String, required)
-nodeName
Specifies the 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
Specifies the location in which the template is stored. Use the system defined location if the location is not specified. (String, optional)

Batch mode example usage

  • Using Jacl:
    $AdminTask deleteServerTemplate {-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver}  
  • Using Jython:
    AdminTask.deleteServerTemplate ('[-templateName myphptemplate -nodeName workstation_nameNode01 -serverName phpserver]')  

Interactive mode example usage

  • Using Jacl:
    $AdminTask deleteServerTemplate {-interactive}  
  • Using Jython:
    AdminTask.deleteServerTemplate ('[-interactive]')