linux下为已经编译好的php环境添加新的扩展
来源:互联网 发布:瑞文戴尔之剑数据库 编辑:程序博客网 时间:2024/04/28 09:38
我在安装magento的时候遇到了系统需要的扩展没有安装
1、mcrypt
2、pdo_mysql
3、curl
.....
其实,基本上大部分扩展 在php的源码安装包里面都是有的(在ext/里面的).
添加扩展的基本步骤:
1、进入到安装包文件夹你要添加的扩展ext/../里面.比如要添加mcrypt扩展,就进入ext/mcrypt里面。example:[root@localhost ~]# cd /usr/local/src/php-5-2-13/mcrypt/
2、调用你已经编译好的php里面的phpize.example:[root@localhost mcrypt]# /usr/local/php/bin/phpize
3、然后configure. example:[root@localhost mcrypt]# ./configure --with-php-config=/usr/local/php/bin/php-config
4、make ,make install
5、修改php.ini
加入extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/扩展名
example:extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/mcrypt.so
6、重启apache (apache/bin/apachectl -k restart)
大功告成!
注:pdo_mysql扩展安装的配置参数
./configure –with-php-config=/usr/local/php5/bin/php-config –with-pdo-mysql=/usr/local/mysql
- linux下为已经编译好的php环境添加新的扩展
- linux下为已经编译好的php环境添加mysql扩展
- PHP之——CentOS linux下为已经编译好的php环境添加mysqli扩展
- CentOS 下为已经编译好的php环境添加mysqli扩展
- Linux下为PHP添加新扩展库的方法
- linux下为已经存在的php安装mbstring扩展
- linux上编译好的php添加memcache扩展
- linux下为php添加curl扩展的方法
- linux下为php添加curl扩展的方法
- linux下为php添加curl扩展的方法
- Linux下为PHP添加扩展库的方法
- linux环境编译安装php的扩展
- Linux下php添加新扩展
- Linux下php添加新扩展
- php 添加新的扩展
- linux下添加php的mssql扩展
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- linux下为php添加模块扩展
- BAT命令大全
- 面向对象设计中的一些零碎
- 在内核模式下创建和终止线程
- 人生过去式
- new/delete 和 malloc/free 的区别
- linux下为已经编译好的php环境添加新的扩展
- ORA-12154: TNS:could not resolve the connect identifier specified错误解决方案一
- 拖动控件
- 一种线程消息驱动及RTTI分发操作
- 7个hu不变矩c++程序小试
- 实战DeviceIoControl 之一:通过API访问设备驱动程序
- AS3:判断图片的某个位置是否透明?
- spring框架下获取Bean的两种常用方法
- loadrunner性能计数器分析