D:\wwwD:\www\logsD:\www\apache2.2D:\www\php-5.4.21httpd-2.2.25-win32-x86-openssl-0.9.8y.msiD:\www\apache2.2,其餘預設https://localhost 出現 "It works!" 表示成功php-5.4.21-Win32-VC9-x86.zipphp5apache2_2.dll,無法整合 ApacheD:\www\php-5.4.21LoadModule php5_module "D:/www/php-5.4.21/php5apache2_2.dll"
LoadFile "D:/www/php-5.4.21/php5ts.dll"
LoadFile "D:/www/php-5.4.21/ssleay32.dll"
PHPIniDir "D:/www/php-5.4.21"
AddType application/x-httpd-php .php
ErrorLog "d:\www\logs\apache_error.log"
LogLevel error
Include conf/extra/httpd-vhosts.conf
#NameVirtualHost *:80
FileETag none
DirectoryIndex index.html index.php
<Directory "E:/hx/">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerName www.jb51.net
DocumentRoot "E:\hx\www.jb51.net"
</VirtualHost>
log_errors = On
error_log = D:\www\logs\php_error.log
extension_dir = "D:\www\php-5.4.21\ext"
extension = php_mysql.dll
extension = php_curl.dll
https://windows.php.net/downloads/pecl/releases/apc/3.1.13/php_apc-3.1.13-5.4-ts-vc9-x86.ziphttps://pecl.php.net/package/memcache.dll 到 ext 目錄,php.ini 添加 extension=php_apc.dll 等注意:APC 3.1.13 在此環境下有兼容性問題(apc_cache_find 等 Notice),建議暫不啟用或改用 Zend Opcache。
重啟 Apache,建立 phpinfo.php 確認模組載入正常。