Server builds a vegetable bird

zhaozj2021-02-12  153

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 I need:

Server build: IIS (Microsoft, good, you will use mouse, know Chinese, can get started quickly), apache (this article may not mention, but it is a professional server to build software, interested to communicate with me communicate with)

I believe you don't just want to provide web services, we have to engage in ftp, huh, huh.

The software required by the FTP server: In fact, IIS has brought an FTP service, but I don't recommend it, mainly because it is not convenient (personal view). I am here to recommend serv-u, simple, practical, and the earth people like it, huh, huh (your bunny scorpion, less waste)

Ok, the software needs these, if you want to do some forums, 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, also supports ASP The network, in fact, the most popular is PHP, if you like what, go to Down, these are very very simple, believe in yourself, no teacher, J.

Halo, I almost forgot important things, if you want to build CGI or PHP forum, you need some plug-ins:

Plug-in supporting CGI: Requires 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 water, now there is everything, I only owe Dongfeng, starting in:

First, broadband IP should be dynamic, so we need a domain name service to point to yourself, or others can't enter, hereby recommend peanuts (http://www.oray.net/Default. ASP), the application is not particularly cumbersome, and it will be applied for 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 Serv-U, this is a good voice for me, I don't know how to be ". 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 IP column, if it is fixed, then fill it, then fill in the domain name, fill in the free domain of the peanut shell 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.

Installation of the forum:

If you are using the ASP code for the forum, your IIS server doesn't have to do anything, you can support, of course, if you use the Apache server, you need other settings, because this article is mainly IIS-based server, So don't say it, the tutorial on the Apache support ASP on the Internet is also very much (in fact, I am not particularly familiar with apache, don't k me, if K, I don't 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, below, let me talk about how to configure CGI in IIS:

Open IIS Manager, open the website properties, go to the home directory option, click, configure, then enter a new dialog, click Add, add as follows:

Executable file: c: /usr/bin/perl.exe% s% s (actually is the address of the Perl file, then add two% s, there is space in the middle)

Extension: .cgi

Also add once:

Executable file: c: /usr/bin/perl.exe% s% s

Extension: .pl

Then, add a virtual directory, pay attention to:

First, the path is in your 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, huh, I will not be K.

It's finished, the configuration CGI is simple, if the heroes 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?

Standard less nonsense, starting in:

Before starting, there is a little nonsense:

Two different modes of PHP installation, 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 PHP to the directory you want, I am used to decompress to C: / PHP

Open 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 into 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 directory where your PHP is)

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. 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!

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

New Post(0)