dever 6 years ago
parent
commit
6a80cce4fb

+ 2 - 2
container/conf/web/nginx/conf.d/site.conf

@@ -65,8 +65,8 @@ server {
         # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini (No settings!)
 
         # With php-cgi alone:
-        #fastcgi_pass web-php7:9000;
-        fastcgi_pass web-php5:9000;
+        fastcgi_pass web-php7:9000;
+        #fastcgi_pass web-php5:9000;
         # With php-fpm:
         #fastcgi_pass unix:/var/run/php7-fpm.sock;
         fastcgi_index index.php;

+ 1 - 0
src/docker/build/dev/php/v7/Dockerfile

@@ -10,6 +10,7 @@ RUN apk add --no-cache --update curl php7-fpm php7-pear php7-mysqli php7-session
 
 COPY php.sh /entrypoint/php.sh
 COPY install.sh /install.sh
+RUN ./install.sh swoole-4.3.0 swoole libevent-dev,libaio-dev,libmnl-dev
 
 VOLUME ["/www", "/etc/php7"]