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

Problem launching container with kitematic #15

Open
mokadev opened this issue Jul 13, 2016 · 3 comments
Open

Problem launching container with kitematic #15

mokadev opened this issue Jul 13, 2016 · 3 comments

Comments

@mokadev
Copy link

mokadev commented Jul 13, 2016

Hi

When i launch the container with kitematic i got this error:

AH00526: Syntax error on line 38 of /etc/apache2/apache2.conf:
DocumentRoot must be a directory

Do i have to pass some environments variable?

@real34
Copy link
Contributor

real34 commented Jul 14, 2016

Most of our images are aimed at being used as base images or with a volume containing the source code.

You might have forgotten to mount your source code as a volume in the container (hence the error of Apache not finding the document root to serve).

@real34
Copy link
Contributor

real34 commented Jul 18, 2016

@mokadev: Here is an example of volume mounted in one of our project using the image occitech/magento:php7.0.0-apache

We are mounting the current directory in /var/www (.:/var/www), where the current directory contains a htdocs/ subdirectory with the Magento root. See

RUN sed -i -e 's/\/var\/www\/html/\/var\/www\/htdocs/' /etc/apache2/apache2.conf
for further information.

Does it solve your problem?

@mokadev
Copy link
Author

mokadev commented Jul 18, 2016

@real34 Sorry the problem is with magento2

you are exposing the /magento volume so i can choose the folder on the Mac. The problem is that the document root configured in /etc/apache2/apache2.conf of php:7.0.7-apache is not /magento.

Maybe you have just to expose the /var/www directory as well...

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