Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error on line 44 of /etc/apache2/apache2.conf: #1

Closed
hasMobi opened this issue Mar 15, 2016 · 5 comments
Closed

Syntax error on line 44 of /etc/apache2/apache2.conf: #1

hasMobi opened this issue Mar 15, 2016 · 5 comments

Comments

@hasMobi
Copy link

hasMobi commented Mar 15, 2016

I am using Windows 7 and Docker Toolbox (a Linux VM running the Docker host).

After running docker-compose up I see that 2 containers are started but the web container has died immeditely. Inspecting its logs, the only error that I see is:

2016-03-15T20:09:45.826624531Z AH00526: Syntax error on line 44 of /etc/apache2/apache2.conf:

Using Docker version 1.10.3

@mikehaertl
Copy link
Collaborator

Hmm, that's weird. The apache.conf is located in our Yii2 base repo here: https://github.com/codemix/yii2-dockerbase/blob/master/2.0/apache/apache2.conf

Line 44 configures the document root. Did you maybe change the volumes configuration in your docker-compose.yml?

@hasMobi
Copy link
Author

hasMobi commented Mar 16, 2016

No. I have not done anything besides what is described as instructions in your tutorial.

@mikehaertl
Copy link
Collaborator

Can you check if the directory exists? You can create a temporary container like this:

docker-compose run --rm web bash

Now you should have a command line inside the container. Verify if the directory exists:

ls -l /var/www/html
ls -l /var/www/html/web

@mikehaertl
Copy link
Collaborator

I've just tested on Windows and everything works. Make sure, that you've installed the project somewhere below C:\Users. Otherwhise you can't share the volume with your container. That's a restriction of docker on windows:

https://docs.docker.com/v1.8/userguide/dockervolumes/#mount-a-host-directory-as-a-data-volume

@mikehaertl
Copy link
Collaborator

@hasMobi I'm closing this as there was no further feedback and I have to assume that you did not install to C:\Users. Feel free to add another comment if it still doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants