Administration Guide › Provisioning Resources › Service Provisioning › How to Deploy a Wiki Web Page › Define Applications for Wiki › Define PHP
Define PHP
PHP is a scripting language that is used for creating dynamic web pages, such as wiki.
Follow these steps:
- Click Resources, and in the Explore tree, right-click OnDemand Services, and select New Application.
The Define an Application wizard opens in the Application Details panel.
- Specify the Name, Version, and Vendor for the application.
- Specify the location of the application files (absolute path or relative to the Staging folder).
- Specify Apache HTTP Server as a prerequisite for this application.
- Click Next.
The System Requirements panel opens.
- Set the following recommended values:
- Number of CPUs – 1
- Memory – 512 MB
- Disk Space – 5 GB
- Operating System – All Microsoft Windows Server versions
- Click Next.
The Configure Installation Actions panel opens. You will define three installation actions: Install PHP, Stop Apache, and Start Apache.
- Click + to define the Install PHP action.
- On the Select Installation Action panel, in the Action field, input the command to execute:
cmd.exe /c start /w msiexec.exe
- Enter a description for the action.
- Click Next.
- On the Define Installation Action Options panel, add the following five options:
/i %CD%\php-5.3.13-Win32-VC9-x86.msi
APACHEDIR=C:\Apache\conf
/qn
AgreeToLicense=YES
ADDLOCAL=ext_php_mysql,ext_php_mysqli,apache22
- Click Finish.
The action is saved.
- Click + to define the Stop Apache action.
- On the Select Installation Action panel, in the Action field, input the command to execute:
net stop apache2.2
- Click Next.
- On the Define Installation Action Options panel, only check the preview and click Finish.
The action is saved.
- Click + to define the Start Apache action.
- On the Select Installation Action panel, in the Action field, input the command to execute:
net start apache2.2
- On the Define Installation Action Options panel, only check the preview and click Finish.
The action is saved.
- Click Next, and then Finish.
The PHP application is saved.
Copyright © 2013 CA.
All rights reserved.
|
|