Storage location of each file after installing Apache Web Server in yum

Source: Internet
Author: User

Storage location of each file after installing Apache Web Server in yum
Install apache Software with yum: After yum-y install httpd is installed, you can view the process and installation path of yum installation software. First understand YUM: Based on RPM package management, it can download and automatically install RPM packages from a specified server, and automatically process dependencies, install all dependent packages at one time to avoid the trouble of manual installation (find resources, download, put them in the specified directory for installation; process dependencies and download dependency packages for installation) therefore, the yum installation is essentially based on RPM installation, so instructions on RPM query information are available. 1. after installing apache, use RPM to query all installation-related paths and files: [root @ localhost www] # rpm-ql httpd ---------------> query all directories and files for httpd installation, list many file directories and separate them (1 ). put the configuration file in/etc/httpd -----------> the configuration file root directory/etc/httpd/conf. d/etc/httpd/conf. d/README/etc/httpd/conf. d/proxy_ajp.conf/etc/httpd/conf. d/welcome. conf/etc/httpd/conf/httpd. conf/etc/httpd/conf/magic/etc/httpd/logs/etc/httpd/modules/etc/httpd/run/etc/logrota Te. d/httpd/etc/rc. d/init. d/httpd/etc/sysconfig/httpd -------------> comment out the basic configuration information of httpd (2 by default ). all the installation programs of httpd are installed in the/usr directory and installed in different directories according to different parts. (1 ). the basic user commands used by httpd are stored in/usr/bin/AB/usr/bin/htdbm/usr/bin/htdigest/usr/bin/htpasswd/usr/ bin/logresolve (2 ). the modules and integrated function libraries to be called by the httpd program are stored in the/usr/lib directory/usr/lib/httpd ----------> httpd calls the function library and the root directory of the integration module/usr/lib/ httpd/modules/usr/lib/httpd/modules/mod_actions.so/usr/lib/httpd/modules/mod_alias.so ................. .............. /usr/lib/httpd/modules/mod_vhost_alias.so (3 ). all the system commands required by httpd are stored in the/usr/sbin/directory. /Usr/sbin/apachectl/usr/sbin/htcacheclean/usr/sbin/httpd. event/usr/sbin/httpd. worker/usr/sbin/httxt2dbm/usr/sbin/rotatelogs/usr/sbin/suexec (4 ). some of the shared files required by httpd are installed under the/usr/share directory/usr/share/doc/httpd-2.2.3/usr/share/doc/httpd-2.2.3/ABOUT_APACHE ...... .............. /usr/share/man/man8/suexec.8.gz (5 ). the data to be changed during running of the program is installed under the/var directory, and/var/cache/mod_proxy ------------> cache/v Ar/lib/dav/var/log/httpd ------------> log (6). As a web server, apache requires a directory for publishing web pages./var/www is a directory for storing web pages. ---> Httpd. the default directory DocumentRoot =/var/www/html/var/www -----------------> web server root directory/var/www/cgi-bin/var/www/error -----------> web files processed by server errors ............................. /var/www/error/noindex.html/var/www/html -------------> root directory of the web server static network/var/www/icons ---------------> default web server call (apache, tomcat) image/var/www/icons/README ............................ .......... /var/www/icons/world2.png 2. rpm-qa Httpd queries all the installation packages that contain the string httpdd in the installation package, and then uses this package to uninstall, update, and delete the [root @ localhost www] # rpm-qa httpdhttpd-2.2.3-45.el5.centos.13. the full name of the installation package for installing the httpd program in the rpm-q httpd Query System: [root @ localhost www] # rpm-q httpdhttpd-2.2.3-45.el5.centos.14. find the path of the installation package in the root directory with the find/-name httpd-2.2.3-45.el5.centos.1.

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.