This project provide a simple installation of opclroom Sites with Symfony v3.4.
git config --global user.name "FirstName SecondName"
git config --global user.email "[email protected]"
git clone https://github.com/AhmedHadjTaieb/Symfony.git
- Docker
- Docker Compose
- Create Virtual Host
sudo nano /etc/hosts
This project create a virtual environment composed by :
- Mysql 8 container
- phpmyadmin latest container
- php 7.2-apache
To start developpement environnement run this command :
Using ACL on a System that Supports setfacl
./ENV/start_dev.sh
Using ACL on a System that Supports chmod +a
*First Step:
(Add these lines in ./ENV/entrypoint.sh)
rm -rf var/cache/*
rm -rf var/logs/*
HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1)
sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
sudo chmod +a "$(whoami) allow delete,write,append,file_inherit,directory_inherit" var
*Second Step:
cd <PROJECT_PATH>./ENV/
docker-compose --project-name opclroom -f docker-compose.yml up --build -d
- PhpMyAdmin:
Utilisateur : root
Mot de passe : root
Database : opclroom