-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap.sh
39 lines (29 loc) · 1.05 KB
/
bootstrap.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
# Install apache2
sudo apt-get install -y apache2 mod_rewrite
sudo a2enmod rewrite
echo mysql-server mysql-server/root_password password password | sudo debconf-set-selections
echo mysql-server mysql-server/root_password_again password password | sudo debconf-set-selections
# Install mysql
sudo apt-get install -y mysql-server-5.6
sudo apt-get install -y mysql-server
sudo apt-get install -y mysql-client
# Update the version of PHP to 5.6
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update
sudo apt-get install python-software-properties
sudo apt-get update
sudo apt-get install -y php5 php5-mysql php5-dev php-pear php5-curl
# Install memcached
sudo apt-get install -y memcached php5-memcache php5-memcached
# Install git
sudo apt-get install -y git
# Install phpunit
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit
# Install composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
# Restart apache2
sudo /etc/init.d/apache2 restart
echo "DONE"