http://127.0.0.1:80/ - Page (APACHE_80 in .env config)
http://127.0.0.1:80/phpinfo.php - Phpinfo
-
Download the folder.
-
Create the file
./.docker/.env
by copying./.docker/.env.example
and updating theCOMPOSE_PROJECT_NAME
andport variables
if using multiple dockers. -
Navigate to the
./docker
folder and rundocker-compose up -d --build
to start the containers. -
To change apache root path
/var/www
to/var/www/public
, edit the./.docker/php/000-default.conf
file and update theDocumentRoot
. -
Now you can write PHP code in the
./app/www/public
folder.