Set up a Web server in Linux by yourself (figure) 1

Source: Internet
Author: User
Tags php and mysql microsoft iis

In recent years, more and more cases have been applied to open-source Linux operating systems on servers. Its security, open-source, and free features have attracted more and more users. Out of my preferences for Linux, I also tried and tested Web servers in Linux for a long time. Last year, I started to build a 1u rack-mounted web server, hosted in the Dongguan telecom data center. At present, the web server has been running for more than a year, and its stability and performance are very good.
Many people say that it is not easy to configure a Linux server. It seems that installing a software package in command line mode is not conducive to troubleshooting and configuration of the software. In fact, as far as the author's experience is concerned, because there are a lot of Linux systems with different versions of the source installation packages, different hardware corresponds to different source packages, different Linux systems may have different ways to install the source package. Therefore, when installing and configuring Linux, you should learn more about the compatibility between your hardware and Linux.
Based on the reasons for the common learning, I carefully sorted out some installation steps and configuration experiences during the Linux server configuration process. Thanks to its good application foundation, we hope these will provide an application demonstration for Linux enthusiasts and beginners. This article targets centos 4. X or Redhat Enterprise Linux 4. X Platform Installation requires the configuration personnel to have a certain understanding of the Linux operating system, understand the basic tar commands and general system operations, such as file deletion, Directory Creation, movement, renaming, and basic use of the VI editor.
I. Preliminary ideas:
As a Web server, we need to comprehensively consider the maintenance and management of the server in the future. The complete Web server should provide the following functions: web server software; upload or download FTP functions, remote control management, and so on.
1. Web software for Linux servers:
As we all know, the most widely used web server software is that Apache and Microsoft IIS rank first in the market.
1. In the Linux environment, Apache is combined with PHP and MySQL databases to form a powerful web server lineup. The idea of the author is: centos4.1 operating system + apache2.0 + php5.0 + mysql5.0 sets up the entire web server.
2. To improve the performance of the PHP suite and accelerate the browsing and processing performance of dynamic web pages, install the PHP Optimization Component zendoptimizer.
3. To enable PHP to process images, such as automatically adding a logo to images uploaded on a webpage, the Linux server also supports GD libraries such as JPG, PNG, and GIF.
Through system consideration, we can have a clear understanding of the Web server combination KIT framework. The entire installation framework is as follows:
Centos4.1 operating system + apache2.0 + php5.0 + zendoptimizer3.0 + mysql5.0 + GD library
4. Software and kits involved Source code List:
Centos 4.x or Redhat Enterprise Linux 4.x Operating System
Mysql-max-5.0.21-linux-i686-glibc23.tar.gz (MySQL database source installation package)
Gdinstaller.tar.gz (GD library supports integrated package)
Httpd-2.2.4.tar.gz (Apache 2.0 Server software source installation package)
Php-5.2.1.tar.gz (PhP Dynamic Web source installation package)
ZendOptimizer-3.0.0-linux-glibc21-i386.tar.gz (zendoptimizer source installation package)
2. FTP service:
For Web servers hosted in telecom data centers, uploading and downloading specific FTP User Files must also be considered. In centos 4.x, Redhat Enterprise Linux 4.x, or other Linux operating systems, the FTP server software that comes with the system is highly praised by the industry. Here, I use the vsftpd server software that comes with centos 4.x, and select this software when installing the operating system, together with the system.
3. Remote Management:

Hosted Linux servers in different regions cannot allow users to perform local settings and adjustments as they operate on their home computers, therefore, you must consider using remote control tools to remotely manage remote servers.
In this regard, the Linux operating system's remote control tool for such applications: SSH software solves users' concerns about remote management!

1

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.