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
- Log in to the vRealize Automation Rainpole portal.
- Open a Web browser and go to https://vra01svr01.rainpole.local/vcac/org/rainpole.
- Log in using the following credentials.
Setting
Value
User name
vra-admin-rainpole
Password
vra-admin-rainpole_password
Domain
rainpole.local
- Click New to create a new service.
- Under General, enter the following values.
Setting
Value
Name
PHP Service
Description
Add PHP Service
Container
Machine
- Click Next to skip the Properties pane.
- Set the actions for this service in the Actions pane.
- In the Install row, select Bash as the Script Type.
- 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
- In Start row, select Click here to Edit and paste the following code into the Edit Script text box.
/sbin/service httpd restart
- Click OK.
- Click Next and click Finish.
- Select the new service and click Publish.