Collapse

Announcement

Collapse
No announcement yet.

Installing the mod_pagespeed on my cpanel server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Installing the mod_pagespeed on my cpanel server

    I am getting this error while installing the mod_pagespeed on my cpanel server.

    [root@sh29-413 24x7]# 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.7elTgp
    + umask 022
    + cd /root/rpmbuild/BUILD
    + wget -q -N -O mod-pagespeed-stable.rpm https://dl-ssl.google.com/dl/linux/d...ent_x86_64.rpm
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.xFuYK3
    + umask 022
    + cd /root/rpmbuild/BUILD
    + cpio -idmv
    + rpm2cpio mod-pagespeed-stable.rpm
    ./etc/cron.daily/mod-pagespeed
    ./etc/httpd/conf.d/pagespeed.conf
    ./etc/httpd/conf.d/pagespeed_libraries.conf
    ./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.nfqrfL
    + 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:
    File must begin with "/": %{_httpd_moddir}/*.so
    File must begin with "/": %{_httpd_modconfdir}/*.conf

  • #2
    You can try with creating a file '/etc/rpm/macros.apache2' name along with the following contents:-


    Code:
    %_httpd_mmn 20120211x8664
    %_httpd_apxs /usr/bin/apxs
    %_httpd_dir /etc/apache2
    %_httpd_bindir %{_httpd_dir}/bin
    %_httpd_modconfdir %{_httpd_dir}/conf.modules.d
    %_httpd_confdir %{_httpd_dir}/conf.d
    %_httpd_contentdir /usr/share/apache2
    %_httpd_moddir /usr/lib64/apache2/modules
    and then proceed to run the following commands.

    rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
    rpm -ivh /root/rpmbuild/RPMS/x86_64/ea-apache24-mod_pagespeed*.rpm

    You should not face any issue to install the mod-pagespeed on your cPanel server.

    Comment

    Working...
    X