-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlamp_install_old.sh
More file actions
33 lines (25 loc) · 943 Bytes
/
Copy pathlamp_install_old.sh
File metadata and controls
33 lines (25 loc) · 943 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
29
30
31
32
33
# LAMP installation script
# 13/02/2024 - SP
#!/bin/bash
echo -e "\n\n-->> LAMP Stack Installation started <<--"
# Update & upgrade apt package
echo -e "\n--> Updating and Upgrading Apt packages"
apt update -y && apt upgrade -y
# Installation, auto-run, module for Apache2 web server
echo -e "\n--> Installing Apache2 web server"
apt install -y apache2
systemclt enable apache2
a2enmod rewrite
systemclt restart apache2
# Installation PHP & Requirements
echo -e "\n--> Installing PHP & Requirements"
apt install php libapache2-mod-php
# Installation PHP Requirements for GLPI
echo -e "\n--> Installing PHP Requirements for GLPI"
apt install php-xml php-common php-json php-mysql php-mbstring php-curl php-gd php-intl php-zip php-bz2 php-imap php-apcu
# Installation & config of MariaDB
echo -e "\n--> Installing MariaDB"
apt install mariadb-server
mysql_secure_installation
echo -e "\n-->> LAMP Installation completed <<--\n\n"
exit 0