Commentaires

This commit is contained in:
Michael RICOIS 2015-01-15 15:55:08 +01:00
parent 4e175bd634
commit 27d3c607ab

View File

@ -3,14 +3,14 @@
sudo apt-get update
sudo apt-get -y upgrade
# Installation Wkhtmltopdf
# --- Installation Wkhtmltopdf
if [ ! -f /usr/local/bin/wkhtmltopdf ]
then
sudo dpkg -i /vagrant/data/Apps/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo apt-get -f install -y
fi
# Installation
# --- Installation
if [ ! -f /usr/bin/php5 ]
then
sudo apt-get update
@ -18,7 +18,7 @@ then
sudo a2enmod autoindex deflate expires headers rewrite
fi
# Installation MariaDB
# --- Installation MariaDB
MARIADB_VERSION='10.0'
MYSQL_PASS=scores
if [ ! -f /etc/mysql/vagrant ]
@ -36,7 +36,7 @@ then
sudo touch /etc/mysql/vagrant
fi
# Installation phpMyAdmin
# --- Installation phpMyAdmin
PHPMYADMIN_VERSION='4.3.1'
if [ ! -d "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages" ]
then
@ -50,7 +50,7 @@ then
fi
fi
# Configuration PHP / Apache
# --- Configuration PHP / Apache
sudo sed -i -e 's/short_open_tag = Off/short_open_tag = On/g' /etc/php5/apache2/php.ini
sudo sed -i -e 's/;date.timezone =/date.timezone = Europe\/Paris/g' /etc/php5/apache2/php.ini
sudo sed -i -e 's/post_max_size = 8M/post_max_size = 50M/g' /etc/php5/apache2/php.ini
@ -59,7 +59,7 @@ sudo sed -i -e 's/session.gc_maxlifetime = 1440/session.gc_maxlifetime = 86400/g
sudo sed -i -e 's/;opcache.enable=0/opcache.enable=1/g' /etc/php5/apache2/php.ini
sudo cp /vagrant/data/PHP/xdebug.ini /etc/php5/mods-available/xdebug.ini
# Browscap
# --- Browscap
sudo cp -f /vagrant/data/PHP/php_browscap.ini /etc/php5/apache2/
sudo sed -i -e 's/;browscap = extra\/browscap.ini/browscap = \/etc\/php5\/apache2\/php_browscap.ini/g' /etc/php5/apache2/php.ini
@ -73,11 +73,11 @@ then
sudo php5enmod chartdir
fi
# Configuration PHP / CLI
# --- Configuration PHP / CLI
sudo sed -i -e 's/short_open_tag = Off/short_open_tag = On/g' /etc/php5/cli/php.ini
sudo sed -i -e 's/;date.timezone =/date.timezone = Europe\/Paris/g' /etc/php5/cli/php.ini
# Configuration Apache
# --- Configuration Apache
if [ ! -f /etc/apache2/conf-available/httpd.conf ]
then
sudo cp /vagrant/data/Apache/httpd.conf /etc/apache2/conf-available/
@ -102,13 +102,13 @@ then
cp /vagrant/data/Apache/test.conf /vagrant/vhosts/test.conf
fi
# Disable all website
# --- Disable all website
cd /etc/apache2/sites-available/
DVHOSTS=''
for f in *.conf; do DVHOSTS+=" $f"; done;
sudo a2dissite $DVHOSTS
# Copy Vhosts files
# --- Copy Vhosts files
VHOSTS='000-default.conf'
cd /vagrant/vhosts/
for f in *.conf; do
@ -120,5 +120,5 @@ for f in *.conf; do
done;
sudo a2ensite $VHOSTS
# Restart apache
# --- Restart apache
sudo service apache2 restart