Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dockerfiles/moodlehost-72/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 &

Expand Down
5 changes: 4 additions & 1 deletion dockerfiles/moodlehost-73/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 &


5 changes: 4 additions & 1 deletion moodlehost
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion moodlehost.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down