|
@@ -61,6 +61,8 @@ RUN git clone https://git-crysp.uwaterloo.ca/miti/Apache_PHP_extension.git && \
|
|
WORKDIR /root/graphene/LibOS/shim/test/apps/apache
|
|
WORKDIR /root/graphene/LibOS/shim/test/apps/apache
|
|
#Modifying the Makefile to generate the php module.
|
|
#Modifying the Makefile to generate the php module.
|
|
RUN sed -i s/'LISTEN_HOST ?= 127.0.0.1'/'LISTEN_HOST ?= 0.0.0.0'/g Makefile
|
|
RUN sed -i s/'LISTEN_HOST ?= 127.0.0.1'/'LISTEN_HOST ?= 0.0.0.0'/g Makefile
|
|
|
|
+RUN sed -i s/'LISTEN_PORT ?= 8001'/'LISTEN_PORT ?= 80'/g Makefile
|
|
|
|
+
|
|
RUN sed -i 's:testdata ssldata:ssldata $(INSTALL_DIR)/modules/libphp7.so:' Makefile
|
|
RUN sed -i 's:testdata ssldata:ssldata $(INSTALL_DIR)/modules/libphp7.so:' Makefile
|
|
RUN sed -i s/"'-'"/"'-' | tr '+' 'p'"/g Makefile #Fix for stdc++ to be named as a key sgx.trusted_files.stdcpp in the autogenerated manifest.
|
|
RUN sed -i s/"'-'"/"'-' | tr '+' 'p'"/g Makefile #Fix for stdc++ to be named as a key sgx.trusted_files.stdcpp in the autogenerated manifest.
|
|
#Copy the PHP 7 archive (PHPCPP requires at least version 7)
|
|
#Copy the PHP 7 archive (PHPCPP requires at least version 7)
|
|
@@ -87,6 +89,7 @@ RUN echo "extension_dir=/root/graphene/LibOS/shim/test/apps/apache/install/modul
|
|
RUN cp /root/source/Apache_PHP_extension/*.php install/htdocs
|
|
RUN cp /root/source/Apache_PHP_extension/*.php install/htdocs
|
|
#Fix the configuration file for Apache
|
|
#Fix the configuration file for Apache
|
|
RUN printf '\nAcceptFilter http none\n<IfModule mime_module>\n AddType application/x-httpd-php .php\n</IfModule>\n' >> install/conf/httpd.conf
|
|
RUN printf '\nAcceptFilter http none\n<IfModule mime_module>\n AddType application/x-httpd-php .php\n</IfModule>\n' >> install/conf/httpd.conf
|
|
|
|
+RUN sed -i 's/DirectoryIndex.*/DirectoryIndex index.php index.html/g' install/conf/httpd.conf
|
|
|
|
|
|
WORKDIR /root
|
|
WORKDIR /root
|
|
COPY deploy_enclaves.sh ./
|
|
COPY deploy_enclaves.sh ./
|