原来装的是PHP5.3.8版本的,
现在由于项目需要,装了PHP5.2.13版本,
php.ini中extension_dir设置了,mysql的extension也打开了;
apache下的httpd.conf也设置了,
运行phpinfo正常,但是运行ecshop等程序时页面一片空白,看了apache的log,有:
httpd.exe: Could not reliably determine the server's fully qualified domain 
name, using 192.168.1.101 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain 
name, using 192.168.1.101 for ServerName
PHP Warning:  PHP Startup: Unable to load dynamic library 'D:/wamp/PHP52/ext/
php_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\
xe9\xa1\xa3\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'D:/wamp/PHP52/ext/
php_mysqli.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf
\xe9\xa1\xa3\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'D:/wamp/PHP52/ext/
php_pdo_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\
xbf\xe9\xa1\xa3\r\n in Unknown on line 0
好像显示的是没有找到mysql,可是配置文件里都已经设置了啊;
把apache里的httpd.conf改回指向原来的PHP5.3.8,就一切正常了,这是怎么回事啊
PHP

解决方案 »

  1.   

    \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3
    找不到指定的模块。也就是说 PHP5.2.13 的安装目录不在操作系统的搜索路径中
    准绿色解决方法:把php安装路径填加到操作系统环境变量 PATH 中
    绿色解决方法:httpd.conf 中加入 LoadFile "php安装路径/php5ts.dll"不知道为什么要降低版本,须知 php5.3.21 之前的所有版本都存在严重的安全漏洞
    而php5.4 至少要比 php5.3 快 30%