A multi-tier application pattern might require a PHP component. This task creates a service that installs and runs a PHP service on a Linux virtual machine.

Procedure

  1. Log in to the vRealize Automation Rainpole portal.
    1. Open a Web browser and go to https://vra01svr01.rainpole.local/vcac/org/rainpole.
    2. Log in using the following credentials.

      Setting

      Value

      User name

      vra-admin-rainpole

      Password

      vra-admin-rainpole_password

      Domain

      rainpole.local

  2. Click New to create a new service.
  3. Under General, enter the following values.

    Setting

    Value

    Name

    PHP Service

    Description

    Add PHP Service

    Container

    Machine

  4. Click Next to skip the Properties pane.
  5. Set the actions for this service in the Actions pane.
    1. In the Install row, select Bash as the Script Type.
    2. Still in the Install row, select Click Here to edit and paste the following code into the Edit Script text box.
      /usr/bin/yum -y install php php-mysql
    3. In Start row, select Click here to Edit and paste the following code into the Edit Script text box.
      /sbin/service httpd restart
    4. Click OK.




  6. Click Next and click Finish.
  7. Select the new service and click Publish.