diff --git a/dockerfiles/moodlehost-72/Dockerfile b/dockerfiles/moodlehost-72/Dockerfile index 27d5c1a..b1bf7b8 100644 --- a/dockerfiles/moodlehost-72/Dockerfile +++ b/dockerfiles/moodlehost-72/Dockerfile @@ -16,6 +16,9 @@ RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/php.ini && \ echo "xdebug.remote_port=9000" >> /usr/local/etc/php/php.ini && \ echo "xdebug.remote_host=172.17.0.1" >> /usr/local/etc/php/php.ini +RUN pecl update-channels && yes "" | pecl install -f channel://pecl.php.net/mcrypt-1.0.1 +RUN echo "extension=mcrypt.so" >> /usr/local/etc/php/php.ini +RUN sed -i 's/128M/1G/g' /usr/local/etc/php/php.ini #RUN ls /etc/init.d/apache2 RUN service apache2 start & diff --git a/dockerfiles/moodlehost-73/Dockerfile b/dockerfiles/moodlehost-73/Dockerfile index 2e2d54e..b16a3b2 100644 --- a/dockerfiles/moodlehost-73/Dockerfile +++ b/dockerfiles/moodlehost-73/Dockerfile @@ -16,7 +16,10 @@ RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/php.ini && \ echo "xdebug.remote_port=9000" >> /usr/local/etc/php/php.ini && \ echo "xdebug.remote_host=172.17.0.1" >> /usr/local/etc/php/php.ini -#RUN ls /etc/init.d/apache2 +RUN yes "" | apt install mcrypt +RUN pecl update-channels && yes "" | pecl install -f channel://pecl.php.net/mcrypt-1.0.1 +RUN echo "extension=mcrypt.so" >> /usr/local/etc/php/php.ini +RUN sed -i 's/128M/1G/g' /usr/local/etc/php/php.ini RUN service apache2 start & diff --git a/moodlehost b/moodlehost index 21284a4..b8ebdcf 100755 --- a/moodlehost +++ b/moodlehost @@ -229,7 +229,10 @@ then qmulits/moodlehost:${php} fi fi - + docker exec -it $dockername bash -c "sed -i 's/time = 30/time = 3000/g' /usr/local/etc/php/php.ini" + docker exec -it $dockername bash -c "echo 'ServerName moodle' >> /etc/apache2/apache2.conf" + docker exec -it $dockername bash -c 'rm -f /var/log/apache2/*' + docker exec -it $dockername apachectl graceful echo "==> $dockername with PHP version $php (re-)started on port $port using ${webroot} as web root" fi diff --git a/moodlehost.conf b/moodlehost.conf index e64f658..2032d68 100644 --- a/moodlehost.conf +++ b/moodlehost.conf @@ -4,7 +4,8 @@ export db_host=172.17.0.4 # if you want to map existing an existing moodlehost/filedir directory into moodlehost uncomment and edit the following line -#export filedir=/var/www/moodledata/filedir +# export filedir=/var/www/moodledata/filedir +export filedir=/mnt/USB4TB/moodledata/filedir # the IP port we are broadcasting on export port=80