嗨,每个人,我有点困惑,关于安装mod页面速度模块,因为我是非常新的做这个任务,第一次。
问题:-在哪里安装mod页面速度模块。我有两个cpanel,所以在哪里需要首先开始安装是WHM去爸爸或我的网站常规的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页面速度模块,以加快我的wesite。
发布于 2014-07-05 13:47:14
您需要在whm上安装mod页面速度,而不是在分配给cpanel的域名上。
*下载putty连接以安装页面速度模块。
*开放putty.exe
*输入主机名,如example.com
* 22端口并单击“打开”
*以root身份登录
*输入密码(如果您被拒绝访问错误,请不要使用woory),让您使用其他用户名登录cpanel
*登录后,使用用户名运行命令“su -”。
*然后键入根密码。
按照下面命令或链接的指示执行。
( 1)命令:-
用于mod_pagespeed WHM的CPanel模块
使用CPanel轻松框架为CPanel WHM定制模块--允许通过命令行/scripts/easyapache或通过web控制台轻松安装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 filters2)链接:- pagespeed/
安装后运行以下命令。
运行命令“httpd -M”会告诉您是否安装了页面速度。
现在您已经在whm上安装了Mod页面速度模块。
https://stackoverflow.com/questions/24366649
复制相似问题