【问题标题】:Install mod page speed module on whm centos在 whm centos 上安装 mod 页面速度模块
【发布时间】:2017-10-17 15:39:40
【问题描述】:

大家好,我对安装 mod 页面速度模块有点困惑,因为我是第一次做这个任务的新手。

问题:- 在哪里安装 mod 页面速度模块。我有两个 cpanel,所以首先需要从哪里开始精确安装是 WHM go daddy 或我网站的常规 cpanel。

    1) WHM go daddy  
    2) regular cpanel for my site

我有下面的配置

    1) Operating System:CentOS 5
    2) Apache:- Server Version: Apache/2.0.63 (Unix) 

那么我该如何开始安装 mod page speed 模块来加速我的网站。

【问题讨论】:

    标签: apache centos whm mod-pagespeed


    【解决方案1】:

    您需要在 whm 上安装 mod page speed,而不是在分配给 cpanel 的域名上。

    * 下载用于 ssh 连接的 putty 以安装页面速度模块。

    * 打开 putty.exe

    * 输入您的主机名,例如 example.com

    * 端口号 22 并点击打开

    * 以 root 身份登录

    * 输入密码(如果您收到拒绝访问错误,请不要担心)让您使用用于登录 cpanel 的其他用户名登录

    **** 使用其他用户名登录后运行命令“ su - ”。

    **** 然后输入您的 Root 密码。

    按照以下命令或链接中的说明进行操作。

    1) 命令:-

    CPanel WHM 的 mod_pagespeed 模块

    使用 CPanel Easy Framework 的 CPanel WHM 自定义模块 - 允许通过命令行上的 /scripts/easyapache 或 WHM Web 控制台的 easyapache 轻松安装 mod_pagespeed。 安装说明

    Clone the installation scripts onto your CPanel server:
    
    1) /usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git  /tmp/pagespeed/
    
    **Create Speed.pm.tar.gz**
    
     2)cd /tmp/pagespeed/Easy
     3)tar -zcvf Speed.pm.tar.gz pagespeed
     4)mkdir -p /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy
     5)mv Speed.pm Speed.pm.tar.gz -t /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/
     6)cd && rm -rf /tmp/pagespeed
    Login into your cPanel WHM > EasyApache and look for "mod_pagespeed" option. Alternatively, you can run the easyapache installer from command line (/scripts/easyapache). Rebuild the Apache server, reboot it, and you're good to go!
    

    配置 mod_pagespeed

    安装脚本会将默认的 pagespeed.conf 文件复制到服务器上的 /usr/local/apache/conf/ 中。请参考以下页面来定制您的配置:

    mod_pagespeed module configuration
    configuring mod_pagespeed filters
    

    2) 链接:-http://www.prajith.in/update-mod_pagespeed/

    安装后运行以下命令。

    运行命令“httpd -M”会告诉你页面速度是否安装。

    现在你已经在 whm 上安装了 Mod 页面速度模块。

    【讨论】:

      猜你喜欢
      • 2014-09-20
      • 2015-03-26
      • 1970-01-01
      • 1970-01-01
      • 2016-02-25
      • 2012-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多