Ajout extension xdebug

This commit is contained in:
Michael RICOIS 2014-12-15 22:38:11 +01:00
parent b5690899b1
commit 4b2399cb72
2 changed files with 9 additions and 2 deletions

View File

@ -25,7 +25,7 @@ fi
if [ ! -f /usr/bin/php5 ]
then
sudo apt-get update
sudo apt-get install -y apache2 mysql-client-5.5 php5 php5-apcu php5-curl php5-xmlrpc php5-xsl php5-mysqlnd
sudo apt-get install -y apache2 mysql-client-5.5 php5 php5-apcu php5-curl php5-xmlrpc php5-xsl php5-mysqlnd php5-xdebug
sudo a2enmod autoindex deflate expires headers rewrite
fi
@ -64,6 +64,7 @@ sudo sed -i -e 's/post_max_size = 8M/post_max_size = 50M/g' /etc/php5/apache2/ph
sudo sed -i -e 's/upload_max_filesize = 2M/upload_max_filesize = 50M/g' /etc/php5/apache2/php.ini
sudo sed -i -e 's/session.gc_maxlifetime = 1440/session.gc_maxlifetime = 86400/g' /etc/php5/apache2/php.ini
sudo sed -i -e 's/;opcache.enable=0/opcache.enable=1/g' /etc/php5/apache2/php.ini
sudo cp /vagrant/data/xdebug.ini /etc/php5/mods-available/xdebug.ini
# Browscap
sudo cp -f /vagrant/data/php_browscap.ini /etc/php5/apache2/
@ -73,7 +74,7 @@ sudo sed -i -e 's/;browscap = extra\/browscap.ini/browscap = \/etc\/php5\/apache
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
#Disable all website
# Disable all website
cd /etc/apache2/sites-available/
for f in *.conf; do sudo a2dissite $f; done;
sudo a2ensite 000-default.conf

View File

@ -0,0 +1,6 @@
zend_extension=xdebug.so
[xdebug]
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.remote_connect_back = 1