[Web Server Configuration] Windows2000 Apache (Apache) Web Server Configuration Raiders

xiaoxiao2021-03-06  43

The web server told in this article is to use Windows2000 as an operating system (the Windows2000 is best not to install IIS5.0), with Apache (Apache) as a server software, on which PHP, MySQL, and Perl are configured. This constitutes a web server system that is friendly, stability, and strong load, and is very powerful. However, for high-load large websites, the server configuration discussed herein also looks more "single".

Web server configuration Raiders (1):

Installation Configuration Apache 1.3.17: Apache is the most widely used web service software worldwide, more than 50% of websites are using apache, which has become the most efficient, stable, safe, free (most important point) Popular server software! The current latest version is 1.3.17, everyone can visit

Http://www.apache.org download.

Web server configuration Raiders (2):

Install mysql3.2.32: MySQL is a real multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular and standardized database language in the world. MySQL is an implementation of a client / server structure that consists of a server daemon MySQLD and a lot of different client programs and libraries.

◇ Install the configuration PHP: PHP is a scripting language explained by the server. If you have contacted the ASP, then you should be more familiar with the embedded code in the HTML page. The PHP code is interpreted to a normal HTML page content at one end of the server to give the browser. This model allows us to use it to complete a fairly complex feature.

Web server configuration Raiders (3):

Installation Configuration Perl: Perl is one of the most popular Web scripts, its text handling capacity and security without people and (PHP can only look back on the back), careful friends may find, PHP and Perl There are a lot of similar places, then because PHP is affected by Perl when PHP is generated, even PHP's prototype is written in Perl!

PHP Optimization: Zend Optimizer (hereinafter referred to as ZO) uses an optimized code to improve the execution speed of the PHP 4.0 application. The principle of implementation is to optimize the code generated by the Run-Time Compiler before being finalized. Under normal circumstances, the PHP program to perform using ZO is 40% to 100% faster than not using. This means that the site visitor can browse the web faster, thereby completing more transactions, creating better customer satisfaction.

Web server configuration Raiders (1)

With the increasing level of Internet popularity, more and more entities and individuals have put into the arms of the network. And your own website has also become more and more people's goals. And a high-efficiency web server is a powerful support for a website! Below, I will discuss the settling of the web server according to my own learning and practical operation experience, please refer to it! (The contents of this article also apply to stand-alone! Think of friends who want to make a web server with their own machines can also refer to it) All environments are Windows2000 systems, and the server configuration in other environments can refer to some of this article!

The web server told in this article is to use Windows2000 as an operating system (the Windows2000 is best not to install IIS5.0), with Apache (Apache) as a server software, on which PHP, MySQL, and Perl are configured. This constitutes a web server system that is friendly, stability, and strong load, and is very powerful. However, for high-load large websites, the server configuration discussed herein also looks more "single". Now, let's start discussing the configuration of the server:

(1) Installation configuration apache1.3.17

Apache is the most widely used Web service software worldwide. More than 50% of websites are using apache, which has become the most popular server software with efficient, stable, safe, free (most important)! The current latest version is 1.3.17, you can visit http://www.apache.org download. Please download the non-original version of the for Win32 (Apache_1.3.17-Win32-NO_SRC.MSI). The latest version of the Apache for Win32 begins to publish in the form of MSI. This makes it very simple to install Apache in a Windows environment. Let's talk about its specific installation process:

1. Double-click the installation file of Apache, and the normal Windows program is installed, you can "next".

2, the installer requires you to enter your Network Domain (network domain name: XXX.com); Server Domain (server domain name: shaped www.xxx.com) and the website administrator E-mail. If you have any words, please fill in the format if you don't have any words.

3. When you choose the installation path, I strongly recommend that you change the installation path to "C: /", because this can save a lot of configuring trouble.

4, all the way "Next" until "finish". The installation is over.

At this time, your apache has already started, you can enter: http://127.0.0.1 in the IE address bar: http://127.0.0.1 to see. In the "Services" item of Administrative Tools, you can also find the figure of the Apache service. After Apache can serve as a Windows2000 service, run with the machine!

Tell the Apache installation, followed by discussing the configuration of Apache, making it better!

The core configuration file of Apache is httpd.conf, the storage path is "install path / conf / con /" in Apache, in version 1.3.17, its role is more obvious. Use Notepad to open it and start modifying the configuration! Limited to the space, here is only important, must modify! (Description Little: "#" For the comment symbol of Apache)

1. Find the ServerName. Customize your domain name here. This way, when Apache Server is running, you can access your site in your browser. If there is #, remember to delete it.

2. Find to ServerAdmin. Enter your E-mail address here.

