You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Pranesh Vadhirajan <va...@teralogics.com> on 2011/10/24 16:44:02 UTC
[users@httpd] Apache 2.2.3 Session tracking with mod_session produces load error on module load
We are using Apache server 2.2.3 at work as our web server. Currently I am
tasked to track metrics for our website's content access. I am able to
gather some information (client's ip, request type, uri, etc.) from the
request_rec structure.
I also need to correlate "clicks" on the web site with their specific users.
For this, I am trying to use the mod_session module. Since mod_session is
built into Apache for versions 2.3 or later, in order for me to use it on
our Apache 2.2.3 server, I tried to build it from source. I use a build
machine where I compile the source and then deploy the resulting ".so" file
into the Apache server and change the httpd.conf file (adding LoadModule
directive) to load the module, and then restart the Apache server to deploy
the new module.
I've made it work for my own custom modules before, but when I try to do
this process for loading the mod_session module, I'm getting the following
error:
error: httpd: Syntax error on line 217 of /etc/httpd/conf/httpd.conf: Cannot
load /usr/lib64/httpd/modules/mod_session.so into server:
/usr/lib64/httpd/modules/mod_session.so: undefined symbol: session_module.
I don't know if there is a library that I'm supposed to load before I load
this module. If you know the cause of this error, or if there is a better
way to gather session information on Apache 2.2.3 please let me know.
Thanks for your attention.
Respectfully,
Pranesh
Re: [users@httpd] Apache 2.2.3 Session tracking with mod_session
produces load error on module load
Posted by Mark Montague <ma...@catseye.org>.
On October 24, 2011 12:01 , "Pranesh Vadhirajan"
<va...@teralogics.com> wrote:
> Anyway, all I need to do is to correlate
> "clicks" with their user, so I really just need a way to find a user's
> session info somehow to track requests of a user. If I don't need
> mod_session for this, then I have no need to use it. If you know of a
> better approach or a 2.2 module that I can use to get this information,
> please let me know. I will look into getting session info from the web
> content management system that we use, but I'm afraid this will induce more
> complexities as far as correlating Apache handoffs to the content management
> system (Drupal).
Have you considered mod_usertrack ?
https://httpd.apache.org/docs/2.2/mod/mod_usertrack.html
--
Mark Montague
mark@catseye.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Apache 2.2.3 Session tracking with mod_session produces load error on module load
Posted by Pranesh Vadhirajan <va...@teralogics.com>.
Thanks for your responses, Nick Kew and Mark Montague. I'm very new to
developing modules with Apache and I'm not sure that I would be able to
backport modules from Apache 2.3 to 2.2. Certainly seems very unlikely
considering that I would have to do this in less than two weeks
(specifically November 2). It seems that I would need some other approach or
a module that was built for 2.2. Anyway, all I need to do is to correlate
"clicks" with their user, so I really just need a way to find a user's
session info somehow to track requests of a user. If I don't need
mod_session for this, then I have no need to use it. If you know of a
better approach or a 2.2 module that I can use to get this information,
please let me know. I will look into getting session info from the web
content management system that we use, but I'm afraid this will induce more
complexities as far as correlating Apache handoffs to the content management
system (Drupal). I don't believe it's possible for us to upgrade to Apache
2.3 due to the deadlines involved.
Thanks,
Pranesh
-----Original Message-----
From: Mark Montague [mailto:mark@catseye.org]
Sent: Monday, October 24, 2011 11:20 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache 2.2.3 Session tracking with mod_session
produces load error on module load
On October 24, 2011 10:44 , "Pranesh Vadhirajan"
<va...@teralogics.com> wrote:
>
> I am trying to use the mod_session module. Since mod_session is built
> into Apache for versions 2.3 or later, in order for me to use it on
> our Apache 2.2.3 server, I tried to build it from source. [...] I'm
> getting the following error:
>
> error: httpd: Syntax error on line 217 of /etc/httpd/conf/httpd.conf:
> Cannot load /usr/lib64/httpd/modules/mod_session.so into server:
> /usr/lib64/httpd/modules/mod_session.so: undefined symbol:
> session_module.
>
> I don't know if there is a library that I'm supposed to load before I
> load this module. If you know the cause of this error, or if there is
> a better way to gather session information on Apache 2.2.3 please let
> me know.
>
(By the way, if Nick or another big Apache HTTP Server developer says
you don't need to worry about the things I describe below, believe him
and not me.)
The Apache HTTP Server API has changed substantially between 2.2 and 2.3
(2.4). Because of this, in general, I would not expect modules written
for 2.3/2.4 to work with 2.2. You might get lucky, but if you want to
run mod_session in a production environment, would you be comfortable
gambling on this, even if you get the module to compile, load, and it
appear to work for the cases you test?
If you are comfortable developing modules and would like to backport
mod_session from 2.3 to 2.2, a list of the API changes is available at
https://httpd.apache.org/docs/2.3/developer/new_api_2_4.html
The above document describes what is needed to port a module forward
from 2.2 to 2.4. You'd need to reverse everything described in order to
back-port modules from 2.3 to 2.2.
In addition to mod_session, you may also need at least one of
mod_session_crypto, mod_session_cookie, or mod_session_dbd. See the
documentation (3rd paragraph) at
https://httpd.apache.org/docs/2.3/mod/mod_session.html
2.4 is close enough to being released that you might want to consider
upgrading to 2.3 now instead of trying to get a 2.3 module to work with
2.2. I've been running 2.3 since 2.3.5-beta and have been happy with
it; 2.3.14-beta is the current release.
--
Mark Montague
mark@catseye.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.2.3 Session tracking with mod_session
produces load error on module load
Posted by Mark Montague <ma...@catseye.org>.
On October 24, 2011 10:44 , "Pranesh Vadhirajan"
<va...@teralogics.com> wrote:
>
> I am trying to use the mod_session module. Since mod_session is built
> into Apache for versions 2.3 or later, in order for me to use it on
> our Apache 2.2.3 server, I tried to build it from source. [...] I'm
> getting the following error:
>
> error: httpd: Syntax error on line 217 of /etc/httpd/conf/httpd.conf:
> Cannot load /usr/lib64/httpd/modules/mod_session.so into server:
> /usr/lib64/httpd/modules/mod_session.so: undefined symbol:
> session_module.
>
> I don't know if there is a library that I'm supposed to load before I
> load this module. If you know the cause of this error, or if there is
> a better way to gather session information on Apache 2.2.3 please let
> me know.
>
(By the way, if Nick or another big Apache HTTP Server developer says
you don't need to worry about the things I describe below, believe him
and not me.)
The Apache HTTP Server API has changed substantially between 2.2 and 2.3
(2.4). Because of this, in general, I would not expect modules written
for 2.3/2.4 to work with 2.2. You might get lucky, but if you want to
run mod_session in a production environment, would you be comfortable
gambling on this, even if you get the module to compile, load, and it
appear to work for the cases you test?
If you are comfortable developing modules and would like to backport
mod_session from 2.3 to 2.2, a list of the API changes is available at
https://httpd.apache.org/docs/2.3/developer/new_api_2_4.html
The above document describes what is needed to port a module forward
from 2.2 to 2.4. You'd need to reverse everything described in order to
back-port modules from 2.3 to 2.2.
In addition to mod_session, you may also need at least one of
mod_session_crypto, mod_session_cookie, or mod_session_dbd. See the
documentation (3rd paragraph) at
https://httpd.apache.org/docs/2.3/mod/mod_session.html
2.4 is close enough to being released that you might want to consider
upgrading to 2.3 now instead of trying to get a 2.3 module to work with
2.2. I've been running 2.3 since 2.3.5-beta and have been happy with
it; 2.3.14-beta is the current release.
--
Mark Montague
mark@catseye.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.2.3 Session tracking with mod_session
produces load error on module load
Posted by Nick Kew <ni...@webthing.com>.
On Mon, 24 Oct 2011 10:44:02 -0400
"Pranesh Vadhirajan" <va...@teralogics.com> wrote:
> error: httpd: Syntax error on line 217 of /etc/httpd/conf/httpd.conf: Cannot
> load /usr/lib64/httpd/modules/mod_session.so into server:
> /usr/lib64/httpd/modules/mod_session.so: undefined symbol: session_module.
Could there be a binary format issue? If you have a /lib64/
maybe that's not the right one to use.
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org