-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlamp_rpm_8
More file actions
34 lines (20 loc) · 711 Bytes
/
lamp_rpm_8
File metadata and controls
34 lines (20 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Installing the Apache Web Server
sudo dnf install httpd
sudo systemctl start httpd
#Installing MariaDB
sudo dnf install mariadb-server
sudo systemctl start mariadb
sudo mysql_secure_installation
#Installing PHP
sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm
sudo dnf module list php
sudo dnf module reset php
sudo dnf module enable php:remi-7.4
sudo dnf install php php-opcache php-gd php-curl php-mysqlnd
sudo systemctl restart httpd
#Installing Git
sudo dnf install git -y
#Installing Composer
sudo wget https://getcomposer.org/installer -O composer-installer.php
sudo php composer-installer.php --filename=composer --install-dir=/usr/local/bin