What does apache mean?

云罗郡主
Release: 2019-01-15 11:46:09
Original
25042 people have browsed it


What does apache mean?

1: What is Apache

Apache is an extraordinary Application software, it is the most widely used web server application in the world and holds more than 50% share of the commercial web server market. Apache is the most widely used web server application among Unix-like operating systems and can be used on almost all platforms, such as Windows, etc. Apache is the name taken from the Native American tribe 'Apache', known for its skills in warfare and strategy making.

Apache is a modular process-based web server application that creates a new thread with each simultaneous connection. It supports many features; many of them are compiled into separate modules and extend its core functionality, and can provide everything from server-side programming language support to authentication mechanisms. It allows a single Apache web server to serve many different websites .

Two: How to install Apache

There are many ways to install software packages or applications, the following is the installation procedure:

Open source web application One of the features of Apache is that anyone can make an installer based on their own environment. This allows various vendors such as Debian, Red Hat, FreeBSD, Suse, etc. to customize the file location and configuration of apache, taking into account other installed applications and basic operating system.

In addition to installing it from a vendor-based installer, there is always the option of building and installing from source. Installing Apache from source is a platform independent and available for all operating systems.

The apache web server is a modular application, and administrators can select the required features and install different modules according to their requirements. All modules can be compiled as dynamic shared objects and exist separately from the main apache file, we strongly recommend using the DSO method, it makes multiple tasks such as adding/removing/updating modules from the server configuration very simple.

Three: Install Apache on Linux platform:

Use rpm based on Linux distribution (RedHat Package Manager is a utility for installing applications on Linux systems ), i.e. Red Hat, Fedora, CentOs, Suse, you can install this application through vendor specific package managers or directly build rpm files from available source tarballs.

You can install Apache through the default package manager available on all Red Hat-based distributions such as CentOs, Red Hat, and Fedora.

[root @ amsterdam~] #yum install httpd
Copy after login

You can use the following command to convert the apache source tarball into an rpm file.

[root @ amsterdam~] #rpmbuild -tb httpd-2.4.x.tar.bz2
Copy after login

The -devel package must be installed on the server in order to create .rpm files from source code.

After converting the source file into an rpm installer, you can use the following command to install Apache.

[root @ amsterdam~] #rpm -ivh httpd-2.4.4-3.1.x86_64.rpm
Copy after login

The server will not start automatically after installation, in order to start the service you must use any of the following commands on Fedora, CentOs or Red Hat.

[root @ amsterdam~]#/ usr / sbin / apachectl start [root @ amsterdam~] #service httpd start [root @ amsterdam~]#/ etc / init.d / httpd start
Copy after login

Installing Apache from Source

Installing apache from source requires installing the -devel package on the server. You can find the latest Apache version, which you can download here. After downloading the source file, move it to the /usr/local/src folder.

[root @ amserversterdam~] cd / usr / local / src [root @ amserversterdam~] gzip -d httpd-2.2.26.tar.gz [root @ amserversterdam~] tar xvf httpd-2.2.26.tar [root @ amserversterdam~] httpd-2.2.26
Copy after login

To view all configuration options available for Apache, you can use the ./configure -help option. The most common configuration option is -prefix={install directory name}.

[root @ amserversterdam~] ./ configure --help [root @ amserversterdam~] ./ configure -prefix = / usr / local / apache -enable-so [root @ amserversterdam~] make [root @ amserversterdam~] make install
Copy after login

The above example shows using DSO functionality to compile Apache in the /usr/local/apache directory. The enable-so option can load the required modules into apache through the DSO mechanism at runtime without recompiling.

After the installation is complete, you can use your favorite browser to browse the web server default page. If a firewall is enabled on the server, you must make an exception for port 80 on the operating system firewall. You can use the following command to open port 80.

iptables -I INPUT -p tcp --dport 80 -j ACCEPT。
Copy after login

The above is a complete introduction to what Apache is. If you want to know more aboutLinux video tutorial, please pay attention to the php Chinese website.


The above is the detailed content of What does apache mean?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!