准备的软件
下载地址:
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