Manually configure Wamp (windows+apache+mysql+php)

Source: Internet
Author: User

Configure apache 
1, create a new directory under D (for disks loaded with Apahe and PHP5) d:\web\www (of course, you can build a directory) to store PHP files (try to keep Apache and PHP5 under the same level of directory) .
 2, locate the Conf folder under the Apache installation directory, click Enter, find httpd.conf file  
3, open the file, find DocumentRoot (ServerName yueer : 80 The first line of text, change the quotation mark to the directory where you store the PHP file (d:/web/www), and note that all of the backslashes (\) are changed to a slash (/), because it does not support (\). Modified to DocumentRoot (with a space) "D:/web/www".
 4, find <directory ... "> (ellipsis representation directory) modify the contents of the quotation marks to the same as in the previous step. Modified for <directory "D:/web/www" >.
  5, find DirectoryIndex index.html this line, add (with space) after index.php.
 6, add the following text at the end of the file #用来加载php模块   LoadModule php5_module "D:/php5/php5apache2_2.dll" #用于寻找php的php. ini file Phpinidir "D:/PHP5"   #使apache支持php文件   AddType application/x-httpd-php. PHP
 7, close save changes to complete the Apache configuration.
  NOTE: The path to load the module is the same as its system path, and D:/PHP5 is the PHP5 installation directory, again emphasizing the change (\) in the system path to (/).   

Configure PHP5
 1, locate the Php.ini-dist file under the PHP5 installation directory, and rename the file to PHP.ini.
 2, open the file, find a line at the beginning of doc_root, and change the following path to the directory where the php file is stored (such as Doc_root = "D:\web\www").
 3, find the text at the beginning of the Extension_dir, and change the following path to the path where the PHP extension file is located (the extension file is under the Ext folder under the PHP5 installation directory, such as Extension_dir = "D:\php5\ext").
4, find; Extension=php_mysql.dll this line, remove the preceding semicolon (;) so that PHP5 supports MySQL.
 5, close to save the file, and copy php.ini to the C:\windows directory.
  6, copy Libmysql.dll and Php5ts.dll to C:\windows\systems32.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.