; Directory in which the loadable extensions (modules) reside. extension_dir = F:\PHP\extensions (有些是EXT文件夹。。改下就好)
相关官方技术资料:
Edit your php.ini file:
You will need to change the ''''extension_dir'''' setting to point to your php-install-dir, or where you have placed your ''''php_*.dll'''' files. ex: c:\php
If you are using OmniHTTPd, do not follow the next step. Set the ''''doc_root'''' to point to your webservers document_root. ex: c:\apache\htdocs or c:\webroot
Choose which extensions you would like to load when PHP starts, noting that several extensions are already built into the Windows release, see the section about Windows extensions for details of the built-in extensions. You can uncomment the: ''''extension=php_*.dll'''' lines in php.ini to load these extensions.
Note that on a new installation it is advisable to first get PHP working and tested without any extensions before enabling them in php.ini.
On PWS and IIS, you can set the browscap.ini to point to: ''''c:\windows\system\inetsrv\browscap.ini'''' on Windows 9x/Me and ''''c:\winnt\system32\inetsrv\browscap.ini'''' on NT/2000/XP Server.
More information on the capabilities of browscap can be found here:
www.php.net/manual/en/function.get-browser.php
Note that the mibs directory supplied with the Windows distribution contains support files for SNMP. This directory should be moved to DRIVE:\usr\mibs (DRIVE being the drive where PHP is installed.)
; cgi.force_redirect is necessary to provide security running PHP as a CGI under ; most web servers. Left undefined, PHP turns this on by default. You can ; turn it off here AT YOUR OWN RISK ; **You CAN safely turn this off for IIS, in fact, you MUST.** cgi.force_redirect = 0
切记如上修改的地方.否则PHP 5.0是无法运行的.会有如下提示.
Security Alert! The PHP CGI cannot be accessed directly.
相关官方技术资料:
!NOTE!: Since 4.1.2, the php.ini setting cgi.force_redirect defaults to ''''1'''' which effectively prevents the cgi from working within IIS. You need to set up at least a minimal php.ini file with the following directive:
cgi.force_redirect = 0
If it doesn''''t work immidiately, make sure you have the php.ini file in the right place (%SYSTEMROOT%\php.ini).
请注意.如果不启动 PHP 对 MYSQL 模块支持.将无法使 PHPMYADMIN 正常工作.将提示:
cannot load MySQL extension, please check PHP Configuration 无法装入 MySQL 扩展,请检查 PHP 的配置。
相关官方技术资料:
To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.