Recommended Free Tools
On a supported Ubuntu or Debian server, the native Apache installation is three commands: add the signed mod_pagespeed repository, install the mod-pagespeed package, and restart Apache. The package enables the module, installs /etc/apache2/mods-available/pagespeed.conf, and configures the companion optimizer worker. Supported package targets are Debian 12 or 13 and Ubuntu 22.04 or 24.04 running Apache 2.4 or newer.
Antihost offers Linux VPS plans with full root access, unlimited traffic on a 1 Gbps port and a 14-day free trial.
curl -fsSL https://packages.modpagespeed.com/install.sh | sudo sh
sudo apt-get install mod-pagespeed
sudo systemctl restart apache2
What mod_pagespeed is and what the package installs
mod_pagespeed 2.1 is split into two cooperating parts: an Apache module that runs in the web server and an optimizer worker that performs the heavier processing beside it. Apache receives a request, the module applies the enabled optimization filters, and the worker handles tasks such as rewriting and caching optimized resources. The Debian and Ubuntu package supplies the integration between those pieces, so you do not normally start or wire the worker by hand.
As an Amazon Associate I earn from qualifying purchases.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →The package also creates Apache configuration in /etc/apache2/mods-available/pagespeed.conf. That file contains the directives needed to load the module, turn processing on, and define a file-cache location. On Debian and Ubuntu, this is the main file to inspect when you need to confirm the installation or change defaults.
There is no single guaranteed speed percentage for every site. Results depend on page structure, cache state, origin latency, TLS, image formats, JavaScript, and the filters you enable. Treat the installation as an optimization framework that you measure on your own traffic, not as a promised benchmark.
#1 Best Overall
- [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
- [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
- [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
- [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
- [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
Check compatibility before installing
Use the native package only when the server matches the supported baseline documented for the current package series.
| Requirement | Supported baseline | Why it matters |
|---|---|---|
| Operating system | Debian 12 or Debian 13 | The signed repository publishes packages for these Debian releases. |
| Operating system | Ubuntu 22.04 or Ubuntu 24.04 | These Ubuntu releases are listed in the current prerequisite matrix. |
| Web server | Apache 2.4 or newer | The module must match the Apache API and module-loading model. |
| Privileges | Root or an account that can use sudo |
Adding an apt source, installing a package, and restarting Apache require administrative access. |
| Storage | A writable location for the PageSpeed file cache | The optimizer stores generated resources and metadata on disk. |
Confirm the operating system and Apache version
Run these checks before changing apt configuration:
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchcat /etc/os-release
apache2 -v
Read the PRETTY_NAME and VERSION_ID values from the first command. The second command should report Apache 2.4 or a later 2.4 release. If the server is an older distribution, an unsupported Apache build, or a different web server, stop and use an integration that is explicitly supported for that environment rather than forcing the Debian/Ubuntu package.
Check disk space and the cache location
PageSpeed needs a writable file cache. Before installation, check the filesystem that will hold it:
df -h
findmnt -no TARGET,OPTIONS /var/cache
The packaged configuration supplies a cache path. Confirm that the directory exists and that the Apache process can write to it after installation. A full filesystem, read-only mount, or restrictive ownership can make the module appear installed while preventing optimization work from completing.
Install the signed package on Ubuntu or Debian
1. Add the official apt repository
The supported installation starts with the vendor’s repository script:
curl -fsSL https://packages.modpagespeed.com/install.sh | sudo sh
The script configures the apt source and its signing key. The -f option makes curl fail on an HTTP error, -sS keeps normal output quiet while still showing errors, and -L follows redirects. Review the script output for the detected distribution and repository configuration. If curl is not installed, install it from your distribution’s existing repositories first, or download and inspect the script before executing it in an environment where your security policy requires review.
Do not mix repository definitions from different operating-system releases. A Debian source on Ubuntu, or a source for a release different from the host, can create dependency conflicts and an installation that apt cannot safely upgrade.
2. Install mod_pagespeed
Once the source has been added, install the package with apt:
Rank #2
- 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
- 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
- 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
- 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
- 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
sudo apt-get update
sudo apt-get install mod-pagespeed
The explicit apt-get update refreshes package metadata after the new source is added. The install step places the Apache module and the optimizer-worker components, enables the Apache integration, and drops the default configuration. Accepting the package’s dependencies is expected; rejecting them leaves the setup incomplete.
3. Restart Apache
Apply the newly installed module and configuration by restarting Apache:
sudo systemctl restart apache2
A restart is preferable to assuming that an already-running process has loaded the new module. Check the service immediately if systemd reports an error:
sudo systemctl status apache2 --no-pager
sudo journalctl -u apache2 -n 100 --no-pager
If Apache fails to start, do not repeatedly restart it. First validate the configuration and read the journal so you can correct the actual syntax, permission, or module-loading problem.
Review the Apache configuration
Open pagespeed.conf
On Debian and Ubuntu, inspect the package file here:
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →sudo less /etc/apache2/mods-available/pagespeed.conf
The minimum working setup consists of ModPagespeed on and a writable ModPagespeedFileCachePath. The packaged file already sets both, along with the directives that connect the Apache module to the optimizer worker. You therefore do not need a separate worker configuration just to get the default installation running.
Use a text editor with administrative privileges only when you have a specific change to make. Keep a copy of the vendor defaults before substantial edits:
sudo cp /etc/apache2/mods-available/pagespeed.conf /etc/apache2/mods-available/pagespeed.conf.backup
After editing, test syntax before restarting:
sudo apache2ctl configtest
A successful check reports Syntax OK. If it identifies a directive or path error, fix that error first. A restart with invalid configuration can take the entire web service offline.
Understand where directives apply
PageSpeed directives can be global or limited to an Apache context. Depending on what you are trying to protect or exclude, place them in the appropriate scope:
Rank #3
- [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
- [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
- [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
- [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
- [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
- Global server configuration: applies broadly to the Apache instance.
- Virtual host: affects one site while leaving other hosted domains unchanged.
<Directory>: targets files served from a filesystem directory.<Location>: targets a URL path..htaccess: works only where Apache allows overrides and can be useful when site owners cannot edit the virtual-host file.
For example, to disable processing for an administrative URL, place ModPagespeed off in an appropriate <Location> block. To exclude files under a filesystem tree, use a matching <Directory> block. Scope exceptions narrowly; disabling the module globally defeats the purpose of installing it and can make troubleshooting less informative.
Use a virtual-host exception safely
A common pattern is to leave the global default enabled while turning it off for a path that must remain byte-for-byte unchanged:
<VirtualHost *:80>
ServerName example.test
DocumentRoot /var/www/example
<Location /admin/>
ModPagespeed off
</Location>
</VirtualHost>
Replace the example host and path with values from your own configuration. After adding an exception, run sudo apache2ctl configtest and restart Apache only after the test passes. A URL-based <Location> rule and a filesystem-based <Directory> rule do not match the same things, so choose based on whether the exception is about the public URL or the underlying files.
Verify that mod_pagespeed is working
Check the response header
Request a page through the same hostname and protocol that visitors use, then inspect the headers:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
curl -I https://example.test/
Look for the X-Mod-Pagespeed response header. Its presence is the quickest indication that the request passed through the module. Test a real HTML page rather than only a static file or a health check that may be excluded by configuration. If a reverse proxy or CDN sits in front of Apache, make sure you are inspecting the origin response or that the proxy is not removing the header.
Observe cache MISS and HIT behavior
PageSpeed commonly needs an initial request to generate optimized resources. Fetch the same URL twice and inspect the headers each time:
curl -sSI https://example.test/ | grep -i -E 'x-mod-pagespeed|cache|pagespeed'
sleep 2
curl -sSI https://example.test/ | grep -i -E 'x-mod-pagespeed|cache|pagespeed'
The first request can show a cache MISS, while a later request can show a HIT after the optimizer has written the result. A MISS is not an installation failure; it is expected when an item has not been generated, has expired, or was invalidated. Compare requests for a page that actually contains optimizable assets and allow enough time for the worker to finish.
Use the PageSpeed-off comparison
To compare an individual request without optimization, append ?PageSpeed=off to the URL:
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchescurl -sSI 'https://example.test/?PageSpeed=off'
Compare the optimized and bypassed responses for the presence of the module header, rewritten resource URLs, cache indicators, and any application-specific headers. This query parameter is a diagnostic comparison, not a replacement for a carefully designed performance test. Do not use it as a permanent link in production templates.
Rank #4
- Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
- Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
- All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
- Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
- Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
Inspect the administrator interface and worker health
The installation exposes the /pagespeed_global_admin administration interface when it is enabled by the package configuration. Use it to inspect cache activity, filter status, and related operational information. Protect this path with the same access controls you apply to other administrative endpoints; it should not be casually exposed to the public internet.
When requests remain in MISS state or optimization stops, check the optimizer worker health endpoint described in the official configuration documentation. Confirm that the worker is reachable from the Apache module, that its process is running, and that the cache directory remains writable. The exact endpoint and access method can vary with the packaged configuration, so use the path shown by the installed file and the version-specific documentation rather than guessing a URL.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshoot common installation and runtime failures
The repository script fails
- Confirm outbound HTTPS access and DNS resolution from the server.
- Verify that the system clock is accurate enough for TLS certificate validation.
- Check that the distribution release is Debian 12/13 or Ubuntu 22.04/24.04.
- Read the script’s error output before retrying; a failed repository setup means apt should not be expected to find the package.
If your organization prohibits piping network content directly to a shell, download the script, inspect it, and execute it according to your security procedures. The repository still needs to be configured with its signing key so apt can verify packages.
Free tools Windows power users keep installed
One-click scans. No signup required.
apt cannot find mod-pagespeed
Run sudo apt-get update and inspect the apt source files created by the installer. Confirm that the source matches the host’s distribution and architecture and that apt did not disable it because of a signature or connectivity error. Installing an unrelated package with a similar name will not provide the Apache module.
Apache will not restart
- Run
sudo apache2ctl configtest. - Read
sudo journalctl -u apache2 -n 100 --no-pager. - Look for a misspelled directive, an invalid cache path, a missing module dependency, or a port already in use.
- Restore the last known-good configuration if a recent edit caused the failure, then test again.
Do not delete the package configuration as a first response. The error usually identifies the exact file and line that needs correction.
The header is missing
- Make sure the request reaches this Apache instance, not a CDN, load balancer, or different origin.
- Confirm that the request’s virtual host has not disabled PageSpeed in a
<Location>,<Directory>, or.htaccessrule. - Check that
ModPagespeed onis present in the effective configuration. - Restart Apache after changes and request a dynamic page again.
- Check whether an upstream proxy strips
X-Mod-Pagespeedbefore it reaches your client.
Everything remains a cache MISS
First, verify that the cache directory exists and is writable by the account Apache uses. Check disk space and filesystem mount options. Then inspect the administrator interface and worker health information. A constantly changing query string, frequent deployments, short cache lifetimes, or an excluded path can also prevent a stable HIT from appearing. Compare the same URL without changing its query parameters so that you are testing one cache key.
Only some sites or paths are optimized
This usually indicates configuration scope rather than a broken installation. Search the active virtual-host files and .htaccess files for ModPagespeed off or narrower rules. Remember that a <Location> path matches URLs while <Directory> matches filesystem paths; a rule in the wrong context may not affect the request you intended.
Choose the right deployment model
The native Apache package is not the only architecture, but it is the most direct choice when Apache is your origin web server and the host matches the supported matrix.
| Deployment choice | Best fit | Operational difference |
|---|---|---|
| Apache native module | Apache 2.4 on supported Debian or Ubuntu | The module runs in Apache, while the package manages the companion worker and default wiring. |
| Separate optimizer worker behind another server | Environments where Apache is not the public edge or where optimization is centralized | You must manage the proxy boundary, worker lifecycle, routing, and configuration separately. |
| nginx or reverse-proxy integration | Sites whose front end is nginx or another proxy rather than Apache | Configuration locations, request flow, and cache ownership differ from the Apache module model. |
The official material does not establish a performance winner among these choices. Select based on your web-server topology, supported versions, operational ownership, and where you want optimization rules to apply. If Apache serves the content directly, the native package avoids introducing an additional proxy hop merely to run the optimizer.
Best Value
Operate the installation safely
Protect administrative surfaces
Restrict /pagespeed_global_admin to trusted administrators through Apache access controls, a private network, or an upstream authentication layer. Treat worker health information as operational data, not a public application endpoint.
Plan cache storage
Monitor the filesystem containing ModPagespeedFileCachePath. Cache growth, log growth, and unrelated application files can compete for space. A full disk can cause failed writes and turn an otherwise healthy installation into a sequence of MISS responses. If you move the cache, create the destination with ownership and permissions that allow the Apache process to write, update the directive, run apache2ctl configtest, and restart.
Roll out changes gradually
Start with the packaged defaults on one virtual host or a low-risk site. Verify headers, MISS-to-HIT behavior, and application correctness before expanding the scope. If a filter causes a rendering or script problem, use a narrowly scoped exception while you investigate instead of switching the entire server off. Keep configuration changes in version control so that you can identify and reverse them.
Separate functional checks from speed measurements
Header and cache checks prove that the module is participating; they do not prove that pages are faster for every visitor. For a meaningful performance evaluation, compare the same URLs with equivalent cache states, network conditions, device classes, and backend load. Record whether compression, CDN caching, browser caching, and other optimizers are active. Because no authoritative universal percentage is published for this setup, report your own measured results with those conditions attached.
Uninstall or temporarily disable mod_pagespeed
Disable processing without removing the package
For a controlled diagnostic, set ModPagespeed off in the narrowest applicable context or use ?PageSpeed=off for one request. Validate and restart after a configuration change:
sudo apache2ctl configtest
sudo systemctl restart apache2
A scoped rule lets the rest of the server continue using PageSpeed while you isolate one site or path.
Remove the package
If you decide the module is not appropriate, remove it through apt rather than deleting files manually:
sudo apt-get remove mod-pagespeed
Review the package manager’s proposed changes before confirming. Removing the package can leave edited configuration or cache data behind, depending on how those files were changed. After removal, run sudo apache2ctl configtest and restart Apache, then verify that the X-Mod-Pagespeed header is no longer present on requests that previously used the module.
Quick Recap
Installation checklist
- The host is Debian 12/13 or Ubuntu 22.04/24.04.
- Apache is version 2.4 or newer.
- You have root or sudo access and enough writable disk space.
- The signed repository was added with the official install script.
mod-pagespeedwas installed with apt./etc/apache2/mods-available/pagespeed.confcontainsModPagespeed onand a writableModPagespeedFileCachePath.sudo apache2ctl configtestreturnsSyntax OK.- Apache restarted successfully.
- A real page returns
X-Mod-Pagespeed. - Repeated requests show the expected cache transition, and
?PageSpeed=offprovides a clean comparison. - The global admin and worker health surfaces are restricted to authorized users.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




