The first is the download of related software: PHP, Apache and MySQL software, and VC libraries. Related software can go to my Baidu network disk download, Baidu network disk: Http://pan.baidu.com/s/1o6DYcMu
Related software directly:
Httpd-2.4.2-win32.zip:http://www.apachelounge.com/download/win32/binaries/httpd-2.4.2-win32.zip
Php-5.4.5-win32-vc9-x86.zip:http://windows.php.net/downloads/releases/php-5.4.5-win32-vc9-x86.zip
Mysql-essential-5.1.63-win32.msi:http://cdn.mysql.com/downloads/mysql-5.1/mysql-essential-5.1.63-win32.msi
Php5apache2_4.dll-php-5.4-win32.zip:http://www.apachelounge.com/download/win32/modules-2.4/php5apache2_4. Dll-php-5.4-win32.zip
Msvcr100_64_32_33lc.com.rar:http://psoft.33lc.com:801/small/msvcr100_64_32_33lc.com.rar
Discuz_x3.2_sc_utf8.zip:http://download.comsenz.com/discuzx/3.2/discuz_x3.2_sc_utf8.zip
VC11 Runtime x86/x64 version: http://www.microsoft.com/en-us/download/details.aspx?id=30679
VC10 Runtime x86 version: http://www.microsoft.com/en-us/download/details.aspx?id=5555
VC10 Runtime x64 version: http://www.microsoft.com/en-us/download/details.aspx?id=14632
VC9 Runtime x86 version: http://www.microsoft.com/en-us/download/details.aspx?id=5582
VC9 Runtime x64 version: http://www.microsoft.com/en-us/download/details.aspx?id=15336
Recommended if the 64-bit system, VC library regardless of 32 64 are downloaded and installed, so there will be no problem.
You notice the download of the Php,apache Web site, which is prompted to install the Visual C + + library.
Apache2.4.4 requires VC10 library support, Microsoft Visual C + + SP1 Redistributable Package (x64)
PHP5.6 requires VC11 library support, Visual C + + redistributable for visual Studio Update 1
Note 1: If Apache2.4.4 does not have the VC10 library installed, the following error will appear.
Error: "Cannot start this program because MSVCR100.dll is missing from the computer. Try reinstalling the program to resolve this issue. ”
So provides the VC9 VC10 vc11 64-bit installation, however, will still be prompted Msvcr100.dll because there are 32 64 bits, although there are 64 bits, but no 32 bits, so decompression msvcr100_64_32_ 33lc.com.rar, the inside x86 folder under the Msvcr100.dll into C:\WINDOWS\SysWOW64 can be.
First, install Apache
(1) Httpd-2.4.2-win32.zip decompression, put the Apache24 into the C disk, so the directory is: C:/apache:
Enter the directory to modify the httpd.conf under the Conf folder, where the changes are as follows:
Line 37th ServerRoot "C:/apache24"//apache the location of the program.
The No. 204 line of the serveradmin change does not matter;
Line NO. 213 servername The "#" in front of the number to remove;
No. 237 line DocumentRoot "C:/apache24/htdocs"//Website root directory
Line No. 238 <directory "C:/apache24/htdocs" >
Line No. 271 DirectoryIndex index.html Change to DirectoryIndex index.html index.php index.htm//Support more default pages
Line No. 354 scriptalias/cgi-bin/"c:/apache24/cgi-bin/"
Line No. 370 <directory "C:/apache24/cgi-bin" >
(2) Launch Apache.
Start---Run, enter cmd, and open a command prompt. Enter the following commands separately (return per line)
CD Apache24\bin
httpd
If the httpd.conf is configured correctly, there is no prompt after entering httpd carriage return. Do not close the command window (Close command window is off Apache), local browser access. The advent of "It works" means that Apache is properly installed.
Installation reference documentation for Apache:
Http://www.cnblogs.com/not-code/archive/2013/12/25/3490972.html
http://pjdong1990.iteye.com/blog/1602915
http://blog.csdn.net/zwfcan/article/details/8173838/
http://blog.csdn.net/wendi_0506/article/details/44163971
Second, the installation of PHP and integration with Apache
1. Download, unzip
1) Downloaded from the above website, unzip it to the designated directory, here I extracted it to the C:\php found php.ini-development file, copy it, and renamed to PHP.ini. The following work is mainly about PHP configuration files php.ini and Apache configuration file httpd.conf to expand.
2) also downloaded, extracted into the PHP 5.4.5 folder, copied to the PHP decompression path c:\php. This is the PHP to the Apache processing of the dynamic link library, without this file will not play anymore.
2. Configure PHP.ini
1) Find "; Extension_dir = "ext", change to: Extension_dir = "C:\php\ext"
doc_root= "C:\Apache24\htdocs" , pointing to the front page position of the previous Apache settings;
Register_globals=off change to Register_globals=on to make the pass global variable valid;
Remove the following configuration comments to support MySQL
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_mysql.dll
Extension=php_pdo_mysql.dll
Extension=php_pdo_odbc.dll
Apache Configuration httpd.conf
Add under #loadmodule vhost_alias_module modules/mod_vhost_alias.so
LoadModule php5_module "C:/php/php5apache2_4.dll"
Phpinidir "c:/php"
AddType application/x-httpd-php. php. html. htm
Restart Apache
Create a test file under the C:/apache24/htdocs directory index.php:
<?php
Phpinfo ();
?>
Browse: http://localhost/index.php
Displays the following information, indicating that the configuration was successful
Installation reference documentation for APAHCE:
Http://www.jb51.net/article/30128.htm
http://pjdong1990.iteye.com/blog/1602915
http://blog.csdn.net/wendi_0506/article/details/44163971
http://blog.csdn.net/zwfcan/article/details/8173838/
Third, the installation of MySQL
- Run the installation files directly.
After the installation is completed, it will automatically enter the configuration program and select Detailed CONFIG. The place to change is as follows:
①manual selecteddefault Character Set, choose UTF8 (International, you know)
② Check Include Bin Directory in Windows Path (can be cmd directly in MySQL)
③ set the root user password.
The four blue hook hooks are installed perfectly.
2.php support MySQL Settings
(1) the No. 730 line; Extension_dir = "ext", remove the front ";" and change to Extension_dir = "C:\php\ext"
(2) No. 880 and 881, remove the preceding ";"
Extension=php_mysql.dll
Extension=php_mysqli.dll
Note: There are many DLLs in lines No. 838 through No. 908, what you need to use, and remove the previous ";" You can do it.
(3) Restart Apache.
The MySQL installation is basically done here.
The rest is some apache,php and MySQL settings, this thing is more, this is the benevolent see of things
MySQL Installation reference:
http://pjdong1990.iteye.com/blog/1602915
http://blog.csdn.net/zwfcan/article/details/8173838/
Iv. installation of Discuz
First download the Discuz installation package, you can download it to Comsenz website, download the installation package, unzip it into a folder
Http://www.discuz.net/thread-3570835-1-1.html
(1) Open the folder, see there is a upload folder, cut the inside of the file to the outside, and then delete the upload folder
(2) then start the Apache server (if you have set up the Apache+php+mysql) environment, here is the environment has been set up, or discuz in the local is not run up. Open Browser, input http://localhost:/discuz/install/index.php, enter, install Wizard appears
The default is to choose a new installation, if you have not previously installed discuz other versions, then the next step
(3) Then set the data can be Administrator's account password
(4) fill in the discuz!. X Database Information and administrator information.
Click " Next Step " , the system automatically installs the database until it is complete, as shown in
(5) After the installation is successful, the following interface appears, click the Forum has been installed to complete, click here to access
Then automatically jump home page, if not jump, manual access: http://localhost/discuz/index.php then automatically to the homepage
discuz Installation reference: http://www.discuz.net/forum.php?mod=viewthread&tid=3258186&ctid=1891
At this point, installation success!!!
Installation configuration of WinDOS environment Apache+mysql+php+discuz