Whm Litespeed pagespeed settings

#1
Dear All,
Yesterday I bought contabo vps, Whm/cpanel and litespeed license. I did some settings for pagespeed on whm and litespeed web server but on checking can not see pagespeed. Where is the problem I couldn't understand please help me. .... Ekran Alıntısı.JPG Ekran Alıntısı1.JPG Ekran Alıntısı2.JPG Ekran Alıntısı3.JPG
 
#3
Hi mehmetozbakir,
For cPanel environment, please follow this wiki for pagespeed setup with cPanel.
https://www.litespeedtech.com/suppo...peed#enabling_pagespeed_for_lsws_using_cpanel
What have you did is for non-control panel scenario.
Best,
I've been try many times but couldn't pass build error ;
Code:
Processing files: ea-apache24-mod_pagespeed-latest-stable.x86_64
error: File must begin with "/": %{_httpd_moddir}/*.so
error: File must begin with "/": %{_httpd_modconfdir}/*.conf
RPM build errors:
Code:
File must begin with "/": %{_httpd_moddir}/*.so
File must begin with "/": %{_httpd_modconfdir}/*.conf
Could you suggest solution.
 
Last edited by a moderator:
#4
Code:
[root@vmi188732 yum.repos.d]# rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.uehXJy
+ umask 022
+ cd /root/rpmbuild/BUILD
+ wget -q -N -O mod-pagespeed-stable.rpm https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cFFMZm
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rpm2cpio mod-pagespeed-stable.rpm
+ cpio -idmv
cpio: ./etc/cron.daily/mod-pagespeed not created: newer or same age version exists
./etc/cron.daily/mod-pagespeed
cpio: ./etc/httpd/conf.d/pagespeed.conf not created: newer or same age version exists
./etc/httpd/conf.d/pagespeed.conf
cpio: ./etc/httpd/conf.d/pagespeed_libraries.conf not created: newer or same age version exists
./etc/httpd/conf.d/pagespeed_libraries.conf
cpio: ./usr/bin/pagespeed_js_minify not created: newer or same age version exists
./usr/bin/pagespeed_js_minify
./usr/lib64/httpd/modules/mod_pagespeed.so
./usr/lib64/httpd/modules/mod_pagespeed_ap24.so
./var/cache/mod_pagespeed
./var/log/pagespeed
42497 blocks
+ mv usr/lib64/httpd/modules/mod_pagespeed.so usr/lib64/httpd/modules/mod_pagespeed_ap24.so .
+ /usr/bin/strip -g mod_pagespeed.so
+ /usr/bin/strip -g mod_pagespeed_ap24.so
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6M8Ywe
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64 '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
++ dirname /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT
+ mkdir /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
+ rm -rf /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
+ mkdir -p '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_moddir}'
+ install -m755 mod_pagespeed.so '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_moddir}/'
+ install -m755 mod_pagespeed_ap24.so '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_moddir}/'
+ mkdir -p '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_modconfdir}'
+ install -m 644 /root/rpmbuild/SOURCES/456_pagespeed.conf '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_modconfdir}/'
+ /usr/lib/rpm/check-buildroot
find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
+ /usr/lib/rpm/redhat/brp-compress
/usr/lib/rpm/redhat/brp-compress: line 8: cd: /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64: No such file or directory
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
Can't list /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
+ /usr/lib/rpm/redhat/brp-python-hardlink
find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
+ /usr/lib/rpm/redhat/brp-java-repack-jars
find: '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
Processing files: ea-apache24-mod_pagespeed-latest-stable.x86_64
error: File must begin with "/": %{_httpd_moddir}/*.so
error: File must begin with "/": %{_httpd_modconfdir}/*.conf
RPM build errors:
Code:
File must begin with "/": %{_httpd_moddir}/*.so
File must begin with "/": %{_httpd_modconfdir}/*.conf
 
Last edited by a moderator:

Unique_Eric

Administrator
Staff member
#9
Hi mehmetozbakir,
So you have finish the following steps already?
Code:
yum install rpm-build cpio ea-apache24-mod_version
wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
rpm -ivh /root/rpmbuild/RPMS/x86_64/ea-apache24-mod_pagespeed*.rpm
Dont forget to restart lsws by service lsws restart

May I ask how you check it works or not?
 
Last edited by a moderator:
#11
Hi mehmetozbakir,
So you have finish the following steps already?
yum install rpm-build cpio ea-apache24-mod_version
wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
rpm -ivh /root/rpmbuild/RPMS/x86_64/ea-apache24-mod_pagespeed*.rpm

Dont forget to restart lsws by service lsws restart

May I ask how you check it works or not?
Yes you right .. I checking with this page " https://ismodpagespeedworking.com/ "
 

Unique_Eric

Administrator
Staff member
#14
Hi mehmetozbakir,
So, you maybe saw this `x-ls-pagespeed: 2.1-1.11.33.4` from header already, which means pagespeed is working.

Google's mod_pagespeed tool adds one of two headers to HTTP responses, depending on whether the server is Apache or Nginx.
For Apache servers, it adds:
`X-Mod-Pagespeed`
And for Nginx servers:
`X-Page-Speed`
Maybe testing site just not Recognize the litespeed tag.

Best,
 
#15
Brother ,
Thanks for all your effort help. I guess did wrong something about cache system because website has been broken. Now I've start reinstal WHM with litespeed server. My last question are there any option to automatic install pagespeed ?
 
Top