Google released an open source Apache module to simplify the optimization of your content. The module, mod_pagespeed, will do all sorts of magic like minify your JS/CSS and optimize images, and a handful of other optimizations that seem (from limited testing) to improve your servers performance considerably.
First see how your site is doing right now, when you are done with the mod_pagespeed installation you can do another test to see if you have improved. Go to https://developers.google.com/speed/pagespeed/insights and check your score and remember it!
So if you want to install mod_pagespeed, follow this procedure (64-bit):
cd ~ yum install at wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm We have to install it with dependency check disabled, because with DirectAdmin httpd is installed from source:
rpm -i --nodeps mod-pagespeed-stable_current_x86_64.rpm Now we have to edit some files.
Open file: /etc/httpd/conf/extra/httpd-includes.conf and add this line:
#Google PageSpeed Module Include /etc/httpd/conf.d/pagespeed.conf Open file: /etc/httpd/conf/httpd.conf and remove this line or comment it:
Include conf/extra/httpd-deflate.conf If you’d like to change the options for PageSpeed, it’s configuration file is located in /etc/httpd/conf.d/pagespeed.conf.
Once everything is set, we’ll need to restart Apache and test to see if the module loaded properly:
service httpd restart and
apachectl -t -D DUMP_MODULES Check if you see “pagespeed_module (shared)” loaded.
Mod Pagespeed is loaded Mod_Pagespeed is loaded
Now check if your site has indeed speeded up.
You should also check any .htaccess files you may use and remove any instances of ‘setoutputfilter’ as this will probably override what mod_pagespeed is doing.
There you have it! Load up a copy of FireFox with the PageSpeed installed and check out how your score has improved. In my case, with all other caching disabled, I went from a score of 67 to an 84. Not a bad improvement if you ask me!
Etes-vous sûr que vous voulez supprimer ce message ?
Le fil a été ajouté avec succès à votre chronologie!
Commentaire signalé avec succès.
Le message a été ajouté avec succès à votre calendrier!
Vous avez atteint la limite de vos amis 5000!
Erreur de taille de fichier: le fichier dépasse autorisé la limite ({image_fichier}) et ne peut pas être téléchargé.
Votre vidéo est en cours de traitement, nous vous ferons savoir quand il est prêt à voir.
Impossible de télécharger un fichier : ce type de fichier n'est pas pris en charge.
Nous avons détecté du contenu réservé aux adultes sur l'image que vous avez téléchargée. Par conséquent, nous avons refusé votre processus de téléchargement.
Partager un post sur un groupe
Partager sur une page
Partager avec l'utilisateur
Votre message a été envoyé, nous examinerons bientôt votre contenu.
Pour télécharger des images, des vidéos et des fichiers audio, vous devez passer à un membre pro. Passer à Pro
Modifier loffre
Ajouter un niveau
Supprimer votre niveau
Êtes-vous sûr de vouloir supprimer ce niveau?
Avis
Afin de vendre votre contenu et vos publications, commencez par créer quelques packages. Monétisation
Payer par portefeuille
Ajouter un paquet
Supprimer votre adresse
Êtes-vous sûr de vouloir supprimer cette adresse?
Supprimez votre package de monétisation
Êtes-vous sûr de vouloir supprimer ce package ?
Se désabonner
Etes-vous sûr de vouloir vous désabonner de cet utilisateur ? Gardez à l’esprit que vous ne pourrez voir aucun de leur contenu monétisé.
Alerte de paiement
Vous êtes sur le point d'acheter les articles, voulez-vous continuer?