forked from srijanshetty/vagrant-by-elections
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache.sh
executable file
·22 lines (16 loc) · 887 Bytes
/
apache.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Install LAMP stack - Apache, MySQL, PHP
# as per http://fideloper.com/ubuntu-install-php54-lamp and/or http://fideloper.com/ubuntu-12-04-lamp-server-setup
# Add repository for php5.5 and Apache 2.4
sudo add-apt-repository -y ppa:ondrej/php5
sudo apt-get update
# Install basics
sudo apt-get install -y git-core wget vim curl build-essential python-software-properties zsh
sudo apt-get install -y php5 php5-mcrypt php5-gd php5-curl php5-mysql # Install PHP and common modules
sudo apt-get install -y apache2 libapache2-mod-php5 # Install Apache2
sudo apt-get install -y mysql-server # Install MySQL
sudo apt-get install -y phpmyadmin
# make the php sessions file readable /var/lib/php5 by www-data
sudo chown -R www-data:www-data /var/lib/php5
# You need Include phpmyadmin to apache
sudo ./custom.sh