Individual build ASP website, complete tutorial from beginning to start (i)

Source: Internet
Author: User
Tags file permissions

A complete handbook of personal website construction

Ayu for a long time did not give everyone to write things, but has always been, or constantly received emails from friends, ask Ayu some questions, care about the site, and to Ayu put forward a variety of suggestions, so that Ah Yu deeply moved. Therefore, wrote the following things to everyone, hope to have some useful to friends.

I. The objectives and planning of the construction station

Remember when Ayu started doing web pages in 98, do are some static HTML pages, but soon found this way to update the page is particularly inconvenient, so, then wrote a set of backstage system, made a database of the website, after so many years of development, this set of procedures have been relatively perfect. Therefore, our goal is to do a maintenance convenient, powerful, beautiful interface, strong scalability, and easy to operate the site.

Well, with this goal, we are based on this goal to select the technology used in the site, the current common web programming technology is nothing more than CGI, ASP, PHP, JSP and ASP.net, comprehensive consideration, ASP run in the Windows system operating systems, Setup, installation is relatively simple, at the same time, We can also learn about ASP on our own machines, it seems that we use ASP, followed by mobile, there will not be too much error; then we consider the database system to be used, and ASP with the database system is usually a good SQL and access,sql performance, but the installation and debugging is more complex, If it's rent space, the cost is still relatively high, not suitable for us to use, although the Access library performance slightly worse, but the experiment proved that in the database is not more than 50MB, performance can make us satisfied, while renting space without additional billing, so for the individual, is again suitable.

After selecting the above two items, we are going to pick the right host, now the space business is really a lot, because of fierce competition, the price is generally not very high to 100MB of space for example, the price from 300 yuan to more than 1000 yuan have, we only have their eyes wide open to choose a reasonable price, fast and stable space, But in the middle, pay attention to the following questions:

1 to use Win2K, and support ASP's host.

2 requires support for Access databases, note that some space prices are low, do not support access databases, or require additional charges.

3 Requirements to support write file permissions, a I found that some host does not support writing files, this is very important oh, otherwise the database can not be updated, unable to upload files, even the counter can not work.

4 require a single file size unrestricted, some hosts limit the size of a single file can not be greater than 2MB, this space, as the content of the site increased, the database is increasing, then can not meet our requirements.

5 It is best to support the FSO component, and the CDONTS component, before it is used to read and write text files, which are used to send messages. Some hosts do not support these two components either.

Write this a lot of requirements, may pick the host is still difficult to pick, because the host provider generally will not write his host support FSO and CDONTS, and I found that some of the host Chamber does not support some functions, it is a very troublesome thing. Then there is a large host business fees are often very high, and small companies, although the low fees, but do not dare to ensure that their company will provide long-term services, there are more opportunities for technical problems, always let people not at ease. There is no way to solve it. The way is to set up their own host.

This may sound like an incredible thing to do, but follow Ayu, and soon you'll be on your own Web server, opening your own station.

Just Ayu ate dinner, watched TV, and continue to write how to build a Web server, here we take Win2K as an example, if the server version of the Win2K, installed after the installation of IIS, if not installed IIS, we can in the control panel through the " Add Remove Program-windows Component-intrenet Service (IIS) before you hook up to install this service, in the IIS installation option, there is a fontpage server extension is not recommended to install, anyway my never pretend, because it will give you some useless files, It will also make you look for files when the nonsense file can not be found, in the disk save you and so on trouble. Install IIS and then install the Win2K SP3 (download address: http://download.microsoft.com/download/win2000platform/SP/SP3/NT5/CN/ W2Ksp3.exe), so that the site security a little more protection, good, now the server software installed almost, you can try your machine is not normal operation of ASP, how to try it. Copy the following code into a file called "Default.asp", and the code is simply one line, which is:

<%= "Hello, your machine can run the ASP very well"%>

All right, then copy this file to the C:/inetpub/wwwroot directory, and then in the IE address input: http://****, here is the * * * is your machine IP, if you do not know the IP of the machine, you can use HTTP://127.0.0.1, If you see the above words, it indicates that your server has been installed, if you do not see, there is a problem with IIS, you need to reinstall.

Next we have to explain the IIS settings, into the Control Panel-management Tools-internet Service Manager, here is the IIS settings, and then click on the Default Web site, and then point to the properties, access to IIS settings, where the common settings are two, first, We'll add: index.htm index.asp because many of the program's main files are index.asp, but they are not added to IIS. The other is the home directory, which may be modified later.

So far, the mainframe has been basically set up, if you are in the Wwwroot directory to decentralize your website files, others can enter your IP address and access to your site, but this has a lot of trouble, now may be many friends with ADSL or other means of Internet users, and do not have a fixed IP address, This will bring great inconvenience to visitors, but we can change this inconvenience through dynamic IP, static domain name technology. Now there are a lot of websites that offer this technology, their basic principle is to apply for a two-level domain name on this site, and then install a client software on the local machine, each time the client software will send the IP of the local computer to the server so that the level two domain name points to your computer IP. In these sites, I would like to recommend http://www.oray.net/because I think their service is more stable, although it is a free service, but the attitude is very good, every time you call, you can get the answer to the phone Mr. Very detailed. We go to http://www.oray.net/to apply for an account number, at the same time to apply for a two-level domain name, such as mine is: http://e-fish.vicp.net, install the client software, then if you enter your level two domain name can not access your machine, Then you can first try to enter your machine IP address on the Internet, see if you can access your homepage, if the line, indicating that your IIS is working properly, you have to http://www.oray.net/to see if your domain name is active, or look at the Help on this site, You can also go to their forums to ask questions and find solutions. Here, the host set is done, our personal host will be erected.

Host rack Well, our site is still empty, without any content, how do we build this site?

Next, I will introduce to you if building this website

Well, first write here, and then continue, to see what the host of their own frame is like it. Please come to: http://e-fish.vicp.net This is also to give everyone the website management program demo yo. Also please visit HTTP://WWW.ZYDN.NET's website and contact Email:info@zydn.net qq:8692589

Related Article

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.