当前位置:首页 » 编程语言 » phpconfigure

phpconfigure

发布时间: 2025-09-13 00:50:17

❶ 安装php显示configure:error:jpeglib.h not found.怎么解决

在Linux下安装PHP过程中,编译时出现configure: error: libjpeg.(a|so) not found 错误的解决办法:

检查之后发现已经安装了libjpeg

[root@localhost php-5.2.14]# yum list installed|grep libpng

libpng.x86_64 2:1.2.49-1.el6_2

或者:

[root@localhost php-5.2.14]# rpm -qa|grep libjpeg

libjpeg-turbo-1.2.1-3.el6_5.x86_64

❷ PHP 如何生成静态 页面

哦...这个哒
你用的是apache吧
看看里面有个设置文件http.conf
里面去找这条类似的
# Begin PHP Configure by PHPnow
LoadMole php5_mole "../php-5.2.6-Win32/php5apache2_2.dll"
<IfMole mod_php5.c>
PHPINIDir "../php-5.2.6-Win32/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfMole>
# End PHP Configure by PHPnow
然后把
AddType application/x-httpd-php .php
改了
AddType application/x-httpd-php .htm
....................华丽的分界线...........................

然后去把你所有后缀为php的文件改成htm
然后就可以了

这招其实是用来防黑客注入滴~~~~

❸ 编译安装php时出错configure: error: build test failed.

对于PHP在./configure的时候出现下面问题:
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/local/libxml2/
checking for xml2-config path... /usr/local/libxml2//bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
#按照提示我们查看php安装目录下的config.log文件,搜索xml2-config
[root@lamp-lnmp php-5.6.40]# vim config.log
#发现下面内容:
configure:23104: checking for xml2-config path
configure:23118: result: /usr/local/libxml2//bin/xml2-config
configure:23262: checking whether libxml build works
configure:23289: cc -o conftest -g -O2 -fvisibility=hidden -pthread -D_REENTRANT -Wl,-rpath,/usr/local/libxml2/lib -L/usr/local/libxml2/lib conftest.c
-lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl >&5
configure:23289: $? = 0
configure:23289: ./conftest
./conftest: /lib64/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/local/libxml2/lib/libxml2.so.2)
configure:23289: $? = 1
configure: program exited with status 1
configure: failed program was:
#我们这里查看一下这个/lib64/libz.so.1的文件,发现链接到一个旧的libz文件中,这里将/lib64/libz.so.1软连接到新文件/usr/local/lib/libz.so.1.2.11中进行下面设置。
[root@lamp-lnmp ~]# ln -sf /usr/local/lib/libz.so.1.2.11 /lib64/libz.so.1
[root@lamp-lnmp ~]# ls -l /lib64/libz.so.1
lrwxrwxrwx 1 root root 29 Feb 2 11:13 /lib64/libz.so.1 -> /usr/local/lib/libz.so.1.2.11

❹ 问题是:在PHP中,为什么使用mb_strlen()函数报错

用phpinfo()查看一下mb扩展是否已经正确安装,木有的话,检查你的php.ini文件里的mb的dll或者是Unix下安装php的configure的时候是否添加相关配置。一般Unix下默认是添加mb函数扩展的。

❺ 编译安装php时出错configure: error: build test failed.

你先确定一下你./configure时有没有出错提示?并不是说./configure完就说行了,因为它的参数因环境不同而异!如果执行完没错就应该sudo
make是没什么问题,就算是有也应该是依懒包看出错提示,你的是GD库,你编译gd库时参数如何?编译安装正常吗?
情况好多,我用UBUNTU编译时也是拆腾好久才编好,也好不经过这样拆腾也不知道编译时的要点
记得./configure
--help看一下帮助
所以我认为先重编一下你的GD库,还有你编译PHP时注意参数的正确如
--with-gd=/opt/gd
具体实际安装路径

热点内容
java返回this 发布:2025-10-20 08:28:16 浏览:582
制作脚本网站 发布:2025-10-20 08:17:34 浏览:876
python中的init方法 发布:2025-10-20 08:17:33 浏览:571
图案密码什么意思 发布:2025-10-20 08:16:56 浏览:757
怎么清理微信视频缓存 发布:2025-10-20 08:12:37 浏览:673
c语言编译器怎么看执行过程 发布:2025-10-20 08:00:32 浏览:1000
邮箱如何填写发信服务器 发布:2025-10-20 07:45:27 浏览:244
shell脚本入门案例 发布:2025-10-20 07:44:45 浏览:103
怎么上传照片浏览上传 发布:2025-10-20 07:44:03 浏览:795
python股票数据获取 发布:2025-10-20 07:39:44 浏览:701