Spaces:
Runtime error
Runtime error
Commit
·
560daf7
1
Parent(s):
50df220
php config
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
@@ -77,8 +77,12 @@ RUN apt install -y php-xml php-sqlite3
|
|
77 |
|
78 |
COPY index.php /home/user/apache2/htdocs/index.php
|
79 |
COPY test.html /home/user/apache2/htdocs/test.html
|
80 |
-
RUN sed -i 's
|
81 |
-
|
|
|
|
|
|
|
|
|
82 |
# RUN which php-cgi;
|
83 |
# RUN a2enmod php
|
84 |
RUN which php
|
|
|
77 |
|
78 |
COPY index.php /home/user/apache2/htdocs/index.php
|
79 |
COPY test.html /home/user/apache2/htdocs/test.html
|
80 |
+
#RUN sed -i 's-Listen 7860-Listen 7860\nLoadModule php_module modules/libphp.so-' /home/user/apache2/conf/httpd.conf
|
81 |
+
RUN echo "LoadModule php_module modules/libphp.so" >> /home/user/apache2/conf/httpd.conf
|
82 |
+
RUN echo "" >> /home/user/apache2/conf/httpd.conf
|
83 |
+
RUN echo "<FilesMatch \.php$>" >> /home/user/apache2/conf/httpd.conf
|
84 |
+
RUN echo "SetHandler application/x-httpd-php" >> /home/user/apache2/conf/httpd.conf
|
85 |
+
RUN echo "</FilesMatch>" >> /home/user/apache2/conf/httpd.conf
|
86 |
# RUN which php-cgi;
|
87 |
# RUN a2enmod php
|
88 |
RUN which php
|