{
  "created": "2015-12-20T19:56:38Z",
  "hierarchy": [
    {
      "name": "ROOT",
      "type": "folder",
      "uri": "/ROOT"
    },
    {
      "name": "Mod-pagespeed Notes",
      "type": "article",
      "uri": "Mod-pagespeed_Notes"
    }
  ],
  "html": "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"/><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/><meta name=\"name\" content=\"Nikhil's Personal Wiki\"/><meta name=\"description\" content=\"Mod-pagespeed Notes – Nikhil's Personal Wiki\"/><meta name=\"author\" content=\"Nikhil Anand\"/><meta name=\"theme-color\" content=\"#ffe9a00\"/><meta property=\"og:title\" content=\"Nikhil's Personal Wiki\"/><meta property=\"og:description\" content=\"Mod-pagespeed Notes – Nikhil's Personal Wiki\"/><meta property=\"og:type\" content=\"website\"/><meta property=\"og:image\" content=\"/img/logo512.png\"/><meta property=\"og:site_name\" content=\"Nikhil's Personal Wiki\"/><link rel=\"og:image\" href=\"/img/logo512.png\"/><link rel=\"icon\" href=\"/img/favicon.png\"/><link rel=\"apple-touch-icon\" href=\"/img/logo192.png\"/><link rel=\"stylesheet\" href=\"/css/styles.css\"/><title>Mod-pagespeed Notes – Nikhil's Personal Wiki</title><script defer data-domain=\"wiki.nikhil.io\" src=\"https://plausible.io/js/plausible.js\"></script></head><body><noscript>👉 A few things won't work if you have JavaScript disabled.</noscript><div class=\"container article\"><header><nav><ul><li><a href=\"/archive\" class title=\"Archive\"><span>Archive</span></a></li><li><a href=\"/Home\" class title=\"Home\"><span>Home</span></a></li><li><a href=\"/random\" class title=\"See a random article\"><span>Random</span></a></li><li><a href=\"/Mod-pagespeed_Notes/raw.txt\" title=\"View Source\"><span>Raw</span></a></li><li><a href=\"/Mod-pagespeed_Notes/revisions\" class title=\"View revisions\"><span>Revisions</span></a></li><li><a href=\"/Mod-pagespeed_Notes/index.json\" title=\"View JSON Object\"><span>JSON</span></a></li></ul></nav></header><main><article><article-hierarchy><ul><li><a data-entity-type=\"folder\" href=\"/ROOT\" title=\"ROOT\">Root</a></li><li><a data-entity-type=\"article\" href=\"/Mod-pagespeed_Notes\" title=\"Mod-pagespeed Notes\">Mod-pagespeed Notes</a></li></ul></article-hierarchy><header><h1>Mod-pagespeed Notes</h1></header><article-content><p>In this guide, I&rsquo;ll be installing <code>mod_pagespeed</code> on a 64-bit CentOS 5.5 system. The host is <code>example.com</code>.</p>\n<h2 id=\"installation\">Installation</h2>\n<p>Grab <a href=\"http://code.google.com/speed/page-speed/download.html\">the most appropriate RPM</a> and install it.</p>\n<pre><code>rpm -ivh https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm\n</code></pre>\n<p>This is the RPM manifest on a 64-bit system:</p>\n<pre><code>/etc/cron.daily/mod-pagespeed\n/etc/httpd/conf.d/pagespeed.conf\n/usr/lib64/httpd/modules/mod_pagespeed.so\n/var/www/mod_pagespeed/cache\n/var/www/mod_pagespeed/files\n</code></pre>\n<h2 id=\"testing\">Testing</h2>\n<p>To check for a proper install, you can do two things:</p>\n<ul>\n<li>Check if the <code>/var/www/mod_pagespeed</code> directories are populated, or</li>\n<li>Use <code>curl</code> or <code>wget</code> to check for the appropriate header.</li>\n</ul>\n<h3 id=\"checking-headers\">Checking headers</h3>\n<p>Let&rsquo;s use <code>wget</code>:</p>\n<pre><code>wget -O - --server-response http://example.com/home/index.php &gt; /dev/null\n</code></pre>\n<p>Here&rsquo;s the response:</p>\n<pre><code>--2011-01-05 09:01:36--  http://example.com/home/index.php\nResolving example.com... 128.255.22.132\nConnecting to example.com|128.255.22.132|:80... connected.\nHTTP request sent, awaiting response...\n  HTTP/1.1 200 OK\n  Date: Wed, 05 Jan 2011 15:01:36 GMT\n  Server: Apache/2.2.3 (CentOS)\n  X-Powered-By: PHP/5.2.10\n  X-Mod-Pagespeed: 0.9.11.5-293\n  Vary: Accept-Encoding\n  Content-Length: 4657\n  Connection: close\n  Content-Type: text/html; charset=UTF-8\nLength: 4657 (4.5K) [text/html]\nSaving to: `STDOUT'\n\n100%[========================================&gt;] 4,657       --.-K/s   in 0s\n\n2011-01-05 09:01:36 (211 MB/s) - `-' saved [4657/4657]\n</code></pre>\n<p>The <code>X-Mod-Pagespeed</code> header should tell you that pagespeed is in action.</p>\n<h2 id=\"tweaking-pagespeed\">Tweaking Pagespeed</h2>\n<p>Pagespeed has 18 &lsquo;filters&rsquo; with which you can tweak for performance. For example, I can remove all HTML comments with this filter in <code>/etc/httpd/conf.d/pagespeed.conf</code></p>\n<pre><code>ModPagespeedEnableFilters remove_comments\n</code></pre>\n<p>To see a &ldquo;before-and-after&rdquo;, append <code>?ModPagespeed=off</code> to any page served up. <a href=\"http://www.modpagespeed.com/\">This page</a> does a good job of explaining other filters. You can also check the documentation.</p>\n<h3 id=\"viewing-statistics\">Viewing statistics</h3>\n<p>The <code>/etc/httpd/conf.d/pagespeed.conf</code> config defines <code>/mod_pagespeed_statistics</code> as a page where you can take a look at pagspeed&rsquo;s statistics.</p>\n<h2 id=\"sources\">Sources</h2>\n<ul>\n<li><a href=\"https://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm\">Installing mod_pagespeed on CentOS (cPanel/WHM)</a></li>\n</ul>\n</article-content></article></main><footer><p></p><ul><li>2,458 bytes</li><li>Created on Sunday, 20 December 2015 at 19:56 UTC</li><li>Modified on Thursday, 28 May 2026 at 13:06 UTC</li><br/><li><a href=\"https://github.com/afreeorange/wiki.nikhil.io.articles/edit/master/Mod-pagespeed Notes.md\" title=\"Edit this article\">Edit this article</a></li><li><a href=\"https://github.com/afreeorange/bock\" title=\"View the project that generates this wiki on Github\">bock 6.2.0-alpha</a></li></ul></footer></div><script type=\"text/javascript\">\n        document.body.addEventListener(\n          \"keypress\", (e) => e.key === \"f\"\n          ? window.location.assign(\"/archive\")\n          : null);\n      </script></body></html>",
  "id": "5453e2c1-ffb2-56e2-8a68-21348268c1c1",
  "modified": "2026-05-28T13:06:19Z",
  "revisions": [
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2026-05-28T13:06:19Z",
      "id": "e4d26ab5020b9e71cbd636e79315e94e00c348e4",
      "shortId": "e4d26ab5",
      "subject": "Formatting fixes -- Claude\n",
      "content": "In this guide, I'll be installing `mod_pagespeed` on a 64-bit CentOS 5.5 system. The host is `example.com`.\n\n## Installation\n\nGrab [the most appropriate RPM](http://code.google.com/speed/page-speed/download.html) and install it.\n\n    rpm -ivh https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm\n\nThis is the RPM manifest on a 64-bit system:\n\n    /etc/cron.daily/mod-pagespeed\n    /etc/httpd/conf.d/pagespeed.conf\n    /usr/lib64/httpd/modules/mod_pagespeed.so\n    /var/www/mod_pagespeed/cache\n    /var/www/mod_pagespeed/files\n\n## Testing\n\nTo check for a proper install, you can do two things:\n\n*   Check if the `/var/www/mod_pagespeed` directories are populated, or\n*   Use `curl` or `wget` to check for the appropriate header.\n\n### Checking headers\n\nLet's use `wget`:\n\n    wget -O - --server-response http://example.com/home/index.php > /dev/null\n\nHere's the response:\n\n    --2011-01-05 09:01:36--  http://example.com/home/index.php\n    Resolving example.com... 128.255.22.132\n    Connecting to example.com|128.255.22.132|:80... connected.\n    HTTP request sent, awaiting response...\n      HTTP/1.1 200 OK\n      Date: Wed, 05 Jan 2011 15:01:36 GMT\n      Server: Apache/2.2.3 (CentOS)\n      X-Powered-By: PHP/5.2.10\n      X-Mod-Pagespeed: 0.9.11.5-293\n      Vary: Accept-Encoding\n      Content-Length: 4657\n      Connection: close\n      Content-Type: text/html; charset=UTF-8\n    Length: 4657 (4.5K) [text/html]\n    Saving to: `STDOUT'\n\n    100%[========================================>] 4,657       --.-K/s   in 0s\n\n    2011-01-05 09:01:36 (211 MB/s) - `-' saved [4657/4657]\n\nThe `X-Mod-Pagespeed` header should tell you that pagespeed is in action.\n\n## Tweaking Pagespeed\n\nPagespeed has 18 'filters' with which you can tweak for performance. For example, I can remove all HTML comments with this filter in `/etc/httpd/conf.d/pagespeed.conf`\n\n    ModPagespeedEnableFilters remove_comments\n\nTo see a \"before-and-after\", append `?ModPagespeed=off` to any page served up. [This page](http://www.modpagespeed.com/) does a good job of explaining other filters. You can also check the documentation.\n\n### Viewing statistics\n\nThe `/etc/httpd/conf.d/pagespeed.conf` config defines `/mod_pagespeed_statistics` as a page where you can take a look at pagspeed's statistics.\n\n## Sources\n\n*   [Installing mod\\_pagespeed on CentOS (cPanel/WHM)](https://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm)\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2026-01-13T18:47:28Z",
      "id": "2436477560f26e23d00a24add1cbfeafdca4af78",
      "shortId": "24364775",
      "subject": "No compression\n",
      "content": "In this guide, I'll be installing `mod_pagespeed` on a 64-bit CentOS 5.5\nsystem. The host is `example.com`.\n\nInstallation\n------------\n\nGrab [the most appropriate RPM](http://code.google.com/speed/page-speed/download.html)\nand install it.\n\n    rpm -ivh https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm\n\nThis is the RPM manifest on a 64-bit system:\n\n    /etc/cron.daily/mod-pagespeed  \n    /etc/httpd/conf.d/pagespeed.conf  \n    /usr/lib64/httpd/modules/mod_pagespeed.so  \n    /var/www/mod_pagespeed/cache  \n    /var/www/mod_pagespeed/files\n\nTesting\n-------\n\nTo check for a proper install, you can do two things:\n\n*   Check if the `/var/www/mod_pagespeed` directories are populated, or\n*   Use `curl` or `wget` to check for the appropriate header.\n\n### Checking headers\n\nLet's use `wget`:\n\n    wget -O - --server-response http://example.com/home/index.php > /dev/null \n\nHere's the response:\n\n    --2011-01-05 09:01:36--  http://example.com/home/index.php\n    Resolving example.com... 128.255.22.132\n    Connecting to example.com|128.255.22.132|:80... connected.\n    HTTP request sent, awaiting response... \n      HTTP/1.1 200 OK\n      Date: Wed, 05 Jan 2011 15:01:36 GMT\n      Server: Apache/2.2.3 (CentOS)\n      X-Powered-By: PHP/5.2.10\n      X-Mod-Pagespeed: 0.9.11.5-293\n      Vary: Accept-Encoding\n      Content-Length: 4657\n      Connection: close\n      Content-Type: text/html; charset=UTF-8\n    Length: 4657 (4.5K) [text/html]\n    Saving to: `STDOUT'\n    \n    100%[========================================>] 4,657       --.-K/s   in 0s      \n    \n    2011-01-05 09:01:36 (211 MB/s) - `-' saved [4657/4657]\n\nThe `X-Mod-Pagespeed` header should tell you that pagespeed is in\naction.\n\nTweaking Pagespeed\n------------------\n\nPagespeed has 18 'filters' with which you can tweak for performance. For\nexample, I can remove all HTML comments with this filter in\n`/etc/httpd/conf.d/pagespeed.conf`\n\n    ModPagespeedEnableFilters remove_comments\n\nTo see a \"before-and-after\", append `?ModPagespeed=off` to any page\nserved up. [This page](http://www.modpagespeed.com/) does a good job of\nexplaining other filters. You can also check the documentation.\n\n### Viewing statistics\n\nThe `/etc/httpd/conf.d/pagespeed.conf` config defines\n`/mod_pagespeed_statistics` as a page where you can take a look at\npagspeed's statistics.\n\nSources\n-------\n\n*   [Installing mod\\_pagespeed on CentOS (cPanel/WHM)](https://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm)\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2015-12-27T07:27:56Z",
      "id": "1aa29105a45aa67523ffb61e73bcc415f935a47e",
      "shortId": "1aa29105",
      "subject": "Fix Markdown conversion\n\nSaw half a season of The Office\n",
      "content": "In this guide, I'll be installing `mod_pagespeed` on a 64-bit CentOS 5.5\nsystem. The host is `example.com`.\n\nInstallation\n------------\n\nGrab [the most appropriate RPM](http://code.google.com/speed/page-speed/download.html)\nand install it.\n\n    rpm -ivh https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm\n\nThis is the RPM manifest on a 64-bit system:\n\n    /etc/cron.daily/mod-pagespeed  \n    /etc/httpd/conf.d/pagespeed.conf  \n    /usr/lib64/httpd/modules/mod_pagespeed.so  \n    /var/www/mod_pagespeed/cache  \n    /var/www/mod_pagespeed/files\n\nTesting\n-------\n\nTo check for a proper install, you can do two things:\n\n*   Check if the `/var/www/mod_pagespeed` directories are populated, or\n*   Use `curl` or `wget` to check for the appropriate header.\n\n### Checking headers\n\nLet's use `wget`:\n\n    wget -O - --server-response http://example.com/home/index.php > /dev/null \n\nHere's the response:\n\n    --2011-01-05 09:01:36--  http://example.com/home/index.php\n    Resolving example.com... 128.255.22.132\n    Connecting to example.com|128.255.22.132|:80... connected.\n    HTTP request sent, awaiting response... \n      HTTP/1.1 200 OK\n      Date: Wed, 05 Jan 2011 15:01:36 GMT\n      Server: Apache/2.2.3 (CentOS)\n      X-Powered-By: PHP/5.2.10\n      X-Mod-Pagespeed: 0.9.11.5-293\n      Vary: Accept-Encoding\n      Content-Length: 4657\n      Connection: close\n      Content-Type: text/html; charset=UTF-8\n    Length: 4657 (4.5K) [text/html]\n    Saving to: `STDOUT'\n    \n    100%[========================================>] 4,657       --.-K/s   in 0s      \n    \n    2011-01-05 09:01:36 (211 MB/s) - `-' saved [4657/4657]\n\nThe `X-Mod-Pagespeed` header should tell you that pagespeed is in\naction.\n\nTweaking Pagespeed\n------------------\n\nPagespeed has 18 'filters' with which you can tweak for performance. For\nexample, I can remove all HTML comments with this filter in\n`/etc/httpd/conf.d/pagespeed.conf`\n\n    ModPagespeedEnableFilters remove_comments\n\nTo see a \"before-and-after\", append `?ModPagespeed=off` to any page\nserved up. [This page](http://www.modpagespeed.com/) does a good job of\nexplaining other filters. You can also check the documentation.\n\n### Viewing statistics\n\nThe `/etc/httpd/conf.d/pagespeed.conf` config defines\n`/mod_pagespeed_statistics` as a page where you can take a look at\npagspeed's statistics.\n\nSources\n-------\n\n*   [Installing mod\\_pagespeed on CentOS (cPanel/WHM)](https://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm)\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2015-12-21T02:30:47Z",
      "id": "d658e80d1ecb97b196531c7b15a0f9af709c05de",
      "shortId": "d658e80d",
      "subject": "Incremental\n",
      "content": "In this guide, I'll be installing `mod_pagespeed` on a 64-bit CentOS 5.5\nsystem. The host is `example.com`.\n\nInstallation\n------------\n\nGrab [the most appropriate\nRPM](http://code.google.com/speed/page-speed/download.html) and install\nit.\n\n` rpm -ivh `[`https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm`](https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm)\n\nThis is the RPM manifest on a 64-bit system:\n\n` /etc/cron.daily/mod-pagespeed`  \n` /etc/httpd/conf.d/pagespeed.conf`  \n` /usr/lib64/httpd/modules/mod_pagespeed.so`  \n` /var/www/mod_pagespeed/cache`  \n` /var/www/mod_pagespeed/files`\n\nTesting\n-------\n\nTo check for a proper install, you can do two things:\n\n-   Check if the `/var/www/mod_pagespeed` directories are populated, or\n-   Use `curl` or `wget` to check for the appropriate header.\n\n### Checking headers\n\nLet's use `wget`:\n\n` wget -O - --server-response `[`http://example.com/home/index.php`](http://example.com/home/index.php)` > /dev/null `\n\nHere's the response:\n\n` --2011-01-05 09:01:36--  `[`http://example.com/home/index.php`](http://example.com/home/index.php)  \n` Resolving example.com... 128.255.22.132`  \n` Connecting to example.com|128.255.22.132|:80... connected.`  \n` HTTP request sent, awaiting response... `  \n`   HTTP/1.1 200 OK`  \n`   Date: Wed, 05 Jan 2011 15:01:36 GMT`  \n`   Server: Apache/2.2.3 (CentOS)`  \n`   X-Powered-By: PHP/5.2.10`  \n`   `**`X-Mod-Pagespeed:` `0.9.11.5-293`**  \n`   Vary: Accept-Encoding`  \n`   Content-Length: 4657`  \n`   Connection: close`  \n`   Content-Type: text/html; charset=UTF-8`  \n` Length: 4657 (4.5K) [text/html]`  \n``  Saving to: `STDOUT' ``  \n` `  \n` 100%[========================================================================================>] 4,657       --.-K/s   in 0s      `  \n` `  \n``  2011-01-05 09:01:36 (211 MB/s) - `-' saved [4657/4657] ``\n\nThe `X-Mod-Pagespeed` header should tell you that pagespeed is in\naction.\n\nTweaking Pagespeed\n------------------\n\nPagespeed has 18 'filters' with which you can tweak for performance. For\nexample, I can remove all HTML comments with this filter in\n`/etc/httpd/conf.d/pagespeed.conf`\n\n`  ModPagespeedEnableFilters remove_comments`\n\nTo see a \"before-and-after\", append `?ModPagespeed=off` to any page\nserved up. [This page](http://www.modpagespeed.com/) does a good job of\nexplaining other filters. You can also check the documentation.\n\n### Viewing statistics\n\nThe `/etc/httpd/conf.d/pagespeed.conf` config defines\n`/mod_pagespeed_statistics` as a page where you can take a look at\npagspeed's statistics.\n\nSources\n-------\n\n-   [Installing mod\\_pagespeed on\n    CentOS (cPanel/WHM)](https://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm)\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2015-12-20T19:56:38Z",
      "id": "1252a05618b89bd26a74f3cd9331888312a9857f",
      "shortId": "1252a056",
      "subject": "Mod-pagespeed Notes : First Draft\n",
      "content": "In this guide, I'll be installing `mod_pagespeed` on a 64-bit CentOS 5.5\nsystem. The host is `example.com`.\n\nInstallation\n------------\n\nGrab [the most appropriate\nRPM](http://code.google.com/speed/page-speed/download.html) and install\nit.\n\n` rpm -ivh `[`https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm`](https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm)\n\nThis is the RPM manifest on a 64-bit system:\n\n` /etc/cron.daily/mod-pagespeed`  \n` /etc/httpd/conf.d/pagespeed.conf`  \n` /usr/lib64/httpd/modules/mod_pagespeed.so`  \n` /var/www/mod_pagespeed/cache`  \n` /var/www/mod_pagespeed/files`\n\nTesting\n-------\n\nTo check for a proper install, you can do two things:\n\n-   Check if the `/var/www/mod_pagespeed` directories are populated, or\n-   Use `curl` or `wget` to check for the appropriate header.\n\n### Checking headers\n\nLet's use `wget`:\n\n` wget -O - --server-response `[`http://example.com/home/index.php`](http://example.com/home/index.php)` > /dev/null `\n\nHere's the response:\n\n` --2011-01-05 09:01:36--  `[`http://example.com/home/index.php`](http://example.com/home/index.php)  \n` Resolving example.com... 128.255.22.132`  \n` Connecting to example.com|128.255.22.132|:80... connected.`  \n` HTTP request sent, awaiting response... `  \n`   HTTP/1.1 200 OK`  \n`   Date: Wed, 05 Jan 2011 15:01:36 GMT`  \n`   Server: Apache/2.2.3 (CentOS)`  \n`   X-Powered-By: PHP/5.2.10`  \n`   `**`X-Mod-Pagespeed:` `0.9.11.5-293`**  \n`   Vary: Accept-Encoding`  \n`   Content-Length: 4657`  \n`   Connection: close`  \n`   Content-Type: text/html; charset=UTF-8`  \n` Length: 4657 (4.5K) [text/html]`  \n``  Saving to: `STDOUT' ``  \n` `  \n` 100%[========================================================================================>] 4,657       --.-K/s   in 0s      `  \n` `  \n``  2011-01-05 09:01:36 (211 MB/s) - `-' saved [4657/4657] ``\n\nThe `X-Mod-Pagespeed` header should tell you that pagespeed is in\naction.\n\nTweaking Pagespeed\n------------------\n\nPagespeed has 18 'filters' with which you can tweak for performance. For\nexample, I can remove all HTML comments with this filter in\n`/etc/httpd/conf.d/pagespeed.conf`\n\n`  ModPagespeedEnableFilters remove_comments`\n\nTo see a \"before-and-after\", append `?ModPagespeed=off` to any page\nserved up. [This page](http://www.modpagespeed.com/) does a good job of\nexplaining other filters. You can also check the documentation.\n\n### Viewing statistics\n\nThe `/etc/httpd/conf.d/pagespeed.conf` config defines\n`/mod_pagespeed_statistics` as a page where you can take a look at\npagspeed's statistics.\n\nSources\n-------\n\n-   [Installing mod\\_pagespeed on\n    CentOS (cPanel/WHM)](https://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm)\n\n[Category:Nikhil's Notes](Category:Nikhil's_Notes \"wikilink\")\n[Category:Installation Logs](Category:Installation_Logs \"wikilink\")\n[Category:From a past sysadmin\nlife](Category:From_a_past_sysadmin_life \"wikilink\")\n"
    }
  ],
  "sizeInBytes": 2458,
  "source": "In this guide, I'll be installing `mod_pagespeed` on a 64-bit CentOS 5.5 system. The host is `example.com`.\n\n## Installation\n\nGrab [the most appropriate RPM](http://code.google.com/speed/page-speed/download.html) and install it.\n\n    rpm -ivh https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm\n\nThis is the RPM manifest on a 64-bit system:\n\n    /etc/cron.daily/mod-pagespeed\n    /etc/httpd/conf.d/pagespeed.conf\n    /usr/lib64/httpd/modules/mod_pagespeed.so\n    /var/www/mod_pagespeed/cache\n    /var/www/mod_pagespeed/files\n\n## Testing\n\nTo check for a proper install, you can do two things:\n\n*   Check if the `/var/www/mod_pagespeed` directories are populated, or\n*   Use `curl` or `wget` to check for the appropriate header.\n\n### Checking headers\n\nLet's use `wget`:\n\n    wget -O - --server-response http://example.com/home/index.php > /dev/null\n\nHere's the response:\n\n    --2011-01-05 09:01:36--  http://example.com/home/index.php\n    Resolving example.com... 128.255.22.132\n    Connecting to example.com|128.255.22.132|:80... connected.\n    HTTP request sent, awaiting response...\n      HTTP/1.1 200 OK\n      Date: Wed, 05 Jan 2011 15:01:36 GMT\n      Server: Apache/2.2.3 (CentOS)\n      X-Powered-By: PHP/5.2.10\n      X-Mod-Pagespeed: 0.9.11.5-293\n      Vary: Accept-Encoding\n      Content-Length: 4657\n      Connection: close\n      Content-Type: text/html; charset=UTF-8\n    Length: 4657 (4.5K) [text/html]\n    Saving to: `STDOUT'\n\n    100%[========================================>] 4,657       --.-K/s   in 0s\n\n    2011-01-05 09:01:36 (211 MB/s) - `-' saved [4657/4657]\n\nThe `X-Mod-Pagespeed` header should tell you that pagespeed is in action.\n\n## Tweaking Pagespeed\n\nPagespeed has 18 'filters' with which you can tweak for performance. For example, I can remove all HTML comments with this filter in `/etc/httpd/conf.d/pagespeed.conf`\n\n    ModPagespeedEnableFilters remove_comments\n\nTo see a \"before-and-after\", append `?ModPagespeed=off` to any page served up. [This page](http://www.modpagespeed.com/) does a good job of explaining other filters. You can also check the documentation.\n\n### Viewing statistics\n\nThe `/etc/httpd/conf.d/pagespeed.conf` config defines `/mod_pagespeed_statistics` as a page where you can take a look at pagspeed's statistics.\n\n## Sources\n\n*   [Installing mod\\_pagespeed on CentOS (cPanel/WHM)](https://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm)\n",
  "title": "Mod-pagespeed Notes",
  "untracked": false,
  "uri": "/Mod-pagespeed_Notes",
  "relativePath": "Mod-pagespeed Notes.md"
}
