Used docker image php:8.1-apache for php and apache and mariadb:latest for DBMS
- php: for developing
- mariadb: If you restart or stop database server you'll not lose data
docker exec -it site bash
cd /usr/local/etc/php/
If php.ini
does not exist use php.ini-development
or php.ini-production
then copy that file in the same dir as php.ini
using command
cp php.ini-development php.ini
cp php.ini-production php.ini
docker restart site