Apache installation notes in linux

Source: Internet
Author: User
Linux apache installation notes-Linux Enterprise Application-Linux server application information. The following is a detailed description. Install Apache2
Apache uses php in two ways: as a dynamic module, it can be loaded to the web server during running, or as a static module, which can be directly compiled into the web server code. For text, we focus on the first method.

To allow the Apache2.0 module to load php dynamically, the Apache server must be compiled with a Dynamic Shared Object (DSO, Dynamic Shared Object.

You can pass the -- enable-so parameter to Apache 2.
Tar-jxvf httpd-2.2.2.tar.bz2
Cd httpd-2.2.2
./Configure -- prefix =/usr/local/apache2 -- enable-so make & make install

// Do not add the -- with-mpm = worker option to support Zend Optimizer

This process sets, compiles, and installs the server to/usr/local.

Start the apache daemon:
/Usr/local/apache2/bin/apachectl start (enable start to stop and restart)

Open the browser and enter http: // localhost to view an apache welcome page. This indicates that apache2 has been successfully installed.

If a problem occurs in make install, the compiler or dynamic link library may be missing. You can reinstall the system to solve the problem.

The serverName In the conf file in the/usr/local/apache2/conf/directory can be changed to 127.0.0.1. If the apache service cannot be started.

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.