Results 1 to 2 of 2

Thread: Docker Container: PHP - MySQL - Apache

Threaded View

  1. #2

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,370

    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.

    1. Start the Docker container by running build/compose (see post #1)
    2. Edit the apache2.conf by running:
      Code:
      docker exec -it php_app bash
      vim /etc/apache2/apache2.conf
    3. Scroll to the bottom of the file using the keyboard
    4. Hit the insert key
    5. Paste the following at the end of the file:
      Code:
      EnableSendfile Off
      FileETag None
    6. Save the file by hitting escape followed by shift + Z + Z
    7. 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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width