Build a vegetable bird
Author: cold-blooded Warhawk
First of all, I am a rookie. I don't know the nerve short circuit. I wrote the following things. In fact, there should be a lot of shortcomings, please also ask you to advice. Opening white (thousands): With the entry of broadband, the Internet speed increases, many comrades want to build their own servers, even if they play, I have to play a little higher. Of course, maybe everyone may be the same as before, thinking that the construction server is very difficult, in fact, everyone should not be afraid, the sayings have clouds: You don't go to hell, who enters hell, (嗖 嗖 two, two daggers ), Sorry, wrong, it should be: What difficulties are not afraid of people, huh, huh, I am wrong (I am a rough, I don't understand the text, the general is also the meaning). Ok, regular turn, then I will talk about what software: server build: IIS (Microsoft, good, will use the mouse, know Chinese, can get started quickly), apache (this article may not mention It is, but it is a professional server construction software. Interested to communicate with me) I believe you don't just want to provide web services, we have to engage in FTP, huh, huh, huh, the software you need to bring yourself: In fact IIS A FTP service, but I don't recommend it, mainly to manage is less convenient (personal view). I recommend SERV-U, simple, practical, and the earth people like it here, huh, huh (your small rabbit scorpion, less waste) is good, the software needs this, if you want to do some forum, what is the rivers and lake games , Then go to the network to search for the source code you want, I think, the forum, Leo is good, of course, there is also a network of ASP. In fact, the popular PHP is PHP. If you like what, go to Down What, these are very simple, believe in yourself, no teacher, J. Halo, almost forgot important things, if you want to build CGI or PHP forum, you need some plug-ins: support CGI plug-in: Need Perl compiler: ActivePerl, a big website has downloads. Plug-in supporting PHP: I need PHP for Win plugin, version update is relatively fast, downloading the latest version is better. OK, the software you want to say is almost almost, if you still need it, I will explain it later. Drinking mouth, now there is all things, only owe Dongfeng, starting: First, the broadband IP should be dynamic, so we need a domain name service to point to yourself, or other people can't enter, here I recommend peanuts Shell Name Service (http://www.oray.net/default.asp), the application is not particularly cumbersome, and it will apply in Chinese.
After the application, you need to download a client. If you don't install this Dongdong, you can't achieve the point of domain name, just download it in the site (note the latest version of the download, download the old version, etc., waste resources, if You have an old feelings, and I don't have a way to download the old version. Of course, if you have a fixed IP, then you are, don't have a dynamic domain name, I really want to have a fixed IP, but there is no money, the poor is life, licking, install IIS, we are Rookie, of course, the most vegetable stuff, IIS, simple and practical (not to advertise to Microsoft, it is true, it is more simple than Apache). If you are the win2000 server version, that IIS should be installed. If it is a professional version, you need to add it, add the delete software to find it, just not more. After installing IIS, you need some simple settings, nothing more than the mouse point to those Chinese buttons, simple, will mention how to configure CGI and PHP, just here. The installation of the SERV-U of the FTP server: Like other software, the next step, the next step, finish, huh, huh, will not be 揍. After the installation is complete, it will run automatically, you need to fill in some things, I suggest you download the Chinese House to download the Chinese cracked version of the serv-u, which is good, it is good. You only need to pay attention to the following items when filled in: 1, if you are a dynamic IP, don't fill in the column of the IP, if it is fixed, then fill it, then fill in the domain name, fill in The free domain of the peanut shells you apply. Behind, you will understand at first sight, don't need me again. 2, if you don't want the FTP service to start with the system startup, don't choose the column to start with the system. If you don't want anonymous to log in, you will automatically prompt you to create a new username and password. Come, will not be wrong. 3, there are very many tutorials on the Serv-U, you go to find, those masters say better than I said, suggest to download a few things, I am learning from those who have been learning. 4. If you want your FTP site more professional, you can see the help files of Serv-U, there are some common variables of Message, where it is very detailed. OK, the server's construction is similar, if there is something wrong, welcome everyone to point out, let me talk about it, how to make your server function more and more powerful. The installation of the forum: If you are a forum using the ASP code, your IIS server does not need to do any instructions, it can be supported, of course, if you use the Apache server, you need other settings, because this article is based on IIS's server, so don't say, the tutorial on Apache support ASP on the Internet is also very much (in fact, I am not particularly familiar with apache, don't k, if K, I will not say, 嘿嘿).
If you are using the CGI forum, you need to install ActiBeperl. When you install, you only need to pay attention to it, install him in a C: / usr directory, actually I don't know why you want to install it here, anyway, you installed here. Will avoid a lot of questions, if you install it to other directories, there may be some weird problems. Installation process, omission, because all software installation methods are Datong Small, here, I will talk about how to configure CGI in IIS: Open IIS Manager, open the website properties, enter the main directory option, click, configure, then enter a new The dialog box, click Add, add the following: Executable File: c: /usr/bin/perl.exe% s% s (in fact, the address of the Perl file, add two% s, the middle is spaced) expand Name: .cgi also Add once: executable: c: /usr/bin/perl.exe% s% s extension: .pl then, add a virtual directory, pay attention to: First, the path is in yours In the CGI directory, second, if it is Lease, it is recommended that the virtual directory is named cgi-bin. As for why, it is because I am used to it, huh, huh, I will not be finished by K, it is simple, if big When you don't think there is a mistake, please point out, huh, huh! If you have something PHP, then install PHP for Win. It is recommended to use the decompression mode, don't use that installed, bad, why? Why is it so much, that is someone else's master, how do I know why? Less nonsense, starting ing: Before starting, there is a little nonsense: two different modes installed in PHP, one is CGI mode, and the other is modular installation. You can distinguish this: In CGI mode, if the client requests a PHP file, the web server calls php.exe to explain this file, and then return the result of the explanation to the client in the form of a web page; in the modularity PHP is started and running with the web server, so it is theory that PHP4 installed in Apache module has better security and better execution efficiency and speed, in fact what to install It is completely on you, not I am talking here.
Unzip the PHP to the directory you want, I am used to unpacking to the PHP directory you just decompressed, you will find a file called "php.ini-dist", this is the PHP configuration file. You need to change it into "php.ini", then copy it to the system directory (if your system is installed in the C drive, XP is "C: / Windows", and Windows 2000 is "C: / WinNT"). I have seen a lot of articles introducing the PHP installation files to say that "extension_dir" and "doc_root" in php.ini are to be modified, but the small in the installation of the PHP is not changed, and there has been no mistake, It seems that these two parameters are not necessary. Of course, if you don't worry, you can modify it. Change DOC_ROOT to your server root directory, change Extension_Dir to the absolute path in the Extensions folder in your PHP installation folder. In fact, it will not change, and it will not be wrong, then you will see how you mean, huh, huh. 3. Open your IIS Information Service Console, right-click the "Default Site" icon, select the property, open the default website property selection, then select the "Main Directory" tab, do the following configuration:
Click the "Configure" button and you will see a tab and you are the type of document already defined. Click the "Add" button to add these:
Executable file: c: / php/Php.exe% s% s (your PHP is located) extension: .php ok, ok. Now try to save the following segments into a suffix for the PHP file, then put it in a virtual directory to visit, see if it can appear normal results. Php phpinfo ();?> Maybe you will encounter the following output results:
Security Alert! The PHP CGI can not be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.
For more information as to why this behaviour exists, see the manual page for cgi security.
.
You don't have to be afraid, this is because now PHP is running in the CGI mode in IIS, and this item in your PHP configuration file is not open. If you see a warning on the above, you need to open your php.ini file, then find "cgi.force_redirect = 1" such a sentence, remove the semicolon in front of this sentence, then change 1 to 0 is OK, Now let's refresh your page, if there is no accident, you will see a PHP welcome page, then congratulations, your server has supported CGI and PHP, ASP still said! ! Ha ha.
Ok, my nonsense is almost the same, the tomato stinky egg has been covered, I should escape, the garbage instructions before running, in fact, I have also wanted to talk about the JSP server, but the younger I don't dare to go to the ax, I will talk about nonsense next time. Welcome everyone to communicate with me, you also welcome you more advice, my contact information:
QQ: 21478845 msn: Lengxuezhanying@hotmail.com
I am a rookie, I am afraid!
Welcome everyone to post, but please leave my name, thank you for your cooperation!
Author Blog:
http://blog.9cbs.net/coldhawk/