Linux下已编译PHP增加扩展so的方法,关键phpize 和config.m4
LINUX下PHP已经编译,如何新增so扩展。 用到的一个sh:/usr/local/php5/bin/phpize 原理:用phpize在压缩包里面找到对应的对应的扩展文件夹,在里面执行phpize,具体步骤: PHP安装路径:/usr/local/php5 PHP源码路径:/home/default7/lamp/php-5.5.13 扩展
LINUX下PHP已经编译,如何新增so扩展。
用到的一个sh:/usr/local/php5/bin/phpize
原理:用phpize在压缩包里面找到对应的对应的扩展文件夹,在里面执行phpize,具体步骤:
PHP安装路径:/usr/local/php5
PHP源码路径:/home/default7/lamp/php-5.5.13
扩展假设zlib:/home/default7/lamp/php-5.5.13/ext/zlib
执行代码:
ln -s /usr/local/php5/bin/phpize /usr/bin/phpize cd /home/default7/lamp/php-5.5.13/ext/zlib mv config0.m4 config.m4 phpize //这里提示报错,安装bz2,bz2-devel yum install bz2 bz2-devel ./configure --with-php-config=/usr/local/php5/bin/php-config make make test make install vim /etc/php.ini ##加入extension=bz2.so
(by default7#zbphp.com)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
