标签:
找到MySQL\bin下的MySQLInstanceConfig.exe,修改兼容性
skip-innodb 改成 #skip-innodb
default-storage-engine 改成 default-storage-engine=INNODB
数据库地址不能写localhost要用127.0.0.1
[mysqld]
skip-name-resolve #取消dns解析
skip-grant-tables#不需要密码
thread_concurrency=8#CPU合数*2
php官网下载:http://windows.php.net/download/ VC11 x64 Thread Safe(apache安全线程)(IIS用非安全线程)
解压到D盘。文件夹改名为"php"
跟目录下php.ini-production 改名 php.ini
3、打开php.ini 修改以下内容并删除前面的";"
Extension_dir = "./" 改 extension_dir = "D:\php\ext"
cgi.force_redirect = 1 改 cgi.force_redirect = 0
以下内容去“;”
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll
apache官网:http://httpd.apache.org/
点击Files for Microsoft Windows
点击ApacheHaus
下载zip和ssl
解压后打开httpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so删除"#"
找Define SRVROOT,定义apache目录路径Define SRVROOT "C:\Program Files\Apache24"
删除Listen 80
所有Require all denied前加#
DirectoryIndex index.html改成DirectoryIndex index.html index.php
最后加入
1 LoadModule php5_module "d:/php/php5apache2_4.dll" 2 PHPIniDir "D:/php" 3 AddType application/x-httpd-php .php 4 AddType application/x-httpd-php .htm 5 Listen 8080 6 Listen 8008 7 Listen 8800 8 <VirtualHost *:8080> 9 DocumentRoot "D:/weba" 10 <Directory "D:/weba"> 11 Options FollowSymLinks 12 AllowOverride ALL 13 </Directory> 14 </VirtualHost> 15 <VirtualHost *:8008> 16 DocumentRoot "D:/liuman" 17 <Directory "D:/liuman"> 18 Options FollowSymLinks 19 AllowOverride ALL 20 </Directory> 21 </VirtualHost> 22 <VirtualHost *:8800> 23 DocumentRoot "D:/wza" 24 <Directory "D:/wza"> 25 Options FollowSymLinks 26 AllowOverride ALL 27 </Directory> 28 </VirtualHost>
管理员权限cmd进入apache目录运行httpd.exe -k install -n apache
标签:
原文地址:http://www.cnblogs.com/lman/p/4727027.html