標籤:
準備的軟體
:
1 mysql :http://mysql.com/downloads/mysql/
2 apache httpd-2.2.19-win64.rar http://www.blackdot.be/?inc=apache/binaries
3 php-5.3.6-Win32-VC9-x64.zip http://u.115.com/file/bhbzi39y 來源是csdn,但是csdn下載 也不是原創,來源是http://www.anindya.com/
4 eAccelerator-0.9.6.1_php-5.3.6-Win32-VC9-x64.zip http://u.115.com/file/aq2zk9s3
5 xdebug http://xdebug.org/download.php
[可選]
6 jdk
7 netbeans
安裝
1 安裝 mysql
2 解壓縮php d:\php
3 D:\php\ext\eAccelerator.dll
4 D:\php\ext\php_xdebug-2.1.1-5.3-vc9-x86_64.dll
5 解壓縮,apache D:\Program Files\httpd-2.2-x64
配置
1 php
php.ini-development 拷貝,重新命名-> php.ini
php.ini
809 extension_dir = "d:\php\ext"
947 - 988 酌情開啟, gd2, mysql , sqlite, pdo mysql, pgsql 等一般都是開啟的
997 date.timezone = "Asia/Shanghai"
989 extension=eAccelerator.dll
990 extension=php_xdebug-2.1.1-5.3-vc9-x86_64.dll
下面內容複寫到php.ini最後
[eAccelerator]
eaccelerator.shm_size="32" //預設為16M,如果只是做一般編程測試環境, 32M就足夠了
eAccelerator.cache_dir="d:\php\eAcceleratorTemp" //需要手動建立, 確保許可權為可讀寫,並且以後不要動這個目錄
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
[xdebug]
zend_extension="d:\php\ext\php_xdebug-2.1.1-5.3-vc9-x86_64.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
2 apache httpd
D:\Program Files\httpd-2.2-x64\conf\httpd.conf
119 LoadModule rewrite_module modules/mod_rewrite.so
179 DocumentRoot "D:\Program Files\httpd-2.2-x64\htdocs"
206 <Directory "D:\Program Files\httpd-2.2-x64\htdocs">
342 <Directory "D:\Program Files\httpd-2.2-x64\cgi-bin">
129 - 131
LoadModule php5_module D:/php/php5apache2_2.dll
PHPIniDir "d:/php"
AddType application/x-httpd-php .php
244 DirectoryIndex index.html index.htm index.php
安裝httpd 服務D:\Program Files\httpd-2.2-x64\bin\httpd -k install
win7 64 搭建 64 位元 apache httpd php mysql