File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,34 @@ Edit `nginx.conf` and load the required modules at the top:
8888load_module modules/ndk_http_module.so;
8989load_module modules/ngx_http_php_module.so;
9090
91+ ### Ubuntu
92+ ``` sh
93+ apt-get update -yqq && apt-get install -yqq software-properties-common
94+ LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
95+ apt-get update -yqq
96+ apt-get install -yqq wget git unzip libxml2-dev cmake make systemtap-sdt-dev \
97+ zlib1g-dev libpcre3-dev libargon2-0-dev libsodium-dev \
98+ php7.4-cli php7.4-dev libphp7.4-embed php7.4-mysql
99+
100+ git clone https://github.com/rryqszq4/ngx_php7.git
101+
102+ wget ' http://nginx.org/download/nginx-1.18.0.tar.gz'
103+ tar -zxvf nginx-1.18.0.tar.gz
104+ cd nginx-1.18.0
105+
106+ export PHP_LIB=/usr/lib
107+
108+ ./configure --user=www --group=www \
109+ --prefix=/path/to/nginx \
110+ --with-ld-opt=" -Wl,-rpath,$PHP_LIB " \
111+ --add-module=/path/to/ngx_php7/third_party/ngx_devel_kit \
112+ --add-module=/path/to/ngx_php7
113+ $ make && make install
114+ ```
115+
116+ ### Mac osx
117+ [ https://github.com/rryqszq4/ngx_php7/blob/master/docs/zh-cn/osx_install.md ] ( https://github.com/rryqszq4/ngx_php7/blob/master/docs/zh-cn/osx_install.md )
118+
91119### Docker
92120
93121``` sh
You can’t perform that action at this time.
0 commit comments