Backport from trusty
This commit is contained in:
parent
7ec7ae77ee
commit
73d3507aab
@ -34,7 +34,7 @@ then
|
|||||||
sudo sed -i -e 's/bind-address[ \t]*= 127.0.0.1/bind-address = 0.0.0.0/g' /etc/mysql/my.cnf
|
sudo sed -i -e 's/bind-address[ \t]*= 127.0.0.1/bind-address = 0.0.0.0/g' /etc/mysql/my.cnf
|
||||||
sudo sed -i -e 's/max_connections[ \t]*= 100/max_connections = 20/g' /etc/mysql/my.cnf
|
sudo sed -i -e 's/max_connections[ \t]*= 100/max_connections = 20/g' /etc/mysql/my.cnf
|
||||||
sudo service mysql restart
|
sudo service mysql restart
|
||||||
mysql -uroot -p$MYSQL_PASS < /vagrant/data/Apps/phpmyadmin.sql
|
mysql -hlocalhost -uroot -p$MYSQL_PASS < /vagrant/data/Apps/phpmyadmin.sql
|
||||||
sudo touch /etc/mysql/vagrant
|
sudo touch /etc/mysql/vagrant
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ then
|
|||||||
if [ -f "/vagrant/data/Apps/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" ]
|
if [ -f "/vagrant/data/Apps/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" ]
|
||||||
then
|
then
|
||||||
unzip "/vagrant/data/Apps/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" -d /home/vhosts/
|
unzip "/vagrant/data/Apps/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" -d /home/vhosts/
|
||||||
mysql -uroot -p$MYSQL_PASS < "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/examples/create_tables.sql"
|
mysql -hlocalhost -uroot -p$MYSQL_PASS < "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/examples/create_tables.sql"
|
||||||
cp /vagrant/data/Apps/config.inc.php "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/"
|
cp /vagrant/data/Apps/config.inc.php "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -57,7 +57,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/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/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 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
|
sudo cp -f /vagrant/data/PHP/xdebug.ini /etc/php5/conf.d/xdebug.ini
|
||||||
|
|
||||||
# Browscap
|
# Browscap
|
||||||
sudo cp -f /vagrant/data/PHP/php_browscap.ini /etc/php5/apache2/
|
sudo cp -f /vagrant/data/PHP/php_browscap.ini /etc/php5/apache2/
|
||||||
@ -69,8 +69,7 @@ then
|
|||||||
sudo cp /vagrant/data/ChartDirector/lib/libchartdir.so /usr/lib/php5/20090626/
|
sudo cp /vagrant/data/ChartDirector/lib/libchartdir.so /usr/lib/php5/20090626/
|
||||||
sudo cp /vagrant/data/ChartDirector/lib/phpchartdir530.dll /usr/lib/php5/20090626/
|
sudo cp /vagrant/data/ChartDirector/lib/phpchartdir530.dll /usr/lib/php5/20090626/
|
||||||
sudo cp /vagrant/data/ChartDirector/chartdir.lic /usr/lib/php5/20090626/
|
sudo cp /vagrant/data/ChartDirector/chartdir.lic /usr/lib/php5/20090626/
|
||||||
sudo cp /vagrant/data/ChartDirector/chartdir.ini /etc/php5/mods-available/
|
sudo cp /vagrant/data/ChartDirector/chartdir.ini /etc/php5/conf.d/
|
||||||
sudo php5enmod chartdir
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configuration PHP / CLI
|
# Configuration PHP / CLI
|
||||||
@ -78,7 +77,7 @@ sudo sed -i -e 's/short_open_tag = Off/short_open_tag = On/g' /etc/php5/cli/php.
|
|||||||
sudo sed -i -e 's/;date.timezone =/date.timezone = Europe\/Paris/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
|
||||||
sudo cp -f /vagrant/data/Apache/httpd.conf /etc/apache2/conf-available/
|
sudo cp -f /vagrant/data/Apache/httpd.conf /etc/apache2/
|
||||||
if [ ! -d /home/vhosts/apachelog ]
|
if [ ! -d /home/vhosts/apachelog ]
|
||||||
then
|
then
|
||||||
sudo mkdir /home/vhosts/apachelog
|
sudo mkdir /home/vhosts/apachelog
|
||||||
@ -104,12 +103,12 @@ for f in *; do DVHOSTS+=" $f"; done;
|
|||||||
sudo a2dissite $DVHOSTS
|
sudo a2dissite $DVHOSTS
|
||||||
|
|
||||||
# Copy Vhosts files
|
# Copy Vhosts files
|
||||||
VHOSTS='000-default.conf'
|
VHOSTS='default'
|
||||||
cd /vagrant/vhosts/
|
cd /vagrant/vhosts/
|
||||||
for f in *; do
|
for f in *; do
|
||||||
if [ -f $f ]
|
if [ -f $f ]
|
||||||
then
|
then
|
||||||
sudo cp -f $f /etc/apache2/sites-available/;
|
sudo cp -f $f /etc/apache2/sites-available/
|
||||||
VHOSTS+=" $f"
|
VHOSTS+=" $f"
|
||||||
fi
|
fi
|
||||||
done;
|
done;
|
||||||
|
@ -4,9 +4,10 @@
|
|||||||
UseCanonicalPhysicalPort On
|
UseCanonicalPhysicalPort On
|
||||||
DocumentRoot /home/vhosts/phpmyadmin
|
DocumentRoot /home/vhosts/phpmyadmin
|
||||||
<Directory /home/vhosts/phpmyadmin/>
|
<Directory /home/vhosts/phpmyadmin/>
|
||||||
AllowOverride all
|
EnableSendfile Off
|
||||||
Order allow,deny
|
AllowOverride all
|
||||||
allow from all
|
Order allow,deny
|
||||||
|
allow from all
|
||||||
</Directory>
|
</Directory>
|
||||||
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||||
# error, crit, alert, emerg.
|
# error, crit, alert, emerg.
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
UseCanonicalPhysicalPort On
|
UseCanonicalPhysicalPort On
|
||||||
DocumentRoot /home/vhosts/test
|
DocumentRoot /home/vhosts/test
|
||||||
<Directory /home/vhosts/test/>
|
<Directory /home/vhosts/test/>
|
||||||
|
EnableSendfile Off
|
||||||
Options Indexes FollowSymLinks MultiViews
|
Options Indexes FollowSymLinks MultiViews
|
||||||
AllowOverride all
|
AllowOverride all
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
|
6
lamp-precise64/data/PHP/xdebug.ini
Normal file
6
lamp-precise64/data/PHP/xdebug.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
zend_extension=/usr/lib/php5/20090626/xdebug.so
|
||||||
|
|
||||||
|
[xdebug]
|
||||||
|
xdebug.remote_enable = 1
|
||||||
|
xdebug.remote_port = 9000
|
||||||
|
xdebug.remote_connect_back = 1
|
Loading…
Reference in New Issue
Block a user