Knowledge Base

How to install Apache, PostgreSQL, and PHP using the A2 QuickInstaller

This article describes how to use the A2 QuickInstaller to install Apache, PostgreSQL, and PHP. This configuration is also sometimes referred to as a LAPP (Linux, Apache, PostgreSQL, and PHP) stack. You can install PostgreSQL 8.4 or PostgreSQL 9.2.

The A2 QuickInstaller is no longer supported, and is only available on older VPS hosting packages. On newer VPS hosting packages, you can use Webuzo to quickly and easily install a wide range of applications and manage your server.

To check if the A2 QuickInstaller supports this application for your Linux distribution, please see this article.

Installing Apache, PostgreSQL, and PHP

To install Apache, PostgreSQL, and PHP, follow these steps:

  1. Use SSH to log in to your system as the root user.
    To use the A2 QuickInstaller, you must log in as the root user using SSH. You cannot use the serial console in the VPS Control Panel to run the A2 QuickInstaller.
  2. To start the A2 QuickInstaller, type the following command, and then press ENTER:
    sh /usr/sbin/quickinstaller.sh
  3. Under Application Installers, type the option number for Web/Application Servers, and then press ENTER.
  4. Select the PostgreSQL version that you want to install:
    • To install PostgreSQL 8.4, type the option number for LAPP - Apache, PostgreSQL, PHP, and then press ENTER.
    • To install PostgreSQL 9.2, type the option number for LAPP9 - Apache, PostgreSQL 9, PHP, and then press ENTER.

    The A2 QuickInstaller updates your system, and then begins the installation process.

    The installation process takes some time to complete. Do not interrupt the installation process.
  5. Depending on the Linux distribution that your system uses, you may see the following prompts:

    • If you are installing PostgreSQL 9, type a PostgreSQL root password when you are prompted, and then press ENTER.
    • Type your IP address for remote access to phpPgAdmin when you are prompted, and then press ENTER.
    • Type a username to create a PostgreSQL user, and then press ENTER.
    • Type a password for the PostgreSQL user, and then press ENTER.
    • Re-type the password for the PostgreSQL user, and then press ENTER.
  6. When installation is complete, the A2 QuickInstaller displays the directory path for your web site files. Depending on the Linux distribution that your system uses, there may also be additional instructions about how to log in to PostgreSQL from the command line to create users and databases.

More Information