44# CentOS-6, Apache 2.2, PHP 5.3, PHP Memcached 1.0, PHP APC 3.1.
55#
66# =============================================================================
7- FROM jdeathe/centos-ssh-apache-php:centos-6-1.4.3
7+ FROM jdeathe/centos-ssh-apache-php:centos-6-1.4.4
88
99MAINTAINER James Deathe <james.deathe@gmail.com>
1010
1111# -----------------------------------------------------------------------------
1212# FastCGI support
1313# -----------------------------------------------------------------------------
1414RUN rpm --rebuilddb \
15+ && yum -y erase \
16+ php-5.3.3-46.el6_6 \
1517 && yum --setopt=tsflags=nodocs -y install \
1618 fcgi-2.4.0-12.el6 \
1719 mod_fcgid-2.3.9-1.el6 \
@@ -21,72 +23,15 @@ RUN rpm --rebuilddb \
2123 && rm -rf /var/cache/yum/* \
2224 && yum clean all
2325
24- # -----------------------------------------------------------------------------
25- # Apache mime_magic module should be disabled with FastCGI
26- # -----------------------------------------------------------------------------
27- RUN sed -i \
28- -e 's~^LoadModule mime_magic_module ~#LoadModule mime_magic_module ~g' \
29- /etc/httpd/conf/httpd.conf
30-
31- # -----------------------------------------------------------------------------
32- # Enable the pathinfo fix
33- # -----------------------------------------------------------------------------
34- RUN sed -i \
35- -e 's~^;cgi.fix_pathinfo=1$~cgi.fix_pathinfo=1~g' \
36- /etc/php.ini
37-
38- # -----------------------------------------------------------------------------
39- # Disable mod_php
40- # -----------------------------------------------------------------------------
41- RUN mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf.off \
42- && touch /etc/httpd/conf.d/php.conf \
43- && chmod 444 /etc/httpd/conf.d/php.conf
44-
45- # -----------------------------------------------------------------------------
46- # Add the PHP Wrapper script
47- # -----------------------------------------------------------------------------
48- ADD var/www/app-bin/php-wrapper /var/www/app-bin/
49- RUN chmod -R 750 /var/www/app-bin
50-
5126# -----------------------------------------------------------------------------
5227# Copy files into place
5328# -----------------------------------------------------------------------------
54- ADD etc/apache-bootstrap /etc/
55- ADD etc/services-config/httpd/apache-bootstrap.conf /etc/services-config/httpd/
5629ADD etc/services-config/httpd/conf.d/fcgid.conf /etc/services-config/httpd/conf.d/
57- RUN ln -sf /etc/services-config/httpd/apache-bootstrap.conf /etc/apache-bootstrap.conf \
58- && ln -sf /etc/services-config/httpd/conf.d/fcgid.conf /etc/httpd/conf.d/fcgid.conf \
59- && chmod +x /etc/apache-bootstrap
60-
61- # -----------------------------------------------------------------------------
62- # Set default environment variables used to identify the service container
63- # -----------------------------------------------------------------------------
64- # ENV SERVICE_UNIT_APP_GROUP app-1
65- # ENV SERVICE_UNIT_LOCAL_ID 1
66- # ENV SERVICE_UNIT_INSTANCE 1
30+ RUN ln -sf /etc/services-config/httpd/conf.d/fcgid.conf /etc/httpd/conf.d/fcgid.conf
6731
6832# -----------------------------------------------------------------------------
6933# Set default environment variables used to configure the service container
7034# -----------------------------------------------------------------------------
71- # ENV APACHE_CONTENT_ROOT /var/www/${PACKAGE_NAME}
72- # ENV APACHE_CUSTOM_LOG_FORMAT combined
73- # ENV APACHE_CUSTOM_LOG_LOCATION ${APACHE_CONTENT_ROOT}/var/log/apache_access_log
74- # ENV APACHE_ERROR_LOG_LOCATION ${APACHE_CONTENT_ROOT}/var/log/apache_error_log
75- # ENV APACHE_ERROR_LOG_LEVEL warn
76- # ENV APACHE_EXTENDED_STATUS_ENABLED false
77- # ENV APACHE_LOAD_MODULES "authz_user_module log_config_module expires_module deflate_module headers_module setenvif_module mime_module status_module dir_module alias_module"
78- # ENV APACHE_MOD_SSL_ENABLED false
79- # ENV APACHE_PUBLIC_DIRECTORY public_html
80- # ENV APACHE_RUN_GROUP app-www
81- # ENV APACHE_RUN_USER app-www
82- # ENV APACHE_SERVER_ALIAS ""
83- # ENV APACHE_SERVER_NAME app-1.local
84- # ENV APACHE_SUEXEC_USER_GROUP false
85- # ENV APACHE_SYSTEM_USER app
8635ENV HTTPD /usr/sbin/httpd.worker
87- # ENV PACKAGE_PATH ${PACKAGE_PATH}
88- # ENV PHP_OPTIONS_DATE_TIMEZONE UTC
89-
90- # EXPOSE 80 8443 443
9136
9237CMD ["/usr/bin/supervisord" , "--configuration=/etc/supervisord.conf" ]
0 commit comments