RHEL 7 Apache MPM Configuration

Source: Internet
Author: User

RHEL 7 Apache MPM Configuration

RHEL 7 Apache MPM Configuration

1. Installing apache and php is simple. I can use yum to install apache and php.

Yum groupinstall "Basic Web Server"

Yum install php
2. You can view the currently used modules through httpd-V. Now MPM is shared object, and it is no longer like httpd-l.
3. The separate MPM configuration file is/etc/httpd/conf. modules. d/00-mpm.conf, But I configure

LoadModule mpm_worker_module modules/mod_mpm_worker.so
An error is returned when you restart httpd. Be sure to comment out the bottom two lines of/etc/httpd/conf. d/php. conf.

# Php_value session. save_handler "files"

# Php_value session. save_path "/var/lib/php/session"

4. restart httpd. systemctl restart httpd.

5. Check httpd-V again to see that the Server MPM is a worker.

6. enable server-status. I wrote allow ALL in this way, which is not safe. Only Intranet access is allowed.

# Enable server-status

<Location/server-status>
SetHandler server-status

Order Allow, Deny
Allow from all
</Location>

Install a Web Server on Ubuntu Server 14.04 (Linux + Apache + MySQL + PHP)

Install and configure the PHP environment in Linux (Apache2)

Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04

Compile and install LAMP in CentOS 5.9 (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12)

Source code for Web server architecture in RedHat 5.4 build the LAMP environment and application PHPWind

Apache details: click here
Apache: click here

This article permanently updates the link address:

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.