1

大家好,我对安装 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 模块以加快我的网站速度。

4

1 回答 1

1

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

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

*打开putty.exe

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

*端口号 22 并点击打开

*以 root 身份登录

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

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

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

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

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-07-05T13:47:14.887 回答