Control Web Panel

WebPanel => Apache => Topic started by: sudipmaity on December 10, 2014, 07:13:07 PM

Title: mod_expire module is not enabled from Apache recompile
Post by: sudipmaity on December 10, 2014, 07:13:07 PM
Hello,
      I am not able to enable  mod_expire from Apache recompile. After starting the recompilation the module mod_expire is not coming to list of modules enabled on this server.
Please help me to solve this problem.

Thanks
Sudip Maity
Title: Re: mod_expire module is not enabled from Apache recompile
Post by: Administrator on December 15, 2014, 02:03:49 AM
for which php version ? (you should use 5.4)
Title: Re: mod_expire module is not enabled from Apache recompile
Post by: zenben on December 14, 2015, 03:06:59 AM
Same problem =/
When I insert
LoadModule expire_module modules/mod_expire.so
into > /usr/local/apache/conf/httpd.conf
it says:
Starting httpd: httpd: Syntax error on line 54 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_expire.so into server: /usr/local/apache/modules/mod_expire.so: cannot open shared object file: No such file or directory

I've tried
sudo yum install httpd mod_expire
but it had no effect.

Loaded Modules:
$ /usr/local/apache/bin/httpd -M | sort
Syntax OK
actions_module (static)
alias_module (static)
asis_module (static)
auth_basic_module (static)
authn_default_module (static)
authn_file_module (static)
authz_default_module (static)
authz_groupfile_module (static)
authz_host_module (static)
authz_user_module (static)
autoindex_module (static)
cgi_module (static)
core_module (static)
deflate_module (static)
dir_module (static)
env_module (static)
filter_module (static)
http_module (static)
include_module (static)
log_config_module (static)
mime_module (static)
mpm_prefork_module (static)
negotiation_module (static)
rewrite_module (static)
setenvif_module (static)
so_module (static)
ssl_module (static)
status_module (static)
suexec_module (static)
suphp_module (shared)
unique_id_module (static)
userdir_module (static)
version_module (static)


No matter where I put
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A3600
</IfModule>

it does not work - the expire module is just not there.
How can I install it??
THANK YOU FOR YOUR HELP!!

PHP Version: 5.4.27
Apache version: Apache/2.2.27
Distro Name: CentOS release 6.7 (Final)
Kernel Version: 2.6.32-042stab111.12
Platform: x86_64 [vmwareopenvz]
CWP version: 0.9.8.10
Title: Re: mod_expire module is not enabled from Apache recompile
Post by: Administrator on December 15, 2015, 06:53:21 AM
have you used apache rebuilder in CWP, there you have info on how to enable it ?
Title: Re: mod_expire module is not enabled from Apache recompile
Post by: zenben on December 15, 2015, 09:59:47 AM
I have a very small VPS with no backup, so I am a little afraid the server might fail when I recompile.
And with ~10 websites on it, it don't want to risk it.

But If you say I'll get the mod_expire.c enabled when I recompile I would probably do it.

Quote from: Administrator on December 15, 2015, 06:53:21 AM
have you used apache rebuilder in CWP, there you have info on how to enable it ?

Where is this info supposed to be?
On the page "index.php?module=apache_builder" I see only this>

(http://i.snag.gy/oe0nw.jpg)

THANK YOU!
Ben