-
Notifications
You must be signed in to change notification settings - Fork 6
/
lamp_setup.sh
executable file
·56 lines (43 loc) · 1.85 KB
/
lamp_setup.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
echo "Welcome to Easy Ubuntu Dev Setup 2.0"
echo -e "Maintained By SUST CSE Developer Network (SCDN)\n"
echo "Steap:1 [System Update]"
echo "Update Starts....."
sudo apt-get update
echo -e "System Update Completed Successfully\n"
echo "Step:2 [Install Apache2]"
sudo apt-get install apache2
echo -e "Apache2 Installation Completed Successfully\n"
echo "Step:3 [Install MySQL]"
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
echo -e "MySQL Installation Completed Successfully\n"
echo "Step:4 [Install PHP7]"
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-zip php7.0-mcrypt php7.0-mbstring php7.0-xml php-xml php7.0-intl
echo -e "PHP Installation Completed Successfully\n"
echo "Step:5 [Install PHPmyadmin]"
sudo apt-get install phpmyadmin
echo -e "PHPmyadmin Installation Completed Successfully\n"
sudo systemctl restart apache2
echo "Step:6 [Install curl]"
sudo apt-get install curl
echo -e "curl Installation Completed Successfully\n"
echo "Step:7 [Install Git]"
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
echo -e "Git Installation Completed Successfully\n"
echo "Step:8 [Install mcrypt and enable rewrite]"
sudo php7.0-mcrypt mcrypt
sudo a2enmod rewrite
sudo service apache2 restart
echo -e "mcrypt Installation and enable rewrite Completed Successfully\n"
echo "Step:9 [Install Composer]"
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
echo -e "Composer Installation Completed Successfully\n"
echo "Step:10 [Install Sublime Text 3]"
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
echo -e "Sublime Text 3 Installation Completed Successfully\n"
echo "Thanks !!! ~ SUST CSE Developer Network (SCDN) - http://scdnlab.com"