|
@@ -21,14 +21,19 @@ RUN curl -L -o /app/code/wp-mail-smtp.zip https://downloads.wordpress.org/plugin
|
|
|
|
|
|
# configure apache
|
|
|
RUN rm /etc/apache2/sites-enabled/*
|
|
|
-RUN sed -i 's/upload_max_filesize = .*/upload_max_filesize = 8M/' /etc/php5/apache2/php.ini
|
|
|
+RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/more",' -i /etc/apache2/apache2.conf
|
|
|
+RUN a2disconf other-vhosts-access-log
|
|
|
ADD apache2-wordpress.conf /etc/apache2/sites-available/wordpress.conf
|
|
|
RUN ln -sf /etc/apache2/sites-available/wordpress.conf /etc/apache2/sites-enabled/wordpress.conf
|
|
|
+RUN echo "Listen 8000" > /etc/apache2/ports.conf
|
|
|
+
|
|
|
+# configure mod_php
|
|
|
RUN a2enmod php5
|
|
|
+RUN sed -e 's/upload_max_filesize = .*/upload_max_filesize = 8M/' \
|
|
|
+ -e 's,;session.save_path.*,session.save_path = "/run/mediawiki/sessions",' \
|
|
|
+ -i /etc/php5/apache2/php.ini
|
|
|
|
|
|
# supervisor
|
|
|
ADD supervisor-apache2.conf /etc/supervisor/conf.d/apache2.conf
|
|
|
|
|
|
-EXPOSE 80
|
|
|
-
|
|
|
CMD [ "/app/code/start.sh" ]
|