Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

how to install mod_filter on apache? VCP is latest.

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
kudouyuzi
Posts: 177
Joined: Mon Apr 28, 2014 11:19 am

how to install mod_filter on apache? VCP is latest.
  • Quote

Post by kudouyuzi » Fri Oct 28, 2016 2:09 am

how to install mod_filter on apache? VCP is latest.
http://docs.wp-rocket.me/article/71-whi ... mpaign=doc
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: how to install mod_filter on apache? VCP is latest.
  • Quote

Post by ScIT » Fri Oct 28, 2016 6:05 am

Should be something like:

Code: Select all

a2enmod filter
service apache2 restart
Top

kudouyuzi
Posts: 177
Joined: Mon Apr 28, 2014 11:19 am

Re: how to install mod_filter on apache? VCP is latest.
  • Quote

Post by kudouyuzi » Fri Oct 28, 2016 6:25 am

ScIT wrote:Should be something like:

Code: Select all

a2enmod filter
service apache2 restart
error -bash: a2enmod: command not found
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: how to install mod_filter on apache? VCP is latest.
  • Quote

Post by skurudo » Fri Oct 28, 2016 6:52 am

a2enmod is a debianism, on CentOS you will need to do this manually. Please refer to the Apache documentation to find out how to do this. Just as how the Include directive is used in the main config file, we could use the LoadModule directive to load modules into Apache.

You could enable a module by specifying the following line in a config file (the main config file or another config file that is read by Apache):

Code: Select all

LoadModule <name-of-module> /path/to/shared-object-module-file.so
## E.g.:
LoadModule headers_module modules/mod_headers.so
Top

kudouyuzi
Posts: 177
Joined: Mon Apr 28, 2014 11:19 am

Re: how to install mod_filter on apache? VCP is latest.
  • Quote

Post by kudouyuzi » Fri Oct 28, 2016 7:07 am

skurudo wrote:a2enmod is a debianism, on CentOS you will need to do this manually. Please refer to the Apache documentation to find out how to do this. Just as how the Include directive is used in the main config file, we could use the LoadModule directive to load modules into Apache.

You could enable a module by specifying the following line in a config file (the main config file or another config file that is read by Apache):

Code: Select all

LoadModule <name-of-module> /path/to/shared-object-module-file.so
## E.g.:
LoadModule headers_module modules/mod_headers.so
THX
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: how to install mod_filter on apache? VCP is latest.
  • Quote

Post by skurudo » Fri Oct 28, 2016 7:11 am

kudouyuzi, you're welcome ;-)
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password