Manual installation of Wamp
(http://www.cnblogs.com/homezzm/archive/2012/08/01/2618062.html)
First, Apache2.4 installation
1. Modify the \apache\conf\httpd.conf file
Define srvroot "E:/wamp/apache24"
2, check whether the port is occupied in cmd under the command netstat-a view
3, next need to configure the installation of Apache Master Service, with it, Apache can start:
E:\wamp\apache24\bin>httpd.exe-k Install-n Apache24
Among them, Errors reported here must is corrected before the service can be started. This means that if there is an error message behind the sentence, the service installation fails and the error needs to be corrected first. If not, then success.
Note: If the Apache server software does not want to use, want to uninstall, you need to uninstall the Apache service (remember, if the folder directly delete the installation path, there will be residual files on the computer, may cause unnecessary trouble)
In the cmd Command window, enter the following (it is recommended to stop the service before deleting):
SC Delete Apache
Apache is the service name of the Apache server
Second, PHP
1. Download VC11 x64 Thread Safe (PHP 5.6 (5.6.23))
2, add E:\wamp\php in the system environment variable path; E:\wamp\php\ext; Effective after reboot
3, the configuration of PHP:
If you do not have a php.ini-dist file, you can use the Php.ini-development file and change the name to PHP.ini (Leave a backup, good habit)
Php.ini-development for development
Php.ini-produciton for production machines
Modify PHP.ini
Default_charset = "UTF-8"
Extension_dir = "E:/wamp/php/ext"
Extension=php_exif.dll, Php_gd2.dll, Php_imap.dll, Php_mbstring.dll, Php_mcrypt.dll, Php_mime_magic.dll, Php_ Mysql.dll, Php_mysqli.dll, Php_pdf.dll in front of the semicolon ";" Remove.
4. Other configurations
In the writing PHP program, there are sometimes such warnings: PHP warning:date (): It is not safe to rely on the system ' s timezone settings. You is *required* to use the Date.timezone setting or the Date_default_timezone_set () function. In case you used any of those methods and you is still getting this warning, your most likely misspelled the timezone Iden Tifier. We selected ' UTC ' for ' 8.0/no DST ' instead in D:\xxx\xxx\xxx.php on line 10.
This is because PHP takes time is Greenwich Mean time, so and your local time will be the difference between Greenwich Mean time and Beijing time is about 8 hours, we can follow the following method to solve: 1, in the header using Date_default_timezone_set () Set my default time zone to Beijing time, i.e. <?phpdate_default_timezone_set ("PRC"); > It's ready.
2, set the value of Date.timezone in php.ini to PRC, set the following as: DATE.TIMEZONE=PRC, while canceling the comment of this line of code, that is, to remove the preceding semicolon is OK.
Third, MySQL
Http://jingyan.baidu.com/article/597035521d5de28fc00740e6.html
1, modify the My.ini
[MySQL]
# Set the MySQL client default character set
Default-character-set=utf8
[Mysqld]
# set up the MySQL installation directory
Basedir = E:/wamp/mysql
# Set up a storage directory for MySQL database data
DataDir = E:/wamp/mysql/data
#设置3306端口
Port = 3306
# server_id = ...
# Maximum number of connections allowed
max_connections=200
# The character set used by the service side defaults to the 8-bit encoded latin1 character set
Character-set-server=utf8
# The default storage engine that will be used when creating a new table
Default-storage-engine=innodb
2. Install MySQL
E:\wamp\mysql\bin>mysqld-install
Service successfully installed.
3. Start MySQL
net start MySQL
4. Log in to MySQL
Default no password: Enter Mysql-uroot-p,
How to set Password: mysqladmin-u root-p password password.
Iv. installation of phpMyAdmin
Unzip to the Web directory, Access can be
If there is no php5apache2_2.dll in the PHP installation directory, it must be the wrong version of the download.
There are several paragraphs on the left side of the website:
Which version do I choose?
If you is using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP ....
So you download v6c versions of PHP
VC6 x86 Non Thread Safe
VC6 x86 Thread Safe
One is the thread safe, one is the non thread safe,
As a result, Non Thread safe version of PHP during the installation process, there is no Apache option:
Select the Web server wish to Setup
IIS FastCGI
Other CGI
Do not setup a Web server
The Apache 2.2.x module option is available during the installation of the thread safe version:
Select the Web server wish to Setup
Apache 2.2.x Module
APACEH CGI
IIS FastCGI
IIS CGI
NSAPI
Xitami
Netserve Web Server
Other CGI
Do not setup a Web server "
------------------------------------------------------------------------------------------------------
PHP has several different versions to choose from when downloading. That's VC6 X86 and VC9 X86.
First I will answer:
What is VC6?
VC6 is Legacy Visual Studio 6 compiler, which is compiled with this compiler.
What is VC9?
VC9 is the Visual Studio compiler, which is compiled with Microsoft's vs Editor.
So how do we choose which version of PHP to download?
If you are using apache+php under Windows, please select the VC6 version;
If you are using iis+php under Windows, please select the VC9 version;
What is the non Thread safe?
Non thread safe is non-threaded;
What is Thread Safe?
Non thread safe;
The official does not recommend that you apply the non thread safe to the production environment, so we chose the thread safe version of PHP to use.
Phpinidir "E:/program files/php"
[
If you have a link to the MySQL database
Fatal error:call to undefined function mysql_connect () in C:\xxxxx.php
That's because you didn't add this property.
]
Manual installation of Wamp