-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlampPi.sh
29 lines (23 loc) · 822 Bytes
/
lampPi.sh
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
"
Lamp for RPI 2/3
This script helps u to install the full lamp on ur RPI 2/3
by Sold1er
Email:[email protected]
"
#Update the system if u need to upgrade remove #
sudo aptitude update
#sudo aptitude upgrade
#_______________________Install apache 2
sudo aptitude install apache2
#Change the persmissions
sudo chown -R pi:www-data /var/www/html/
sudo chmod -R 770 /var/www/html/
#_______________________Install php5
sudo aptitude install php5
#Change the default index.html to index.php :to test the server
#echo "<?php phpinfo(); ?>" > /var/www/html/index.php
#MysqlServer ,You can user root as password for the default login,then change it later
sudo aptitude install mysql-server php5-mysql
#mysql --user=root --password=root
#______________________Install Phpmyadmin
sudo aptitude install phpmyadmin