To install LAPP on Centos 7 follow the steps below but if you use Debian system check this.
Let’s first of all install Apache. You can install Apache from the official repository with command:
yum install httpd
After processing it is necessary to start Apache. Type this command:
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:
systemctl status httpd
Finally make it run at startup. Type this:
systemctl enable httpd
Apache is ready. Let's go to the PHP. It is simple - just run this command:
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:
systemctl restart httpd.service
By using this command you will install PHP 5 but if you want to install PHP 7 check this.
And finally let’s install PostgreSQL. You can do this with the following command:
yum install postgresql-server postgresql-contrib
After realization process you need to initialize PostgreSQL:
Now let’s start the PostgreSQL service. Use this command:
systemctl start postgresql
That is all. Now you have installed LAPP on your Centos 7.