Step-by-Step Guide on Installing LAMP Server

Ubuntu and Debian

1. Update System Packages

sudo apt-get update && sudo apt-get upgrade -y

2. Install Apache

sudo apt-get install apache2 -y

3. Install MySQL

sudo apt-get install mysql-server -y

4. Install PHP

sudo apt-get install php libapache2-mod-php php-mysql -y

5. Restart Apache Server

sudo service apache2 restart

CentOS

1. Update System Packages

sudo yum update -y

2. Install Apache

sudo yum install httpd -y

3. Start and Enable Apache

sudo systemctl start httpd && sudo systemctl enable httpd

4. Install MySQL (MariaDB)

sudo yum install mariadb-server mariadb -y

5. Start and Enable MySQL

sudo systemctl start mariadb && sudo systemctl enable mariadb

6. Install PHP

sudo yum install php php-mysql -y

7. Restart Apache Server

sudo systemctl restart httpd

Was dit antwoord nuttig? 0 gebruikers vonden dit artikel nuttig (0 Stemmen)

Powered by WHMCompleteSolution