Analysis on the configuration and management _php techniques of Apache server under Linux

Source: Internet
Author: User

One or two important catalogues:
Apache has two important directories: 1, configuration directory/etc/httpd/conf;2, document directory/var/www:

Two modes of configuration:
Apache's two configuration modes under Fedora: Text mode (Terminal command line) and graphical configuration. Both have advantages: graphical configuration, easier to start, in the text mode directly edit httpd.conf file, more free, more direct.

Launch and shutdown of Apache service
The stop, start, and shutdown of the Apache service can be done in two modes: text (terminal) mode and graphical interface.

Iv. operation under the terminal
If you want to use Linux as a WWW server, I recommend that you do not install the graphical interface (ie, Xwindow, KDE or GNOME desktop), obviously do not install these programs, will significantly improve the performance of the system, easy to operate and beautiful interface is to pay the price. I think the essence of Linux is the richness of the command line. Linux commands can complete all tasks.

1, the Apache start, restart, stop service:
CD/ETC/INIT.D command to switch to the/ETC/INIT.D directory, run the following command:
./httpdstart//Start the Apache service
./httpdrestart//Restart the Apache service
./httpdstop//Stop Apache Service
Boot up the Apache service automatically
Cd/sbin command switch to/sbin directory, run chkconfig command, parameters:./chkconfig--level5httpdon
/chkconfig--list can check whether the httpd boot automatically, if 5: Start, indicates that the boot automatically start.

2, configure the
cd/etc/httpd/conf command to switch to the directory/etc/httpd/conf, open with the VI editor, Edit httpd.conf configuration, before configuring, in order to prevent the configuration error, first back up the httpd.conf.
in the httpd.conf file, #后面为注释部分 to help us configure.
once again to emphasize the Linux command tool is very powerful, learn Linux must learn its command line tools, only learned these commands, just mastered the essence of Linux! I am on the Internet to share and learn from each other.

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.