windows port

First, download
1. Download:
http://httpd.apache.org/download.cgi
2, find Files for Micsoft Windows

3. Select ApacheHaus

4, the system selects the corresponding version (I chose 64) According to begin downloading (no VPN, then download a bit slow, need to wait)

Second, the installation
1, extract httpd-2.4.25-x64-vc14-r1.zip
2 to obtain the following folder

3, readme_first.html document which details the installation steps and methods, but is in English, as follows

You must first install Visual C ++ 2008 Redistributable Package. If you have not downloaded and installed (see above URL)

The package zip file folder Apache24 unzip to the root directory on any drive. This is the configuration of the "ServerRoot".
Example:  c: \ Apache24

Test your installation  ;

\ Apace24 \ bin folder on the Open a command prompt and cd to unzip the zip file to the drive.

To start Apache at the command prompt, type:

httpd.exe

Press Enter. If there are any errors, it will tell you. Warnings do not stop Apache work, they do need to be addressed. If no error (should not, but it will happen), the cursor will stay the next line and flashes. Until now very good.

This distribution is preconfigured for the localhost. You can now test your installation by opening a Web browser and type the address:

HTTP: // localhost

If all goes well, you should see the Apache Haus test page.

You can turn off Apache press Ctrl + C (may take several seconds)

 

To install Apache as a service :

In most cases, you will need to run Apache as a Windows service.
You can do this by typing [1] at the command prompt to install Apache as a service;

httpd -k install

Then, you can start Apache by typing

httpd -k start

Apache will start and then eventually release the Command Prompt window.

[1] You must be in Windows Vista / 7/2008/8 / 8.1 / 10/2012 / administrator to run the command prompt

 

Other command-line options :

Stopping Apache   httpd -k stop
Restart Apache httpd -k restart
Uninstall the Apache service httpd -k uninstall
Test configuration syntax httpd -t
Version Details httpd -V
Command line options httpd -h

 


Connecting to the database - DBD / M Suport

Apache Haus construct comprising three (3) connectors DBD, ODBC, MySQL and SQLite3. ODBC included in Windows, SQLite3 in the public domain, so this package contains the required sqlite3.dll.

Can derive MySQL Connector (libmysql.dll)

https://dev.mysql.com/downloads/mysql/

Note that this connector is for MySQL MySQL 5.6.21 build (but earlier or later version 5.6 .dll may be effective.) Libmysql.dll must contain in order to use the connector in the Apache / bin folder.

 

 


Encryption Session Cookie

Authentication session and the session cookie has been added to the Apache 2.4. Starting APR 1.5, you can now encrypt the session cookie, so that the user names and passwords unreadable. This package contains everything you need.

 


ApacheMonitor

ApacheMonitor tray is a desktop application that allows you to monitor the existence of the Apache service is running, and easily start, stop and restart Apache. To use it, just double-click \ ApacheMonitor.exe to Apache24 \ bin folder. If you want it to start automatically when you log on the computer, simply drag a copy of Window's "Start" menu in the "start" to the folder.

 

httpd command

Close httpd Apache - k STOP 
 to restart httpd Apache - k restart 
 unloading httpd Apache - k Uninstall 
 to see the version of Apache httpd - V 
 command help httpd -h

 

Guess you like

Origin www.cnblogs.com/jiangfeilong/p/11288055.html