filmov
tv
LAMP Stack Installation | How To Configure LAMP Server On CentOS Stream 9 @RockingSupport
Показать описание
LAMP Stack Installation | How To Install LAMP Stack On CentOS Stream 9 . A LAMP stack is a collection of four different software (Linux, Apache, MySQL, and PHP) that programmers or web developers use to create and deploy websites or applications.
#centos9 #lampserver #installation
How to Install LAMP Server on CentOS 9
What is LAMP?
A LAMP stack is a collection of four different software (Linux, Apache, MySQL, and PHP) that programmers or web developers use to create and deploy websites or applications.
Table of contents:
1. Install apache web server
2. Install PHP
3. Install MySQL Server
4. Install PHPMyAdmin
1: Install Apache web server
#yum install httpd
Manage apache server
#systemctl status httpd
#systemctl start httpd
#systemctl enable httpd
Manage Firewall (opening ports 80 and 443).
#firewall-cmd –permanent --add-service=http
#firewall-cmd --permanent–add-service=https
#systemctl restart firewalld
2: Install PHP
Use the below command to configure the EPEL repository on your system:
After that, configure the REMI repository by running the below command:
After repository install is finished run below command
#sudo dnf module list php
Get a list choose your requirements:
#sudo dnf module enable php:remi-8.2
#sudo dnf module enable php:remi-8.1 (like this)
Last below command to install PHP
# sudo dnf install php php-cli php-common
Check PHP version
#php-v
Install PHP extension for your requirement:
#sudo yum install php-extension name
Like
#sudo yum install php-mysql
3. Install mariadb
#sudo yum install mariadb-server mariadb
#mysql_secure_installation
4 Install PhpMyAdmin for manage MySQL
#yum install phpmyadmin
Add Below line
Require all granted
#systemctl restart httpd
#centos9 #lampserver #installation
How to Install LAMP Server on CentOS 9
What is LAMP?
A LAMP stack is a collection of four different software (Linux, Apache, MySQL, and PHP) that programmers or web developers use to create and deploy websites or applications.
Table of contents:
1. Install apache web server
2. Install PHP
3. Install MySQL Server
4. Install PHPMyAdmin
1: Install Apache web server
#yum install httpd
Manage apache server
#systemctl status httpd
#systemctl start httpd
#systemctl enable httpd
Manage Firewall (opening ports 80 and 443).
#firewall-cmd –permanent --add-service=http
#firewall-cmd --permanent–add-service=https
#systemctl restart firewalld
2: Install PHP
Use the below command to configure the EPEL repository on your system:
After that, configure the REMI repository by running the below command:
After repository install is finished run below command
#sudo dnf module list php
Get a list choose your requirements:
#sudo dnf module enable php:remi-8.2
#sudo dnf module enable php:remi-8.1 (like this)
Last below command to install PHP
# sudo dnf install php php-cli php-common
Check PHP version
#php-v
Install PHP extension for your requirement:
#sudo yum install php-extension name
Like
#sudo yum install php-mysql
3. Install mariadb
#sudo yum install mariadb-server mariadb
#mysql_secure_installation
4 Install PhpMyAdmin for manage MySQL
#yum install phpmyadmin
Add Below line
Require all granted
#systemctl restart httpd