File tree 4 files changed +6
-5
lines changed
php56-fpm-centos68-withext
php71-fpm-centos68-phalcon-withext
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ make install
175
175
176
176
> 注:php5.6只能使用2.5及以下版本xdebug。
177
177
178
- 一般可以在pecl.php.net找到源码。例如:http://pecl.php.net/package/xdebug, 编译方法差不多:
178
+ 一般可以在pecl.php.net找到源码。例如:http://pecl.php.net/package/xdebug 。 编译方法差不多:
179
179
``` bash
180
180
wget http://pecl.php.net/get/xdebug-2.5.5.tgz \
181
181
&& tar xzf xdebug-2.5.5.tgz && cd xdebug-2.5.5/ \
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ make install
155
155
156
156
> 注:php5.6只能使用2.5及以下版本xdebug。
157
157
158
- 一般可以在pecl.php.net找到源码。例如:http://pecl.php.net/package/xdebug, 编译方法差不多:
158
+ 一般可以在pecl.php.net找到源码。例如:http://pecl.php.net/package/xdebug 。 编译方法差不多:
159
159
``` bash
160
160
wget http://pecl.php.net/get/xdebug-2.5.5.tgz \
161
161
&& tar xzf xdebug-2.5.5.tgz && cd xdebug-2.5.5/ \
Original file line number Diff line number Diff line change @@ -157,7 +157,8 @@ docker load --input yphp.tar
157
157
158
158
导出的镜像可以压缩以节约空间。
159
159
160
- 6、增加PHP扩展
160
+ 6、增加PHP扩展
161
+
161
162
有下面几种方法,只要编译出了.so文件就简单了。以演示xdebug为例:
162
163
163
164
1 ) 如果已经编译好了.so文件,直接复制到挂载目录(例如` /work ` )。使用` docker exec -it 容器ID /bin/bash ` 进入容器,通过` php-config ` 可以看到扩展所在目录,复制到该目录,修改php.ini,追加` zend_extension=xdebug.so ` ,重启php-fpm即可。
176
177
make install
177
178
```
178
179
179
- 一般可以在pecl.php.net找到源码。例如:http://pecl.php.net/package/xdebug, 编译方法差不多:
180
+ 一般可以在pecl.php.net找到源码。例如:http://pecl.php.net/package/xdebug 。 编译方法差不多:
180
181
``` bash
181
182
wget http://pecl.php.net/get/xdebug-2.5.5.tgz \
182
183
&& tar xzf xdebug-2.5.5.tgz && cd xdebug-2.5.5/ \
Original file line number Diff line number Diff line change 145
145
make install
146
146
```
147
147
148
- 一般可以在pecl.php.net找到源码。例如:http://pecl.php.net/package/xdebug, 编译方法差不多:
148
+ 一般可以在pecl.php.net找到源码。例如:http://pecl.php.net/package/xdebug 。 编译方法差不多:
149
149
``` bash
150
150
wget http://pecl.php.net/get/xdebug-2.5.5.tgz \
151
151
&& tar xzf xdebug-2.5.5.tgz && cd xdebug-2.5.5/ \
You can’t perform that action at this time.
0 commit comments