Whm Litespeed pagespeed settings

Discussion in 'General' started by mehmetozbakir, Jun 18, 2018.

  1. mehmetozbakir

    mehmetozbakir Member

    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
     
  2. Unique_Eric

    Unique_Eric Administrator Staff Member

  3. mehmetozbakir

    mehmetozbakir Member

    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: Jun 19, 2018
  4. mehmetozbakir

    mehmetozbakir Member

    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: Jun 19, 2018
  5. mehmetozbakir

    mehmetozbakir Member

  6. Unique_Eric

    Unique_Eric Administrator Staff Member

    Why you keep buildingmanually? Are you running any system which not RPM/DEBIAN supported??
     
  7. mehmetozbakir

    mehmetozbakir Member

    No my system is Centos 7 with WHM licensed, Because I don't know how do it automatic.. :( What I reading on internet doing it.if are there any role to do automatic it will be perfect ..
     
  8. mehmetozbakir

    mehmetozbakir Member

  9. Unique_Eric

    Unique_Eric Administrator Staff Member

    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: Jun 19, 2018
  10. mehmetozbakir

    mehmetozbakir Member

    I see x-ls-speed but still modpagespeed not activeted.
     

    Attached Files:

  11. mehmetozbakir

    mehmetozbakir Member

    Yes you right .. I checking with this page " https://ismodpagespeedworking.com/ "
     
  12. mehmetozbakir

    mehmetozbakir Member

    Sorry Brother May I ask you many question because I'm not professional.
     
  13. mehmetozbakir

    mehmetozbakir Member

    For the testing server I just added this website to cpanel.
    https://mehmetozbakir.com/
     
    Last edited by a moderator: Jun 19, 2018
  14. Unique_Eric

    Unique_Eric Administrator Staff Member

    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. mehmetozbakir

    mehmetozbakir Member

    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 ?
     
  16. Unique_Eric

    Unique_Eric Administrator Staff Member

    Hi @mehmetozbakir,
    I just leave you a message through Slack, should be more faster to response your questions.
    Best,
     
  17. AndrewN

    AndrewN Member

    Unique_Eric likes this.

Share This Page