关于在linux上安装php扩展库

WBOY
Release: 2016-06-13 13:00:54
Original
884 people have browsed it

关于在linux下安装php扩展库。
以前都是在window下一键安装的环境代码上传到ftp的,现在要用到linux。
网上看了下lamp的安装教程。
都是除了要安装php mysql apache外还要安装各种php的库如gd库、jpg、xml什么的
是这样的吗
我看php的源码包里ext文件夹下已经有各种库了,我们编译php的时候会不会自动把这些库编译进去,还是说要以个个下载安装?
------解决方案--------------------

引用:
引用:linux 下可以 apt-get lamp。
如果包里面已经有了扩展,就需要修改php配置文件php.ini,去除extend前面的分号,重启apache查看phpinfo()是否引入成功。
源码包安装也是编译完php后 去掉分号就可以了?

PHP扩展库编译分为动态和静态两种,静态是在编译安装PHP的时候也编译扩展库
动态则是在以后通过 phpize来另外编译扩展库,这中方式会生成一个 .so后缀的动态链接库文件,编译完后还需要你改一下php.ini来指定链接库的位置
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!