Linix / Centos Experts? - Problem Installing "mod_pagespeed" on Centos 6.6

I have been trying to install (google) mod_pagespeed on my Centos 6.6 server

Numerous problems.

I have run:

When I attempt to run the following command.....
rpm -U mod-pagespeed-*.rpm

I get the following error:
error: Failed dependencies:
      httpd >= 2.2 is needed by mod-pagespeed-stable-

Anyone with experience that can help... please ask for whatever further info might help.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The message is essentially telling you that your version of apache does not support that module -- that you need to upgrade apache first.  Open a terminal and type:
httpd -v

and you should see what version you currently have installed.  See if you there is a later version available:
yum list available | grep httpd

If you are on a test server, and you want to upgrade, then try:
yum update httpd

arthur_raft2Author Commented:
Hey, thanks Hielo - I recall you, you are a legend here.


/$ httpd -v
Server version: Apache/2.2.29 (Unix)
Server built:   Jul 22 2015 14:54:10
Cpanel::Easy::Apache v3.30.3 rev9999


/$ yum list available | grep httpd
libmicrohttpd.i686                        0.9.33-4.el6                   base  
libmicrohttpd.x86_64                      0.9.33-4.el6                   base  
libmicrohttpd-devel.i686                  0.9.33-4.el6                   base  
libmicrohttpd-devel.x86_64                0.9.33-4.el6                   base  
libmicrohttpd-doc.noarch                  0.9.33-4.el6                   base

I have followed numerous "installation" steps for mod_pagespeed... roadblocks with all.

When I attempt to run EasyApache, the mod_pagespeed option is visible - See below.

However, when running EasyApache, I get errors - See the log/text file attached.

would be awsome if you could help.
Arthur!  I remember you too.  You had a problem feeding data from a database for a chart plugin of sorts.

As for your problem, some digging led me to:

You did mention cPanel, so follow the cPanel based installation.  I don't have cPanel so I won't be able to replicate your environment. Hopefully that will remedy your problem it is something that has come up before, hence the suggestions.

Login to your shell terminal as root, then use git to clone the installation script into your cPanel server.

$> /usr/local/cpanel/3rdparty/bin/git clone /tmp/pagespeed/

$> cd /tmp/pagespeed/Easy
$> tar -zcvf pagespeed
$> mkdir -p /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy
$> mv -t /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/
$> cd && rm -rf /tmp/pagespeed

Now 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!


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Just use "yum install" instead of rpm -U ?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.