Google PageSpeed modules are a free collection of Apache web server modules which are designed to optimize a website's performance. Learn how to install and enable Google PageSpeed modules on a Cloud Server with Linux.
The PageSpeed modules are designed to work with Google PageSpeed Insights which detects and rates a website's performance on a scale of 1 (bad) to 100 (perfect).
Requirements A Cloud Server with Linux (CentOS 7 or Ubuntu 16.04) Apache installed and running Note: Apache is installed and running on a Standard Linux installation by default. If your server was created with a Minimum installation, you will need to install and configure Apache before you proceed.
Install Google PageSpeed Modules on Ubuntu 16.04 First, update the server's packages:
sudo apt-get updatemixed Download the PageSpeed modules:
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.debmixed Install Google PageSpeed:
sudo dpkg -i mod-pagespeed-*.debmixed Resolve any dependency problems:
sudo apt-get -f installmixed Restart Apache for the changes to take effect:
sudo systemctl restart apache2mixed Install Google PageSpeed Modules on CentOS 7 First, update the server's packages:
sudo yum update mixed Download the PageSpeed modules:
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpmmixed Install Google PageSpeed:
sudo rpm -U mod-pagespeed-stable_current_x86_64.rpmmixed Restart Apache for the changes to take effect:
sudo systemctl restart httpdmixed Turn on the PageSpeed Modules Now that PageSpeed is installed, it will need to be enabled. Open the PageSpeed configuration file for editing:
Ubuntu 16.04:sudo nano /etc/apache2/mods-available/pagespeed.conf CentOS 7:sudo nano /etc/httpd/conf.d/pagespeed.conf Add the following line to the top of the file:
ModPagespeed onmixed Save and exit the file. Then restart Apache for the changes to take effect:
Ubuntu 16.04:sudo systemctl restart apache2 CentOS 7:sudo systemctl restart httpd If you wish to turn PageSpeed off, open the pagespeed.conf file for editing again and change the first line to:
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?