在Linux下安装PHP容易出现问题的解决方法

更新时间:2023-10-20 08:19:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

在Linux下安装PHP容易出现问题的解决方法

1.

./configure

--with-apxs2=/usr/local/apache2/bin/apxs

--with-mysql=/usr/local/mysql --enable-track-vars 时出错: checking lex output file root... ./configure: line 2418: lex: command not found

configure: error: cannot find output from lex; giving up 解决方法:

在安装盘里找到flex安装包rpm 安装 flex

2. 重新config,出现以下错误: checking libxml2 install dir... no

configure:error:xml2-config not found. Please check your libxml2 installation. 解决方法: 安装 libxml2-dev 3

Warning:

dl():

Unable to load

dynamic library

\- libmysqlclient.so.10: cannot open shared object file: No such file or directory in /usr/www//test.php on line 9 function test output 解决方法:

找到MySQL-shared-compat包

# rpm -ivh MySQL-shared-compat-4.1.7-0.i386.rpm

4 warning: Function registration failed - duplicate name - mysql_connect in /usr/www/test.php on line 9 解决方法:

把test.php中的 dl(\注释掉,重新测试 Warning:

mysql_connect():

Client

does

not

support

authentication protocol requested by server; consider upgrading MySQL client in /usr/www/inc.php on line 7 以root登录到mysql执行语句:update user set password=OLD_PASSWORD(\where user=\就行啦!

本文来源:https://www.bwwdw.com/article/08bf.html

Top