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

Setup Docker #4

Open
brasilikum opened this issue Jun 17, 2016 · 4 comments
Open

Setup Docker #4

brasilikum opened this issue Jun 17, 2016 · 4 comments

Comments

@brasilikum
Copy link

This project seems very awsome, but I am not familiar with Drupal, so stuff like "Make configuration meet the needs of Drupal" as one of 13 steps keeps me from even trying it out. Maybe an expert on Drupal could provide a Dockerfile so all others can try it out with ease?

@ghost
Copy link

ghost commented Jun 20, 2016

Hi, I am developing a docker container.

I finished building my container with all requeriments, but it gives me this error:

[Mon Jun 20 08:18:41.438233 2016] [core:error] [pid 8] [client 172.21.0.1:45260] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
172.21.0.1 - - [20/Jun/2016:08:18:41 +0000] "GET / HTTP/1.1" 500 727 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36"

is it normal?

@farhadhf
Copy link
Member

Thanks for working on the docker image! What web server are you using? Seems like a redirect loop, but it shouldn't be happening unless there's something weird going on in the webserver config and/or .htaccess.

@ghost
Copy link

ghost commented Jun 20, 2016

The FROM image of my Dockerfile is using php:5.6-apache.
I tried to follow all the steps, but couldn't patch because already applied.
I think you should resume the steps of installation because there're a lot.
I restored the database.
Hadn't change any .htaccess.
I edited the configuration for changing database connection settings.
I think there's some missing configuration on apache in general or in path, the problem is due too many redirects because maybe is looking for another vhost hostname or path. Do you remember some similar issue?

That's my apache vhost:

<VirtualHost *:80>
  DocumentRoot "/var/www/html/deskulu"
  ServerName deskulu.local.com
  <Directory "/var/www/html/deskulu">
    Options Indexes FollowSymLinks Includes
    AllowOverride All
    Require all granted
  </Directory>
</VirtualHost>

And that's my Dockerfile:

FROM php:5.6-apache
WORKDIR /
COPY php.ini-production /usr/local/etc/php/php.ini
RUN apt-get update && apt-get install -y \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libmcrypt-dev \
        libpng12-dev \
        libmemcached-dev \
        libcurl3 libcurl3-gnutls libcurl4-gnutls-dev libsqlite3-dev libsqlite3-0 libxml2 libxml2-dev \
    && docker-php-ext-install -j$(nproc) iconv mcrypt pdo_mysql curl json mysqli pdo_sqlite simplexml xml \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) gd \
    && pecl install memcached \
    && pecl install apc \
    && docker-php-ext-enable memcached pdo_mysql iconv mcrypt curl json mysqli pdo_sqlite simplexml xml \
    && a2enmod rewrite \
    && apt-get clean \
    && apt-get autoclean
COPY deskulu /var/www/html
COPY deskulu.conf /etc/apache2/sites-enabled

@farhadhf
Copy link
Member

Can you give me the output of this command?

curl -I http://deskulu.local.com

If the output shows something like

HTTP/1.0 301 Moved Permanently
Location: http://www.deskulu.local.com/

then also run curl -I on http://www.deskulu.local.com/

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