Skip to content

Commit

Permalink
Error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojtek committed Mar 9, 2018
1 parent 221e855 commit 72b2fd5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bootstrap.sh
Expand Up @@ -34,6 +34,17 @@ apt-get -y install php5 # php5-mcrypt php5-xdebug
a2enmod rewrite
# php5enmod mcrypt

# Conf PHP
PHP_LOG_FILE="/var/log/php.log"
touch "$PHP_LOG_FILE"
chmod 777 "$PHP_LOG_FILE"
sed -i -e s@";error_log = php_errors.log"@"error_log = $PHP_LOG_FILE"@g /etc/php5/apache2/php.ini
sed -i s/"error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT"/"error_reporting = E_ALL"/g /etc/php5/apache2/php.ini
sed -i s/"session.cookie_httponly ="/"session.cookie_httponly = On"/g /etc/php5/apache2/php.ini
sed -i s/";session.cookie_secure ="/"session.cookie_secure = On"/g /etc/php5/apache2/php.ini
sed -i s/"display_errors = Off"/"display_errors = On"/g /etc/php5/apache2/php.ini
unset PHP_LOG_FILE

# Standard charset
sed -i 's/;default_charset = "UTF-8"/default_charset = "UTF-8"/g' /etc/php5/apache2/php.ini

Expand All @@ -57,4 +68,8 @@ echo '======================================'
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/bin/composer

## MISC

apt-get -y install nano htop multitail

cd /vagrant

0 comments on commit 72b2fd5

Please sign in to comment.