Previous Topic: Define Apache HTTP Server

Next Topic: Define MySQL


Define PHP

PHP is a scripting language that is used for creating dynamic web pages, such as wiki.

Follow these steps:

  1. 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.

  2. Specify the Name, Version, and Vendor for the application.
  3. Specify the location of the application files (absolute path or relative to the Staging folder).
  4. Specify Apache HTTP Server as a prerequisite for this application.
  5. Click Next.

    The System Requirements panel opens.

  6. Set the following recommended values:
  7. Click Next.

    The Configure Installation Actions panel opens. You will define three installation actions: Install PHP, Stop Apache, and Start Apache.

  8. Click + to define the Install PHP action.
    1. On the Select Installation Action panel, in the Action field, input the command to execute:
      cmd.exe /c start /w msiexec.exe
      
    2. Enter a description for the action.
    3. Click Next.
    4. 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
      
    5. Click Finish.

      The action is saved.

  9. Click + to define the Stop Apache action.
    1. On the Select Installation Action panel, in the Action field, input the command to execute:
      net stop apache2.2
      
    2. Click Next.
    3. On the Define Installation Action Options panel, only check the preview and click Finish.

      The action is saved.

  10. Click + to define the Start Apache action.
    1. On the Select Installation Action panel, in the Action field, input the command to execute:
      net start apache2.2
      
    2. On the Define Installation Action Options panel, only check the preview and click Finish.

      The action is saved.

  11. Click Next, and then Finish.

    The PHP application is saved.