最近安装wamp,出这样的问题:
E:\WebServer\Apache2\bin>apache -k restart
Syntax error on line 174 of E:/WebServer/Apache2/conf/httpd.conf:
Cannot load E:/WebServer/php-4.4.4/sapi/php4apache2.dll into server: \xd5\xd2\xb
2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3
查阅php目录的install.txt,注意到:
php4ts.dll (php5ts.dll) file to be available to them. You have to make
sure that this file can be found by your PHP installation. The search
order for this DLL is as follows:
* The same directory from where php.exe is called, or in case you
use a SAPI module, the web server's directory (e.g. C:\Program
Files\Apache Group\Apache2\bin).
* Any directory in your Windows PATH environment variable.
To make php4ts.dll / php5ts.dll available you have three options: copy
the file to the Windows system directory, copy the file to the web
server's directory, or add your PHP directory, C:\php to the PATH. For
better maintenance, we advise you to follow the last option, add
C:\php to the PATH, because it will be simpler to upgrade PHP in the
future. Read more about how to add your PHP directory to PATH in the
corresponding FAQ entry.
但实际上,在系统属性设定php路径还是不能解决问题。直接拷到“
E:\WebServer\Apache2\bin”,才能正确重新启动载入PHP模块的Apache。
没有评论:
发表评论