Rather simple.... you can't.
Shared hosting even with SSH enabled does not give the necessary permissions to install new server-side processes because your actions could affect their security or the performance of the server that will ultimate affect everyone on it. The SSH provided to you as apart of cPanel for non-administrators is for administrating of files and folders, e.g:
vi access.log
viewing logschmod
: changing file and directory permissionswget
: downloading remote filestar, unzip
decompressing filesmkdir
creating directoriesrm
removing files or directories
It does not support su root
, sudo
, yum
or install
.
If you want to install mod_pagespeed or any other 3rd party module for Apache then you need to upgrade to a dedicated or virtual environment that allows such freedom of control ~ shared hosting is designed for simple hosting and not advanced server-side modification.