Mise à jour des deux définitions
This commit is contained in:
parent
8441f78173
commit
f2afc200f6
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
sudo apt-get -y install htop unzip
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
if [ ! -f /usr/bin/php5 ]
|
if [ ! -f /usr/bin/php5 ]
|
||||||
then
|
then
|
||||||
@ -8,14 +10,43 @@ then
|
|||||||
sudo a2enmod autoindex deflate expires headers rewrite
|
sudo a2enmod autoindex deflate expires headers rewrite
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Installation MySQL
|
# Installation MariaDB
|
||||||
#sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password scores'
|
if [ ! -f /usr/bin/mysql ]
|
||||||
#sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password scores'
|
then
|
||||||
#sudo apt-get install -y mysql-server
|
MARIADB_VERSION='10.0'
|
||||||
#sudo sed -i -e 's/datadir = \/var\/lib\/mysql/datadir = \/home\/mysql/g' /etc/mysql/my.cnf
|
MYSQL_PASS='scores'
|
||||||
|
debconf-set-selections <<< "mariadb-server-$MARIADB_VERSION mysql-server/root_password password $MYSQL_PASS"
|
||||||
|
debconf-set-selections <<< "mariadb-server-$MARIADB_VERSION mysql-server/root_password_again password $MYSQL_PASS"
|
||||||
|
sudo apt-get install software-properties-common
|
||||||
|
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
|
||||||
|
sudo add-apt-repository 'deb http://nwps.ws/pub/mariadb/repo/10.0/ubuntu precise main'
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install mariadb-server
|
||||||
|
#sudo sed -i -e 's/datadir = \/var\/lib\/mysql/datadir = \/home\/vhosts\/mysql/g' /etc/mysql/my.cnf
|
||||||
|
sudo sed -i "s/bind-address = 127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
|
||||||
|
mysql -hlocalhost -uroot -pscores < /vagrant/data/pma.sql
|
||||||
|
sudo service mysql restart
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Installation phpMyAdmin
|
||||||
|
PHPMYADMIN_VERSION='4.3.1'
|
||||||
|
if [ -f "/vagrant/data/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" && ! -d "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages" ]
|
||||||
|
then
|
||||||
|
unzip "/vagrant/data/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" -d /home/vhosts/
|
||||||
|
mysql -hlocalhost -uroot -pscores < "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/examples/create_tables.sql"
|
||||||
|
cp /vagrant/data/config.inc.php "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/"
|
||||||
|
sudo ln -s "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages" /home/vhosts/phpmyadmin
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Installation Wkhtmltopdf
|
||||||
|
if [ ! -f /usr/local/bin/wkhtmltopdf ]
|
||||||
|
then
|
||||||
|
sudo dpkg -i /vagrant/data/wkhtmltox-0.12.1_linux-precise-amd64.deb
|
||||||
|
sudo apt-get -f install -y
|
||||||
|
fi
|
||||||
|
|
||||||
# Configuration Apache
|
# Configuration Apache
|
||||||
sudo cp /vagrant/httpd.conf /etc/apache2/httpd.conf
|
sudo cp /vagrant/data/httpd.conf /etc/apache2/httpd.conf
|
||||||
|
|
||||||
# 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/short_open_tag = Off/short_open_tag = On/g' /etc/php5/apache2/php.ini
|
||||||
|
54
lamp-precise64/data/config.inc.php
Normal file
54
lamp-precise64/data/config.inc.php
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* Generated configuration file
|
||||||
|
* Generated by: phpMyAdmin 3.4.3.2 setup script
|
||||||
|
* Date: Wed, 03 Aug 2011 15:15:00 +0200
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Servers configuration */
|
||||||
|
$i = 0;
|
||||||
|
|
||||||
|
/* Server: localhost [1] */
|
||||||
|
$i++;
|
||||||
|
$cfg['Servers'][$i]['verbose'] = 'DEV';
|
||||||
|
$cfg['Servers'][$i]['host'] = '192.168.33.10';
|
||||||
|
$cfg['Servers'][$i]['port'] = '';
|
||||||
|
$cfg['Servers'][$i]['socket'] = '';
|
||||||
|
$cfg['Servers'][$i]['connect_type'] = 'tcp';
|
||||||
|
$cfg['Servers'][$i]['extension'] = 'mysqli';
|
||||||
|
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||||
|
$cfg['Servers'][$i]['user'] = 'root';
|
||||||
|
$cfg['Servers'][$i]['controluser'] = 'pma';
|
||||||
|
$cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
||||||
|
|
||||||
|
/* Storage database and tables */
|
||||||
|
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
||||||
|
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
||||||
|
$cfg['Servers'][$i]['relation'] = 'pma__relation';
|
||||||
|
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
||||||
|
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
||||||
|
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
||||||
|
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
||||||
|
$cfg['Servers'][$i]['history'] = 'pma__history';
|
||||||
|
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
||||||
|
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
||||||
|
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
||||||
|
$cfg['Servers'][$i]['recent'] = 'pma__recent';
|
||||||
|
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
||||||
|
$cfg['Servers'][$i]['users'] = 'pma__users';
|
||||||
|
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
||||||
|
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
||||||
|
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
||||||
|
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
||||||
|
|
||||||
|
/* End of servers configuration */
|
||||||
|
|
||||||
|
$cfg['ThemeDefault'] = 'original';
|
||||||
|
$cfg['DefaultLang'] = 'fr';
|
||||||
|
$cfg['ServerDefault'] = 1;
|
||||||
|
$cfg['blowfish_secret'] = '4e38214cb34af7.78090185';
|
||||||
|
$cfg['UploadDir'] = '';
|
||||||
|
$cfg['SaveDir'] = '';
|
||||||
|
$cfg['LoginCookieValidity'] = 3600 * 9;
|
||||||
|
|
||||||
|
?>
|
BIN
lamp-precise64/data/phpMyAdmin-4.3.1-all-languages.zip
Normal file
BIN
lamp-precise64/data/phpMyAdmin-4.3.1-all-languages.zip
Normal file
Binary file not shown.
2
lamp-precise64/data/pma.sql
Normal file
2
lamp-precise64/data/pma.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CREATE DATABASE IF NOT EXISTS `phpmyadmin` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
|
||||||
|
GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO 'pma'@'%' IDENTIFIED BY 'pmapass';
|
BIN
lamp-precise64/data/wkhtmltox-0.12.1_linux-precise-amd64.deb
Normal file
BIN
lamp-precise64/data/wkhtmltox-0.12.1_linux-precise-amd64.deb
Normal file
Binary file not shown.
18
lamp-precise64/vhosts/phpmyadmin
Normal file
18
lamp-precise64/vhosts/phpmyadmin
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName phpmyadmin.sd.dev
|
||||||
|
UseCanonicalName On
|
||||||
|
UseCanonicalPhysicalPort On
|
||||||
|
DocumentRoot /home/vhosts/phpmyadmin
|
||||||
|
<Directory /home/vhosts/phpmyadmin/>
|
||||||
|
AllowOverride all
|
||||||
|
Order allow,deny
|
||||||
|
allow from all
|
||||||
|
</Directory>
|
||||||
|
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||||
|
# error, crit, alert, emerg.
|
||||||
|
# It is also possible to configure the loglevel for particular
|
||||||
|
# modules, e.g.
|
||||||
|
LogLevel error
|
||||||
|
ErrorLog /home/vhosts/apachelog/phpmyadmin-error.log
|
||||||
|
CustomLog /home/vhosts/apachelog/phpmyadmin-access.log combined
|
||||||
|
</VirtualHost>
|
1
lamp-trusty64/Vagrantfile
vendored
1
lamp-trusty64/Vagrantfile
vendored
@ -40,7 +40,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||||||
# the path on the guest to mount the folder. And the optional third
|
# the path on the guest to mount the folder. And the optional third
|
||||||
# argument is a set of non-required options.
|
# argument is a set of non-required options.
|
||||||
# config.vm.synced_folder "../data", "/vagrant_data"
|
# config.vm.synced_folder "../data", "/vagrant_data"
|
||||||
|
|
||||||
config.vm.synced_folder "c:\\www", "/home/vhosts", owner: "www-data", group: "www-data"
|
config.vm.synced_folder "c:\\www", "/home/vhosts", owner: "www-data", group: "www-data"
|
||||||
|
|
||||||
# Provider-specific configuration so you can fine-tune various
|
# Provider-specific configuration so you can fine-tune various
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
sudo apt-get -y install htop unzip
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
if [ ! -f /usr/bin/php5 ]
|
if [ ! -f /usr/bin/php5 ]
|
||||||
then
|
then
|
||||||
@ -8,23 +10,45 @@ then
|
|||||||
sudo a2enmod autoindex deflate expires headers rewrite
|
sudo a2enmod autoindex deflate expires headers rewrite
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Installation MySQL
|
# Installation MariaDB
|
||||||
#sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password scores'
|
if [ ! -f /usr/bin/mysql ]
|
||||||
#sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password scores'
|
then
|
||||||
#sudo apt-get install -y mysql-server
|
MARIADB_VERSION='10.0'
|
||||||
#sudo sed -i -e 's/datadir = \/var\/lib\/mysql/datadir = \/home\/mysql/g' /etc/mysql/my.cnf
|
MYSQL_PASS='scores'
|
||||||
|
debconf-set-selections <<< "mariadb-server-$MARIADB_VERSION mysql-server/root_password password $MYSQL_PASS"
|
||||||
|
debconf-set-selections <<< "mariadb-server-$MARIADB_VERSION mysql-server/root_password_again password $MYSQL_PASS"
|
||||||
|
sudo apt-get install software-properties-common
|
||||||
|
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
|
||||||
|
sudo add-apt-repository 'deb http://nwps.ws/pub/mariadb/repo/10.0/ubuntu trusty main'
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install mariadb-server
|
||||||
|
#sudo sed -i -e 's/datadir = \/var\/lib\/mysql/datadir = \/home\/vhosts\/mysql/g' /etc/mysql/my.cnf
|
||||||
|
sudo sed -i "s/bind-address = 127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
|
||||||
|
mysql -hlocalhost -uroot -pscores < /vagrant/data/pma.sql
|
||||||
|
sudo service mysql restart
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Installation phpMyAdmin
|
||||||
|
PHPMYADMIN_VERSION='4.3.1'
|
||||||
|
if [ -f "/vagrant/data/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" && ! -d "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages" ]
|
||||||
|
then
|
||||||
|
unzip "/vagrant/data/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" -d /home/vhosts/
|
||||||
|
mysql -hlocalhost -uroot -pscores < "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/examples/create_tables.sql"
|
||||||
|
cp /vagrant/data/config.inc.php "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/"
|
||||||
|
sudo ln -s "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages" /home/vhosts/phpmyadmin
|
||||||
|
fi
|
||||||
|
|
||||||
# Installation Wkhtmltopdf
|
# Installation Wkhtmltopdf
|
||||||
if [ ! -f /usr/local/bin/wkhtmltopdf ]
|
if [ ! -f /usr/local/bin/wkhtmltopdf ]
|
||||||
then
|
then
|
||||||
sudo dpkg -i /vagrant/wkhtmltox-0.12.1_linux-trusty-amd64.deb
|
sudo dpkg -i /vagrant/data/wkhtmltox-0.12.1_linux-trusty-amd64.deb
|
||||||
sudo apt-get -f install -y
|
sudo apt-get -f install -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configuration Apache
|
# Configuration Apache
|
||||||
if [ ! -f /etc/apache2/conf-available/httpd.conf ]
|
if [ ! -f /etc/apache2/conf-available/httpd.conf ]
|
||||||
then
|
then
|
||||||
sudo cp /vagrant/httpd.conf /etc/apache2/conf-available/
|
sudo cp /vagrant/data/httpd.conf /etc/apache2/conf-available/
|
||||||
sudo a2enconf httpd
|
sudo a2enconf httpd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
54
lamp-trusty64/data/config.inc.php
Normal file
54
lamp-trusty64/data/config.inc.php
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* Generated configuration file
|
||||||
|
* Generated by: phpMyAdmin 3.4.3.2 setup script
|
||||||
|
* Date: Wed, 03 Aug 2011 15:15:00 +0200
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Servers configuration */
|
||||||
|
$i = 0;
|
||||||
|
|
||||||
|
/* Server: localhost [1] */
|
||||||
|
$i++;
|
||||||
|
$cfg['Servers'][$i]['verbose'] = 'DEV';
|
||||||
|
$cfg['Servers'][$i]['host'] = '192.168.33.10';
|
||||||
|
$cfg['Servers'][$i]['port'] = '';
|
||||||
|
$cfg['Servers'][$i]['socket'] = '';
|
||||||
|
$cfg['Servers'][$i]['connect_type'] = 'tcp';
|
||||||
|
$cfg['Servers'][$i]['extension'] = 'mysqli';
|
||||||
|
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||||
|
$cfg['Servers'][$i]['user'] = 'root';
|
||||||
|
$cfg['Servers'][$i]['controluser'] = 'pma';
|
||||||
|
$cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
||||||
|
|
||||||
|
/* Storage database and tables */
|
||||||
|
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
||||||
|
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
||||||
|
$cfg['Servers'][$i]['relation'] = 'pma__relation';
|
||||||
|
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
||||||
|
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
||||||
|
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
||||||
|
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
||||||
|
$cfg['Servers'][$i]['history'] = 'pma__history';
|
||||||
|
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
||||||
|
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
||||||
|
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
||||||
|
$cfg['Servers'][$i]['recent'] = 'pma__recent';
|
||||||
|
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
||||||
|
$cfg['Servers'][$i]['users'] = 'pma__users';
|
||||||
|
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
||||||
|
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
||||||
|
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
||||||
|
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
||||||
|
|
||||||
|
/* End of servers configuration */
|
||||||
|
|
||||||
|
$cfg['ThemeDefault'] = 'original';
|
||||||
|
$cfg['DefaultLang'] = 'fr';
|
||||||
|
$cfg['ServerDefault'] = 1;
|
||||||
|
$cfg['blowfish_secret'] = '4e38214cb34af7.78090185';
|
||||||
|
$cfg['UploadDir'] = '';
|
||||||
|
$cfg['SaveDir'] = '';
|
||||||
|
$cfg['LoginCookieValidity'] = 3600 * 9;
|
||||||
|
|
||||||
|
?>
|
BIN
lamp-trusty64/data/phpMyAdmin-4.3.1-all-languages.zip
Normal file
BIN
lamp-trusty64/data/phpMyAdmin-4.3.1-all-languages.zip
Normal file
Binary file not shown.
2
lamp-trusty64/data/pma.sql
Normal file
2
lamp-trusty64/data/pma.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CREATE DATABASE IF NOT EXISTS `phpmyadmin` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
|
||||||
|
GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO 'pma'@'%' IDENTIFIED BY 'pmapass';
|
17
lamp-trusty64/vhosts/phpmyadmin.conf
Normal file
17
lamp-trusty64/vhosts/phpmyadmin.conf
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName phpmyadmin.sd.dev
|
||||||
|
UseCanonicalName On
|
||||||
|
UseCanonicalPhysicalPort On
|
||||||
|
DocumentRoot /home/vhosts/phpmyadmin
|
||||||
|
<Directory /home/vhosts/phpmyadmin/>
|
||||||
|
AllowOverride all
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||||
|
# error, crit, alert, emerg.
|
||||||
|
# It is also possible to configure the loglevel for particular
|
||||||
|
# modules, e.g.
|
||||||
|
LogLevel error
|
||||||
|
ErrorLog /home/vhosts/apachelog/phpmyadmin-error.log
|
||||||
|
CustomLog /home/vhosts/apachelog/phpmyadmin-access.log combined
|
||||||
|
</VirtualHost>
|
@ -12,6 +12,6 @@
|
|||||||
# It is also possible to configure the loglevel for particular
|
# It is also possible to configure the loglevel for particular
|
||||||
# modules, e.g.
|
# modules, e.g.
|
||||||
LogLevel error
|
LogLevel error
|
||||||
ErrorLog ${APACHE_LOG_DIR}/test-error.log
|
ErrorLog /home/vhosts/apachelog/test-error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/test-access.log combined
|
CustomLog /home/vhosts/apachelog/test-access.log combined
|
||||||
</VirtualHost>
|
</VirtualHost>
|
Loading…
Reference in New Issue
Block a user