Brotli support

Discussion in 'Installation/Configuration' started by Efex, May 9, 2018.

  1. Efex

    Efex Member

    How can enable Brotli support on my server?

    Ubuntu 16.04.1
    php 7.0.28
  2. ISPConfig Developer ISPConfig Developer

  3. Efex

    Efex Member

    Can you explain with ssh commands please?
  4. ISPConfig Developer ISPConfig Developer

    Honestly, I could - however this is not the kind of support I want to put my time into, basically copying 1:1 what's written on the linked sites.
    Do you need a general idea about what the two differecniates?
  5. Efex

    Efex Member

    I am getting this issue;

    [email protected]:/tmp/xdebug-2.4.0# sudo apt-get install brotli nginx nginx-module-brotli
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    nginx-module-brotli : Depends: nginx (= 1.13.8-2-ppa7~xenial)
    E: Unable to correct problems, you have held broken packages.
  6. ISPConfig Developer ISPConfig Developer

    please try
    sudo apt-get install -f
    sudo apt-get update
    then try again to install brotli. Same issue? What happens if you remove nginx first ( without purge option! )

    However I'd recommend compiling from source, if there's no more recent repo, since the upstream seems to be missing some updates
  7. Efex

    Efex Member

    I am getting still same error.
  8. ISPConfig Developer ISPConfig Developer

    even after
    sudo apt-get remove nginx
    sudo apt-get install brotli nginx nginx-module-brotli
    beware your webserver might go offline after this and since I don't speak ubuntu much, make a backup of your configuration files / permissions
  9. Efex

    Efex Member

    Still same..
  10. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    If I am not mistaken latest nginx version 1.14 for ubuntu should have brotli by default and you only have to enable it.

    You may need to backup your current nginx folder and purge nginx before add nginx ppa then update and upgrade your system.

    Your ubuntu 16.04.1 may be updated to 16.04.4 too if you want.
    Last edited: May 10, 2018
  11. ISPConfig Developer ISPConfig Developer

    I have not seen official 1.14 for 16.04, without ppa 1.10 and ppa has 1.13. If 16.04 is needed.
    If there is an issue with the ppa and you can't upgrade, you need to compile nginx yourself as described in linked page above.
  12. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Sorry. I was partly mistaken.

    Nginx PPA is now 1.14 if you are using ppa:nginx/stable but it is the one which is without brotli as you can see here:

    The Nginx PPA with brotli is still 1.13.8 as mentioned by in his first reply. I have tested this to be working fine.
 likes this.
  13. ISPConfig Developer ISPConfig Developer

    If it works for @ahrasis then @Efex may has some other ppa in sources.list for different nginx, elsewise it should have worked after removing/installing nginx.
    Else it wouldn't have recognized " nginx-module-brotli : Depends: nginx (= 1.13.8-2-ppa7~xenial)"

    Check your sources.list
  14. Efex

    Efex Member likes this.
  15. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    As I said, after updating the ppa that you added, and did a backup of nginx folder, try purging nginx (all of them) via:

    apt purge nginx*

    Your system will automatically install apache2 in its place of which you will have to remove before installing nginx and brotli. Run:

    apt purge -y apache2* && apt install -y nginx brotli nginx-module-brotli mailman

    I added mailman as mailman will be removed when you purge apache2. You may remove it if you don't use mailman.

    You may restore your nginx folder thereafter.
  16. ISPConfig Developer ISPConfig Developer

    I did not recommend purging since I don't know if it would conflict with ispconfig, if it's already configured
  17. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    It will affect ISP config and all other site whether or not you remove or purge it. That's why you will have to backup nginx folder before doing it and restore it thereafter. Anyway, I didn't try the remove command though I think it could work fine as well.

Share This Page