Installing the LAMP Stack on Cent OS 7
Prerequisites:
Before you begin following this tutorial, you will need a Zelon VPS/Dedicated Server running Cent OS 7.
Step One - Install Apache:
First you will need to install apache on your server, which is the webserver that will be used in this tutorial.
Enter the following command:
yum install httpd
Once apache is installed, start apache.
systemctl start httpd.service
Then to verify apache was installed, put your servers public IP address into your web browser.
http://ipaddress/
If everything works as planned, then you probably want apache to start on boot up.
systemctl enable httpd.service
Step Two - Install MySQL(MariaDB):
Now that you have installed apache, you will need MySQL(MariaDB) for your server to store information.
Please enter the command below to install the required packages:
yum install mariadb-server mariadb
Once the installation is complete, you need to start MariaDB with the following command:
systemctl start mariadb
Step Three - Install PHP:
Now we need to install php, it is used to display dynamic content on your website.
First enter the following command to start the installation of PHP:
yum install php php-mysql
Now restart apache to enable php:
systemctl restart httpd.service
Congratulations, you have completed the installation of LAMP stack!
Bu mövzu kifayət qədər köməkçi oldu?
Çap