(The above two should have been configured during installation, so don't have to be changed, here is introduced, mainly for future modifications)

3, find

. There is Options down, remove all the parameters behind, add an all (pay attention to case sensitization! An all.

4. Find DocumentRoot. This statement specifies your website path, which is the directory where your home page is placed. You can use the default, you can specify one yourself, but remember, don't add "/" at the end of this sentence. Also note that the path separator is written in Apache Server (using a friend who is used to windows, is it a little awkward?). 5, find DirectoryIndex. This is the home page of your site, add index.htm index.php index.php.htm index.php. Note that there is a space between each type! It is added here, and it will not be troublesome later.

6, special explanation is the Port (port number), if you don't have IIS, keep 80 don't change, otherwise, you will change it (because IIS's web service occupies 80), you can change to 81, or simply Change the default port number of IIS! Happy with you. But I personally think that there is nothing better, and some aspects are more than PHP. So it is recommended that IIS will not install, let alone IIS security I really don't dare to compliment! !

Ok, Apache installation configuration is complete, as for how to support PHP, CGI, please see the dedicated introduction. Next, let's install Mysql.

Web server configuration Raiders (2)

Second, install mysql3.2.32 MySQL is a real multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular and standardized database language in the world. MySQL is an implementation of a client / server structure that consists of a server daemon MySQLD and a lot of different client programs and libraries. SQL is a standardized language that makes it easier to store, update, and access information. For example, you can use the SQL language to retrieve product information and store customer information as a website, while Mysql is also fast enough to allow you to store record files and images. The official pronunciation of MySQL is "My Ess Que Ell" (not my-sequel). Installing MySQL in Windows is very simple, just 4 steps: 1, see the compressed files downloaded back to the arbitrary directory. 2. Click on the SETUP installation in the decompressed directory. Don't change anything, all the way "next" to "finish" (not recommended to modify the installation path). 3. Enter: "C: / MySQL / BIN / MySQLD-NT -INSTALL, run! 4. Find the" MySQL "service in the" Service "item in Administrative Tools, start it, then Restart Your Computer! At this time, the mysql database system is installed, let's start installing configured PHP! III, installing the PHP PHP is a scripting language explained by the server. If you have contacted the ASP, then you are embedded in the HTML page The code should be more familiar. PHP code is interpreted to a normal HTML page content at one end of the server, and the page is given to the browser. This mode allows us to use it to complete a fairly complex feature. PHP supports some frontiers for Internet development Technology. These technologies include identity authentication, XML, dynamic image generation, WDDX, shared memory, and dynamic PDF documentation, (more importantly, all of which are free), if you still don't If you are satisfied, PHP is easy to expand, so as long as you have programming capabilities, you can do your own exhibition. OK! Introduction! Let's start our PHP journey! 1, close the Apache service 2, compress PHP The file is extracted into "c: / php" (do not change the path! Otherwise, the future configuration ....). 3, copy C: /PHP/PHP4TS.DLL to C: / WinNT / System32, overwrite Any original file. 4, rename the c: / php.ini-dist to PHP.INI, copy to C: / WinNT.

5. Introduce the two installation modes: Apache module method and CGI method 5.1, Apache module method: Add to the following lines in httpd.conf: (Where else can, but you have to travel) loadModule PHP4_MODULE C: / PHP / SAPI / PHP4APACHE.DLLADDTYPE Application / X-httpdType Application / X-httpd-php .php PHP3 5.2, CGI: Add to the following lines in httpd.conf: scriptalias / php / "c: / php /" action applation / x-httpd-php4 " / php/php.exe"addtype application / x-httpd-php4 .php The author is strongly recommended that you choose the Apache module method, because this can make you better performance and security! ! ! CGI method can only need to know! 6, restart the Apache PHP is also installed and debugged! Below, a piece of code: is Test.php, put it in your Apache default document, enter http: // in IE 127.0.0.1/test.php stole music! ! (You can see the PHP's mode of operation is apache) Some friends will ask: Why don't you have a modification of php.ini? This is because: If you press the PHP4 installed by default, then PHP.INI's settings have not been problematic, and the optimization php.ini is not a few sheets of paper. Therefore, ordinary users do not need to modify php.ini here. Then, we continue to configure Apache in the next chapter to support the CGI program written by Perl! Web Server Configuration Raiders (3) Four Friends may have already found that PHP and Perl have a lot of similar places, when PHP is affected by Perl when they are generated, even PHP's prototype is written in Perl! Now, there are a lot of discussion about Perl, saying that CGI is too slow, Perl is outdated, etc., I personally think that Perl has no time, it has been working hard! It is still in the world's irreplaceable web scripting writing language! ! Ok, talk nonsense! Below, let us discuss the installation configuration of Perl. Come ON !! 1, double-click the installer of Perl5.6, (the default path should not be changed) to complete the installation. 2, look for, there is an options on the 9th line below, turn it out of the following parameters, add an all, (accountually write). There is an ALOWOVERRIDE again, and also replaces the back NONE to ALL. 3. Find Scriptalias / CGI-BIN / "C: / Apache / CGI-BIN /". Deleting the previous #, put "" pointing to the directory you store the CGI script, that is, the CGI script in this directory can be executed. 4, find

转载请注明原文地址:https://www.9cbs.com/read-52337.html

New Post(0)