Wampserver environment under Windows System (non-integrated)

Source: Internet
Author: User
Tags imap


Create a new folder under the D drive Wampserver
Go to the Wampserver folder and create a new 5 folder under the folder: Apache,mysql, PHP, www, sessiontmp
Installing Apache into the Apache folder
Unzip PHP into the PHP folder
Install MySQL into the MySQL folder

How to configure apache2.2+php5.2.6+mysql5.0
Keywords: PHP Apache MySQL
To configure the Apache server:
Locate the Conf folder in the installation directory, open the httpd.cnf file for configuration (add the following code to the configuration file);
1.phpinidir "D:/wampserver/php/php.ini"
Make sure Phpinidir is before LoadModule php5_module
2. Add in the Load module area:
LoadModule php5_module "D:/wampserver/php/php5apache2_2.dll" //Load PHP5 module: path to Php5apache2.dll file
3. Add in the Add Type area:
addtype application/x-httpd-php. PHP
AddType application/x-httpd-php-source. Phps
4. Locate DirectoryIndex Add:
directoryindex index.php index.php.var index.htm index.htm.var index.xml index.xml.var Default index file
General to open LoadModule rewrite_module modules/mod_rewrite.so
5. Assigning ports
Listen 80
Namevirtualhost *:80
<virtualhost *:80>ServerAdmin [email protected]
ServerName localhost
DocumentRoot "d:/wampserver/www/"
<directory "d:/wampserver/www/" >
Options Indexes followsymlinks MultiViews
allowoverride None
Order Allow,deny
Allow from all
Serversignature OFF
</Directory>
</VirtualHost>
---------------------------------------------------------------------------------------Configuration PHP5.0
In the PHP installation directoryphp.ini-distRename word forphp.iniand save it to the Windows directory
Open in the PHP installation directoryphp.iniFile to configure:
1. FindExtension_dirAdd to:
Extension_dir = "D:/wampserver/php/ext"The Ext folder in the PHP5.0 installation directory is used to locate DLL files
2.Select some of the commonly used PHP DLL files in the extension area:
Extension=php_mysql.dll//Extension Php_mysql.dll, you can use the MySQL statement
Extension=php_mysqli.dll
Extension=php_gd2.dll//Allow to create, modify pictures
Extension=php_ming.dll//ming is a function in PHP that supports Flash.
Extension=php_dbase.dll//Extended Database Php_dbase.dll
Extension=php_imap.dll//install Php_imap.dll file to activate IMAP protocol. When an Internet Mail Access Protocol or IMAP feature is activated, local clients can access e-mail messages for remote mail servers or bulletin boards: this means that php_ The Imap.dll file makes it possible to store e-mail messages on an IMAP server, operate from a home or workstation computer, and drive at the same time: This advantage will no longer require this information or transfer between files on the computer.
Extension=php_pdo.dll//pdo is a PHP re-attached database extension, can support a variety of databases such as Mysql,access,sqlserver
3. Copy the PHP installation directory Libmysql.dll files to the c:/windows/system32;
4. Session.save_path = d:/wampserver/sessiontmp //Create a session of the Save folder, or the value of the session variable can not be saved;
5. register_globals default Off, change to on//Open global variable, later programming convenience
6. cgi.force_redirect = 1 changed to cgi.force_redirect = 0 Doing so is forced not to run in CGI mode
If the system is 64-bit, you need to add the path to the PHP folder in the system environment variable, otherwise, MySQL may not be found in phpinfo ().

Wampserver environment under Windows System (non-integrated)

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.