Windows Server Setup

Source: Internet
Author: User
Tags imap

Windows Server Remote connection method:

Open ' run ' input mstsc pop-up Remote Desktop Connection

Note: Mount the local USB drive, click on local Resources-"details-" driver;

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 and open the httpd.cnf file for configuration;

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"

Module loading PHP5: 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

Open LoadModule Rewrite_module modules/mod_rewrite.so

5. Assigning ports
Listen 80

Namevirtualhost *:80
<virtualhost *:80>
ServerAdmin [email protected]
ServerName localhost//ip: write IP address or domain name
DocumentRoot "d:/wampserver/www/"
<directory "d:/wampserver/www/" >
Options Indexes followsymlinks MultiViews
allowoverride None
Order Allow,deny
Allow from all
Serversignature OFF
</Directory>
</VirtualHost>

Configure PHP5.0

PHP installation directory php.ini-dist changed to name PHP.ini and saved to the Windows directory

Open the php.ini file in the PHP installation directory to configure:

1. Find Extension_dir and add:

Extension_dir = "D:/wampserver/php/ext"//php5.0 the Ext folder in the installation directory for locating 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.
Extension=php_pdo.dll//pdo is a PHP re-attached database extension, can support a variety of databases such as Mysql,access,sqlserver

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.


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

64-bit operating system, it may be necessary to add the PHP installation path to the environment variable path in order to display MySQL.


Configure MYSQL5.0


Not how to configure it, start the default user name is "root", you can add a new user

Project release: (CI framework)

1. ServerName at Port: write IP address or domain name

2, DocumentRoot "d:/wampserver/www/"
<directory "d:/wampserver/www/" >
The two paths should be consistent; If you want to get into the project, add the project name
3, the CI framework to modify the cofing.php file, the inside of the Base_url to be written: HTTP//IP address///or domain name/
4. Import the database and modify the database password in the configuration file.

Windows Server Setup

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.