|
-
Jan 19th, 2025, 12:00 AM
#2
Re: Docker Container: PHP - MySQL - Apache
This tid bit of information is useful in development.
You can set up the Docker container to recognize changes in your application directory by using volume mounts in your docker-compose.yml.
- Start the Docker container by running build/compose (see post #1)
- Edit the apache2.conf by running:
Code:
docker exec -it php_app bash
vim /etc/apache2/apache2.conf
- Scroll to the bottom of the file using the keyboard
- Hit the insert key
- Paste the following at the end of the file:
Code:
EnableSendfile Off
FileETag None
- Save the file by hitting escape followed by shift + Z + Z
- Restart the Docker container by running:
Code:
docker-compose down --remove-orphans && docker-compose build --no-cache && docker-compose up -d
Last edited by dday9; Jan 19th, 2025 at 03:33 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|