CATEGORIES

TAGS

SSL

PostgreSQL

cPanel

email

Error

WHM

Linux

Bash

Debian

Ubuntu

How to install LAPP on Centos 7

24th August
PostgreSQLLinux
How to install LAPP on Centos 7

LAPP is Apache, PostgreSQL and PHP for Linux. It’s like LAMP (Apache, MySQL (using MariaDB) and PHP), but instead of MySQL here has been used PostgreSQL.
To install LAPP on Centos 7 follow the steps below but if you use Debian system check this.

Step 1


Let’s first of all install Apache. You can install Apache from the official repository with command:
Copied!

yum install httpd



After processing it is necessary to start Apache. Type this command:
Copied!

systemctl start httpd



It is a good idea to restart or to stop the Apache server after starting for checking the status of server. To do that run this command:
Copied!

systemctl status httpd



Finally make it run at startup. Type this:
Copied!

systemctl enable httpd



Step 2


Apache is ready. Let's go to the PHP. It is simple - just run this command:
Copied!

yum install php php-mysql



INFO: “php -mysql” for including support package for the MySQL.



After installation PHP it is a good idea to restart the server. To do this use the following command:
Copied!

systemctl restart httpd.service



By using this command you will install PHP 5 but if you want to install PHP 7 check this.

Step 2


And finally let’s install PostgreSQL. You can do this with the following command:
Copied!

yum install postgresql-server postgresql-contrib



After realization process you need to initialize PostgreSQL:
Copied!

postgresql-setup initdb



Now let’s start the PostgreSQL service. Use this command:
Copied!

systemctl start postgresql



That is all. Now you have installed LAPP on your Centos 7.


SUBSCRIBE by email and never miss a post!