Installation of a appache. Download the Appache installation package. ######################################################
1. Use cmd to Apache24\bin, under this directory;
2. Enter Httpd.exe-k install, installing the Appache service.
3. Configure, httpd.conf, configure related installation directory \ port, and access rights;
4. Test, website can access.
If access is available, the Appache installation is successful.
Two. Installation of PHP. #################################################################################
1. Download the PHP 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)
Tri-Apache Debugging and PHP integration ######################################################
1. Modify the Web site root directory
Find DocumentRoot in httpd.conf
There is such a line documentroot "C:\httpd-2.4.10-win64-VC11\Apache24\htdocs" This is the root directory of your site, you can modify, you can also use the default.
If you change it, you can change the following, or you may get a 403 error
Find the two lines below it with <directory
<directory "C:\httpd-2.4.10-win64-VC11\Apache24\htdocs" >
Change the "C:\httpd-2.4.10-win64-VC11\Apache24\htdocs" of the above two items to the directory you want.
2. Find DirectoryIndex in httpd.conf let Apache support *.php (web)
Modified to DirectoryIndex index.htm index.html index.php so index.php can act as the default page
3.Apache and PHP feature 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.
Don't confuse Php5apache2.dll and Php5apache.dll.
The Php5apache.dll is only available for Apache version 1.
The Php5apache2.dll in the PHP5 compression package is only available for the apache2.0.* version,
In the case of 2.2.* or above, the "Cannot load C:/php/php5apache2.dll into Server:the specified module could is not found" is likely to appear. Or: "The requested operation has failed"
4. In httpd.conf find AddType application/x-gzip. gz. tgz
After this line, add a line AddType application/x-httpd-php. PHP (remember:. PHP has a space in front of it!!! So Apache can know PHP files.
5. Test create a indexl.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
Four, MySQL installation, download good MySQL compressed package, ######################################################
1. Unzip, go to the folder, and change the My-default.ini to My.ini.
2. Modify the corresponding properties in 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.
Summary: Enter the 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.
V: Installation of php_myadmin; ###############################################################
1. Unzip the downloaded phpMyAdmin unpacking package.
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.16
Installation notes for Appache, etc. x64