Apache 在whm centos上安装mod page速度模块
大家好,我对安装mod page speed module有点困惑,因为我第一次做这个任务是非常新的 问题:-在哪里安装mod page speed模块。我有两个cpanel,因此需要首先从WHM go daddy或我的站点的常规cpanel开始精确安装Apache 在whm centos上安装mod page速度模块,apache,centos,whm,mod-pagespeed,Apache,Centos,Whm,Mod Pagespeed,大家好,我对安装mod page speed module有点困惑,因为我第一次做这个任务是非常新的 问题:-在哪里安装mod page speed模块。我有两个cpanel,因此需要首先从WHM go daddy或我的站点的常规cpanel开始精确安装 1) WHM go daddy 2) regular cpanel for my site 我有波纹管配置 1) Operating System:CentOS 5 2) Apache:- Server V
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模块以加快我的网站速度。您需要在whm上安装mod page speed,而不是在分配的域名上安装 *下载putty for ssh连接以安装页面速度模块 *打开putty.exe *输入主机名,如example.com *端口号22,然后单击打开 *以root用户身份登录 *输入密码(如果您获得拒绝访问的错误,请不要输入密码)允许使用您用于登录cpanel的其他用户名登录 ****使用其他用户名登录后,运行命令“su-” ****然后键入您的根密码 按照以下命令或链接中的说明进行操作 1) 命令:- CPanel WHM的mod_页面速度模块 使用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) 链接:-
安装后,运行bellow命令
运行命令“httpd-M”将告诉您是否安装了页面速度
现在您已经在whm上安装了Mod page速度模块