Installation of Linux server by dummies (illustration) (1)

Source: Internet
Author: User

Iii. free and stable installation: Web server and FTP Server

Why should I use the Linux operating system as a network server? The answer is: high stability and low cost. A better solution is to build a stable and high-speed website with a Linux operating system and Apache server software.

TIPS: In April 1995, Apache (version 0.6.2) was released by Apache Group. ApacheGroup is a non-profit organization that operates completely over the Internet. It determines the standards of ApacheWeb servers. Apache is currently the world's top Web server. According to Netcraft's survey, more than 50% of the world's Web servers are using Apache.

1. Better than IIS: Install and start Apache server

Like IIS installed in Windows, the RedhatLinux server generally comes with an Apache server. If the software package is not installed, click system settings to add or delete an application. Then, the system checks the status of the system software package. Check the "World Wide Web server" option and click "details" to view many additional software packages associated with the server and select the related software packages. During installation, you can install these software packages. Of course, this includes the Apache server. It can be seen that the installation process is very similar to that of Windows Web servers such as IIS.

Step 2: Go Back To The Webmin Server Management page and click the first icon to go to the Apache server management page. Under the "server" icon, the following sub-menus are available: "module configuration", "application modification", "Stop/start Apache", and "search document ". The configuration page is divided into two parts: global configuration and virtual server configuration. 17.

Step 2: Open the "Network and address" icon under the global configuration, set the IP address and https address of the server after the "listener address and port" option, and enter the port, for example, 80, 443. You can also define or modify the port. After setting, click "save.

Step 2: If you need to add a virtual server, you can use the "Create a new virtual server" option on the main interface of the Apache server. Specify the address and port, click the button on the right of the "root file", select "/var/www/html", and enter a similar address in "server name, for example, "www. test. com1 ". The settings are complete.

Step 2: a virtual server is displayed below the default server, and the comment next to it shows the server details. Click the Virtual Server icon to go to its setting interface. 18.

In addition to Webmin configuration, you can also use the setting tool on RedhatLinux to modify the configuration. Open the "system settings" menu on the "application" menu in RedhatLinux, and select "HTTP" on "Server Settings". You can also modify the virtual host. The effect is the same. 19. Click the edit button to modify the properties of the VM. In addition, you can also perform operations such as server and performance adjustment.

Step 2: After the configuration is complete, click "start Apache" to open the page and perform the test.

# P #

2. Configure the dynamic program environment on Apache

Today, many e-commerce sites are almost all dynamic programs. Apache also provides support for PHP, CGI, and other programs. The following describes the PHP dynamic web page.

Step 2: Click system settings to go to add/delete applications. Then, the system checks the status of the system software package. Check the "World Wide Web server" option and click "details" to view many additional software packages associated with the PHP program. We recommend that you select and install all software packages related to PHP. 20.

Step 2: Set the/etc/httpd/conf. d/php. conf configuration file. After installing PHP, use the text editor to open the php. conf configuration file. You can also directly open the "Edit configuration file" icon in Apache service through Webmin and select/etc/httpd/conf. d/php. conf file, click the "Edit commands in the file" button to edit it (# is followed by a comment ). The modified file is as follows:

#

# PHP is an HTML-dded ting language which attempts to make it

# Easy for developers to write dynamically generatedwebpages.

# Call the PHP module. The Redhat Linux contains the PHP4 module libphp4.so for Apache.

LoadModule php4_module modules/libphp4.so

#

# Cause the PHP interpreter to handle files with a. phpextension.

#

SetOutputFileter PHP

SetInputFilter PHP

LimitRequestBody 524288

# AddType application/x-httpd-php-source. phps

#

# Add index. php to the list of files that will be servedasdirectory

# Indexes.

# Set the default directory document

DirectoryIndex index. php

Step 2: restart the httpd service. It is not enough to change the Apache configuration file. In this way, the PHP program still cannot run and/etc/php needs to be modified. in the INI file, set "register_globals = off" to "register_globals = On ". In this way, the PHP program can run.

3. One-Step installation: Redhat Linux FTP Server Installation

In RedhatLinux, vsftpd is installed in the default installation mode. The command for running vsftpd in text mode is "servicevsftpdstart ". You can also enable the Vsftpd service in graphic mode by following these steps: Go to system settings under the "Main Menu" and select "service" in "Server Settings ", pull the scroll bar and find the vsftpd option. Click start to start the vsftpd service. If the check box is selected, the vsftpd service is automatically run every time the Linux system is started. 21.

In this way, you can access the FTP server in various ways. Generally, you can access the instance by entering the default host address, user, and password. If the connection fails, consider the firewall on the Linux server. Currently, Wu-FTP and ProFTP are commonly used free FTP server software in Linux. Among them, ProFTP is very powerful, and more sites choose it to Build Secure and Efficient FTP sites. Interested readers can try, for: ftp://ftp.proftpd.net.


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.