D:\www:Web 根目錄D:\www\logs:日誌目錄D:\www\apache2.2:Apache 安裝路徑D:\www\php-5.4.21:PHP 解壓路徑(需下載 VC9 x86 Thread Safe 版)LoadModule 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
NameVirtualHost *:80ServerName www.example.com DocumentRoot "E:/www/www.example.com" Options Indexes FollowSymLinks Includes AllowOverride All Order allow,deny Allow from all
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 short_open_tag = On date.timezone = "Asia/Shanghai" error_reporting = E_ALL & ~E_NOTICE
APC 3.1.13 在 PHP 5.4 下可能產生 apc_cache_find 等 Notice,建議改用 Zend Opcache 或 APCu。