Probleme de DNS si la machine virtuelle est connectée en mode bridge sur la 2e interface reseau.
Solution:
Soit la brancher en mode bridge sur la premiere interface reseau
Soit la brancher en mode nat sur la 2e.
Installer SSH
#sudo apt-get update && sudo apt-get install -y openssh-server
#sudo service ssh start
#sudo service ssh status
Installer Apache – Mysql – PHP
sudo apt-get update -y
sudo apt-get install apache2 -y
sudo systemctl start apache2.service
sudo apt-get install mysql-server -y
sudo /usr/bin/mysql_secure_installation.
sudo apt-get install php -y
sudo apt-get install -y php-{bcmath,bz2,intl,gd,mbstring,mcrypt,mysql,zip} && sudo apt-get install libapache2-mod-php -y
sudo systemctl enable apache2.service
sudo systemctl enable mysql.service
systemctl restart apache2.service
Installer PHP5.6
apt-get install -y software-properties-common
add-apt-repository ppa:ondrej/apache2
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install -y php5.6
apt-get install -y php5.6-{bcmath,bz2,intl,gd,mbstring,mcrypt,mysql,zip}
apt-get install libapache2-mod-php5.6 -y
a2dismod php7.0
a2enmod php5.6
service apache2 restart
Tweak Mysql
Suite a une erreur: this is incompatible with sql_mode=only_full_group_by
Il faut modifier le fichier /etc/mysql/conf.d/mysql.cnf
[mysqld]
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION