Skip to content

Latest commit

 

History

History
151 lines (124 loc) · 4.81 KB

Installation.md

File metadata and controls

151 lines (124 loc) · 4.81 KB

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

session.cache_limiter = nocache

session.auto_start = 0

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

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

(copy logo via scp)

http://safran//fr/login

Personnalisations

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;