New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

Installing Brotli Module in Apache

Started by episani, May 01, 2019, 12:11:37 AM

Previous topic - Next topic

episani

I was able to successfully install the Brotli module in Apache.

Now I would like to find out to make these changes permanent. I'm just worried that in the next update all my changes will disappear and I might have to edit files all over again.

I tried to look in the documentation but I could only find information on Vhosts templates, which is ok for part of the changes but not for all the changes.

For example, when compiling I would like to add the flag "--enable-brotli" permanently and in the file /usr/local/apache/conf/httpd.conf I would like to have the following lines uncommented:

LoadModule deflate_module modules/mod_deflate.so
LoadModule brotli_module modules/mod_brotli.so

Is there a way of doing this so the changes are permanent even when recompiling new versions of Apache?



cu-olly

Hi,

Don't do it! Brotli is VERY BAD for performance! The compression ratio is improved compared to gzip, however the compression speed (i.e. how fast it can shrink say 100k into 10k) is QUADRUPLE that of gzip-6. That means, effectively, it takes FOUR times longer to send files from your web server to the end user.

Brotli works well for Google, who use Tilera accelerated CPUs to do the compression over lots of cores, but for everybody else using Nginx/Apache/Litespeed etc, stick to gzip.

In fact, if you want to get a speed improvement, you might consider dropping your gzip compression ratio from the default level of 6 down to 2. It sounds crazy because you're not compressing as low and therefore sending more data over the network, however the response time between gzip-6 and gzip-2 is almost halved.

Take a look at some Brotli benchmarks here: https://www.opencpu.org/posts/brotli-benchmarks/

In any case, to answer your question. If you did want to stick with Brotli, I'm afraid you'd have to reinstall the module every time you rebuild Apache using CWP.

ring_c

Quote from: cu-olly on May 01, 2019, 05:07:24 PM
In fact, if you want to get a speed improvement, you might consider dropping your gzip compression ratio from the default level of 6 down to 2. It sounds crazy because you're not compressing as low and therefore sending more data over the network, however the response time between gzip-6 and gzip-2 is almost halved.
How can I do that?
In my site (Wordpress) I use W3 Total Cache to enable gzip. Any idea how I can lower it to level 2? Actually, I didn't even know there were compression levels at all...

episani

Quote from: ring_c on May 02, 2019, 06:03:42 AM
Quote from: cu-olly on May 01, 2019, 05:07:24 PM
In fact, if you want to get a speed improvement, you might consider dropping your gzip compression ratio from the default level of 6 down to 2. It sounds crazy because you're not compressing as low and therefore sending more data over the network, however the response time between gzip-6 and gzip-2 is almost halved.
How can I do that?
In my site (Wordpress) I use W3 Total Cache to enable gzip. Any idea how I can lower it to level 2? Actually, I didn't even know there were compression levels at all...

Thanks for your great reply.

But even with gzip using mod_deflate, I'll still have the same problem I'm asking a solution for.

Everytime Apache gets recompiled I will have to uncomment

# LoadModule deflate_module modules/mod_deflate.so

Is there a way I can have an httpd.conf template?

Igor S.

Hi, just create /usr/local/apache/conf.d/deflate.conf with the code below:
LoadModule deflate_module modules/mod_deflate.so



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

Automata

PROBLEM SOLVED

Hi, i discovered a great website https://www.mysterydata.com/ with a great administrator where you can find many guides for CWP and more, also by registering for free on the forum i found the solution to this problem thanks to the courtesy and extreme availability of the administrator.

SOLUTION:

https://forum.mysterydata.com/topic/2/cwp-brotli-not-work-and-nginx-not-start-after-upgrade-of-cwp-pro-from-v0-9-8-906-to-cwp-pro-v0-9-8-907-even-with-the-last-update-to-cwp-pro-v0-9-8-913/7

Good day and good work to all !


« Stay hungry, stay foolish. »