su
apt-get install net-tools
apt-get install sudo adduser admin-dpo sudo
sudo apt install apache2
sudo apt install ca-certificates apt-transport-https wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list sudo apt update sudo apt full-upgrade sudo apt install php7.2 sudo apt install php7.2-cli php7.2-common php7.2-curl php7.2-mbstring php7.2-mysql php7.2-xml php7.2-fpm php7.2-gd php7.2-soap php7.2-ldap php7.2-memcached php7.2-json libapache2-mod-php7.2 php7.2-zip
sudo apt install curl curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs nodejs -v npm --version
cd /tmp wget http://repo.mysql.com/mysql-apt-config_0.8.10-1_all.deb sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb sudo apt update sudo apt full-upgrade sudo apt install mysql-server
mysql -u root -p
cd /tmp sudo apt-get install git unzip curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer composer
cd /var/www/html nano info.php
nano /etc/php/7.2/apache2/php.ini
safe_mode = Off
register_globals = Off
https://www.developpez.net/forums/d1784352/php/outils/probleme-sessions-php-j-ai-installe-php-7-2-0-a/
magic_quotes_gpc = Off
memory_limit = 3000M
upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 120
date.timezone = "Europe/Paris"
/etc/init.d/apache2 restart
php -m sudo apt-cache search php7.2-*
sudo a2enmod rewrite sudo a2enmod headers sudo a2enmod deflate sudo a2enmod expires service apache2 restart
https://support.plesk.com/hc/en-us/articles/213414749-How-to-set-the-value-of-max-allowed-packet-or-wait-timeout-for-MySQL-on-a-Plesk-server-
more /etc/mysql/my.cnf nano /etc/mysql/conf.d/mysql.cnf max_allowed_packet=512M
systemctl restart mysql systemctl status mysql
mysql -u root -p CREATE DATABASE dpo; exit
cd / git clone https://github.com/Safran/RoPA.git mysql -u root -p dpo < /RoPA/database.sql
cd /etc/apache2/sites-available cp 000-default.conf dpo.conf
a2dissite 000-default.conf a2ensite dpo systemctl reload apache2
cd /RoPA cp .env.example .env nano .env APP_URL=http://safran DB_DATABASE=dpo DB_USERNAME=root DB_PASSWORD=xxxxxxxxxx
composer install npm install
npm run production php artisan RoPA:install
cd /RoPA sudo chown www-data:www-data -R * /etc/init.d/apache2 restart
sudo usermod -a -G www-data admin-dpo cd /RoPA/public sudo chmod g+w images cd /RoPA/public/images sudo chmod g+w general sudo chmod g+w homepage cd /RoPA/resources/assets/img sudo chmod g+w general
mysql -u root -p dpo
UPDATE companies
SET name
= "Ma compagnie" WHERE id
=1;
UPDATE users
SET first_name
="Prenom-DPO", last_name
="Nom-DPO", username
="Prenom-DPO.Nom-DPO", email
="[email protected]" WHERE id
=2;