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:
- 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.
- To start the A2 QuickInstaller, type the following command, and then press ENTER:
- Under Application Installers, type the option number for Web/Application Servers, and then press ENTER.
- 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.
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.
- 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.
- Application Servers
You can use the A2 QuickInstaller to install a wide variety of application servers with just a few keystrokes. You can install a LAMP stack, nginx, and more.
- Apache, MySQL/MariaDB, and PHP
One of the first things many people install on a new system is a LAMP (Linux, Apache, MySQL or MariaDB, and PHP) stack. Learn how to install one quickly and easily using the A2 QuickInstaller here.
- nginx, MySQL, and PHP
Installing nginx, MySQL, and PHP (a LEMP stack) on your system is easy with the A2 QuickInstaller.
You can use the A2 QuickInstaller to install MongoDB on your system.