Skip to content

This project sets up a Docker environment with Apache and PHP 8.2 for developing and testing PHP code. Access the project at http://127.0.0.1:80/.

Notifications You must be signed in to change notification settings

Kirri777/Docker-PHP-Apache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker + Apache + Php 8.2


Links

http://127.0.0.1:80/ - Page (APACHE_80 in .env config)

http://127.0.0.1:80/phpinfo.php - Phpinfo


Installation

  1. Download the folder.

  2. Create the file ./.docker/.env by copying ./.docker/.env.example and updating the COMPOSE_PROJECT_NAME and port variables if using multiple dockers.

  3. Navigate to the ./docker folder and run docker-compose up -d --build to start the containers.

  4. To change apache root path /var/www to /var/www/public, edit the ./.docker/php/000-default.conf file and update the DocumentRoot.

  5. Now you can write PHP code in the ./app/www/public folder.

About

This project sets up a Docker environment with Apache and PHP 8.2 for developing and testing PHP code. Access the project at http://127.0.0.1:80/.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published