One: appache2.4.10 x32################################
Download the appache2.4.10 x32 installation package in advance
1.HTTPD.EXE-K installation of the Install Appache service, enter the bin directory of the extracted Appache and run the first command.
(There will be a problem asking you to change the Services root directory)
2. Locate the Services root directory, settings, Appache directories such as: C:\httpd\Apache24,
3. Re-search: Listen, change the relevant port, such as: 8080;
4. Continue looking inside the httpd.conf: DocumentRoot C:\httpd\Apache24\htdocs
And the <directory below it "C:\httpd\Apache24\htdocs" > change the relevant path;
5. Finally put: Httpd.conf inside the ${srvroot}, all replaced by, Appache, decompression path;
Restart Appache, test, you should be able to access the most basic page;
Two. Installation of PHP. #################################################################################
1. Download the php-5.6.4-win32-vc11-x86 package file.
2. Since PHP is a zip file (not the install version) to unzip the downloaded package, change the PHP directory: php.ini-development, for PHP.ini
3 Open the Dynamic Data Connection library under the php.ini directory:
Php_gd2.dll, Php_mysql.dll, Php_mbstring.dll
If Php_gd2.dll is not loaded, PHP will not be able to process the image. Without loading Php_mysql.dll, PHP will not support the MySQL library, Php_mbstring.dll support wide characters when using phpMyAdmin later, or there will be an error running phpMyAdmin.
Find extension
Extension=php_mbstring.dll
Extension=php_gd2.dll
Extension=php_mysql.dl to remove the semicolon from the preceding 3 items,
This allows Apache to load these DLLs when it is started
4 Open php.ini file (associated to MySQL) Set extension path
Find Extension_dir has such a line Extension_dir = "./"
Change this line to Extension_dir = "C:\php5\ext"
Where C:\PHP5 is your path to install PHP. The path is incorrect and the DLL cannot be loaded
(Note: Extension_dir = "./" To remove the preceding semicolon)
5. Then: Find DirectoryIndex in httpd.conf let Apache support *.php (webpage)
Modified to DirectoryIndex index.htm index.html index.php so index.php can act as the default page
6. Focus on ******* Apache and PHP functional connections
In httpd.conf, find
# LoadModule Foo_module modules/mod_foo.so Add a row after this line
Phpinidir "C:\php" (if the Appache cannot be started, do not do this, with the # number in front, it is not enabled)
LoadModule php5_module "C:\php5\php5apache2.dll" (focus on the semicolon above)
Note: Where C:\php5\php5apache2.dll is the appropriate path for you to install PHP.
7. In httpd.conf find AddType application/x-gzip. gz. tgz
After this line, add a line AddType application/x-httpd-php. PHP (Note:. PHP has a space in front of it!!! So Apache knows PHP files.
8. Test create a index.php file in the root directory of the Web site
<?php
Phpinfo ();
?>
Related summary:
###### #简单方法: ###########################################################################
#php Apache Integration
Phpinidir the directory where the "c:/php" #php. ini
LoadModule php5_module "C:/php/php5apache2_4.dll" #php5apache2_4模块
AddType application/x-httpd-php. php. html. htm #让apache parsing php files
Three, MySQL installation, download good mmysql-5.6.22-win32.msi###############################################
1. Install to the directory you want to install; Then, go to the directory where you changed: My-default.ini, change to My.ini.
2. Configuration of the My.ini;
# These is commonly set, remove the # and set as required.
# Basedir = ... # Set the installation directory for MySQL
# DataDir = ... # Setting the data storage directory for MySQL database must be
# port = .....
# server_id = ...
Basedir=c:\mysql # Note: The path is a backslash, can also be changed to two forward slashes, you can also add double quotation marks, for example:
#datadir = "D:/mysql5.6.*/data"
Datadir=c:\mysql\data
port=3306 # MySQL Port
server_id =3
Character-set-server=utf8 # Character Set
Default-storage-engine=innodb
Innodb_data_home_dir=c:/mysql/data
Innodb_data_file_path=ibdata1:12m:autoextend
Innodb_log_group_home_dir=c:/mysql/data
innodb_buffer_pool_size=512m
# Remove Leading # To set options mainly useful for reporting servers.
# The server defaults is faster for transactions and fast selects.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
Sql_mode=no_engine_substitution,strict_trans_tables
3. Execute cmd (enter bin directory) as Administrator Mysqld.exe install MySQL service.
4. Then net start MySQL starts the service.
(enter "net start MySQL" to start the MySQL service, enter "net stop MySQL" to stop the MySQL service)
5.mysql-u root-p, test the local connection. (The initial password is empty)
6. Root Password modification
Log in to MySQL database (local)
In the Doc Command window, enter the command: Mysql-u root-p
(Change password) Enter the bin directory using Mysqladmin,dos:
Mysqladmin-u root-p Password After entering this command,
You need to enter the root password and the root password will be changed to MYPASSWD. Change the root of the command to your username, and you can change your own password.
Of course if your mysqladmin is not connected to MySQL server, or you have no way to execute mysqladmin, then this method is invalid. And mysqladmin can't erase the password.
To add MySQL users, first go to MySQL:
Method One: CREATE USER ' nfyx6 ' @ ' localhost ' identified by ' unisonic ';
Method Two:
Command 1:insert into Mysql.user (Host,user,password) VALUES ("localhost", "nfyx5", Password ("Unisonic"));
command 2:flush privileges;
7.mysql backup software: Recommended for use by Faisunsql.
Related summary: ******************************************************
Enter root command: mysql-u root-p default password is empty;
Password modification command: mysqladmin-u root-p password
Add mysql user command: CREATE user ' nfyx6 ' @ ' localhost ' identified by ' unisonic ';
Telnet, command as follows: Mysql-h 192.168.80.109-u root-p
To uninstall an installed MySQL service:
Doc command to enter the Msyql\bin directory into the "Mysqld-remove" or "sc delete mysql" uninstall service
-H is the specified login ip,-u specified user,-p Specify the password, after-p if nothing is written, then the next prompt to enter a password,-P can also be directly written on the password, so that no longer need to enter the password
IV: Installation of php_myadmin; ###############################################################
1. The downloaded phpmyadmin/x64 and X32 can be used together (personally tested) decompression package decompression.
2. Then put it in the Appache under the Htdocs directory, of course, you can also create a new path under the Htdocs.
3. Test and connect with the database user name and password you just created.
4. Successful connection means that the basic installation is complete in winddows (appache php mysql (phpmyadmin)).
The end
2015.1.18
Installation notes for Appache, etc. x32