DirectAdmin Add mod_pagespeed Accelerate Apache

Source: Internet
Author: User
Tags ssh

First, the acquisition module

The code is as follows Copy Code

wget http://soft.kwx.gd/module/mod-pagespeed-beta_current_i386.rpm #32位
wget http://soft.kwx.gd/module/mod-pagespeed-beta_current_x86_64.rpm #64位

Second, the implementation of installation

The code is as follows Copy Code

Rpm-i--nodeps mod-pagespeed-beta_current_*.rpm

SSH executes the above command by installing the module, prompting "package mod-pagespeed-beta-0.10.22.4-1633.i386 is already installed" to indicate that the installation was successful.

If prompted the following figure error, please refer to: "RPM installation or upgrade when the signature error resolution method"


Iii. modification of relevant documents


1. Edit httpd-includes.conf

The code is as follows Copy Code

Vim/etc/httpd/conf/extra/httpd-includes.conf

Edit httpd-includes.conf and add the following to call the Google Pagespeed module

The code is as follows Copy Code


#Google Pagespeed Module
Include/etc/httpd/conf.d/pagespeed.conf

2. Annotate the Httpd-deflate module with Apache

The code is as follows Copy Code

Vim/etc/httpd/conf/httpd.conf

Locate "Include conf/extra/httpd-deflate.conf", preceded by a "#" annotation, as shown below.


Four, restart Apache and check the status of the module


1, restart Apache

The code is as follows Copy Code

Service httpd Restart

2, check the module is effective

The code is as follows Copy Code

Apachectl-t-D Dump_modules | grep pagespeed

SSH executes the above command, and the following figure indicates that the module was successfully loaded.

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.