niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Apache
problem loading DSO modules
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Mauro
*nix forums beginner


Joined: 12 Dec 2003
Posts: 13

PostPosted: Thu Jul 20, 2006 8:12 am    Post subject: problem loading DSO modules Reply with quote

Hi all,
I'v configuread apache with these configure options:

# cat /home/mgatt/configure_options/httpd_configure_options.txt
../configure --prefix=/data/programs/httpd-2.2.2 --enable-so --enable-unique-id \
--enable-usertrack --enable-mime-magic --enable-charset-lite \
--enable-mods-shared=most

Then I tried to load some module in httpd.conf:

....
LoadModule mod_env modules/mod_env.so
LoadModule mod_mime modules/mod_mime.so
LoadModule mod_unique_id modules/mod_unique_id.so
LoadModule mod_cgi modules/mod_cgi.so
LoadModule mod_charset_lite modules/mod_charset_lite.so
....

but I got this error running web server:

httpd: Syntax error on line 54 of /data/programs/httpd-2.2.2/conf/httpd.conf: Can't locate API module structure `mod_env' in file /data/programs/apache2/modules/mod_env.so: /data/programs/apache2/modules/mod_env.so: undefined symbol: mod_env

where:
# ls -la /data/programs/apache2/modules/mod_env.so
-rwxr-xr-x 1 root root 23491 Jul 20 09:23 /data/programs/apache2/modules/mod_env.so

Could you help me to understand why apache doesn't load shared modules?

Thank You

Regards

Mauro
Back to top
Alexander Lazic
*nix forums addict


Joined: 31 May 2005
Posts: 58

PostPosted: Thu Jul 20, 2006 8:16 am    Post subject: Re: problem loading DSO modules Reply with quote

Hi,

On Don 20.07.2006 10:12, Mauro wrote:
Quote:

I'v configuread apache with these configure options:

On which OS?

Quote:
# cat /home/mgatt/configure_options/httpd_configure_options.txt
./configure --prefix=/data/programs/httpd-2.2.2 --enable-so --enable-unique-id \

Then I tried to load some module in httpd.conf:

...
LoadModule mod_env modules/mod_env.so
LoadModule mod_mime modules/mod_mime.so
LoadModule mod_unique_id modules/mod_unique_id.so
LoadModule mod_cgi modules/mod_cgi.so
LoadModule mod_charset_lite modules/mod_charset_lite.so
...

How many modules do you try to load?

Regards

Alex

---------------------------------------------------------------------
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
Back to top
Mauro
*nix forums beginner


Joined: 12 Dec 2003
Posts: 13

PostPosted: Thu Jul 20, 2006 8:27 am    Post subject: Re: problem loading DSO modules Reply with quote

My OS is RH Enterprise 4
obviusly mod_so is staticall loaded:
# ../bin/httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

I'm loading only modules you are reading
enven checkconf got me same error.


Thank You

----- Original Message -----
From: "Alexander Lazic" <al-httpdusers@none.at>
To: <users@httpd.apache.org>
Sent: Thursday, July 20, 2006 10:16 AM
Subject: Re: [users@httpd] problem loading DSO modules


Quote:
Hi,

On Don 20.07.2006 10:12, Mauro wrote:

I'v configuread apache with these configure options:

On which OS?

# cat /home/mgatt/configure_options/httpd_configure_options.txt

./configure --prefix=/data/programs/httpd-2.2.2 --enable-so --enable-unique
-id \

Then I tried to load some module in httpd.conf:

...
LoadModule mod_env modules/mod_env.so
LoadModule mod_mime modules/mod_mime.so
LoadModule mod_unique_id modules/mod_unique_id.so
LoadModule mod_cgi modules/mod_cgi.so
LoadModule mod_charset_lite modules/mod_charset_lite.so
...

How many modules do you try to load?

Regards

Alex

---------------------------------------------------------------------
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




---------------------------------------------------------------------
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
Back to top
Ashutosh Mohanty
*nix forums beginner


Joined: 12 Jul 2006
Posts: 22

PostPosted: Thu Jul 20, 2006 8:43 am    Post subject: Re: problem loading DSO modules Reply with quote

Are you sure about the directory and path for the modules??

is it /data/programs/apache2/modules/mod_env.so ?
or
this is
/data/programs/httpd-2.2.2/modules/mod_env.so ?

or you started different httpd daemon ?

Ashutosh
SynaptiCAD Inc.
----- Original Message -----
From: Mauro
To: users@httpd.apache.org
Sent: Thursday, July 20, 2006 1:57 PM
Subject: Re: [users@httpd] problem loading DSO modules


My OS is RH Enterprise 4
obviusly mod_so is staticall loaded:
# ../bin/httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

I'm loading only modules you are reading
enven checkconf got me same error.


Thank You

----- Original Message -----
From: "Alexander Lazic" <al-httpdusers@none.at>
To: <users@httpd.apache.org>
Sent: Thursday, July 20, 2006 10:16 AM
Subject: Re: [users@httpd] problem loading DSO modules


Quote:
Hi,

On Don 20.07.2006 10:12, Mauro wrote:

I'v configuread apache with these configure options:

On which OS?

# cat /home/mgatt/configure_options/httpd_configure_options.txt

./configure --prefix=/data/programs/httpd-2.2.2 --enable-so --enable-unique
-id \

Then I tried to load some module in httpd.conf:

...
LoadModule mod_env modules/mod_env.so
LoadModule mod_mime modules/mod_mime.so
LoadModule mod_unique_id modules/mod_unique_id.so
LoadModule mod_cgi modules/mod_cgi.so
LoadModule mod_charset_lite modules/mod_charset_lite.so
...

How many modules do you try to load?

Regards

Alex

---------------------------------------------------------------------
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




---------------------------------------------------------------------
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
Back to top
Mauro
*nix forums beginner


Joined: 12 Dec 2003
Posts: 13

PostPosted: Thu Jul 20, 2006 8:45 am    Post subject: Re: problem loading DSO modules Reply with quote

apache2 is a link to http-2.2.2

I found the solution!

I have to write:

LoadModule env_module modules/mod_env.so
^^^^^^^^^^^^^^^
and not
LoadModule mod_env modules/mod_env.so
^^^^^^^^^^^

Thank you for your support


RGDS

Mauro


----- Original Message -----
From: Ashutosh Mohanty
To: users@httpd.apache.org
Sent: Thursday, July 20, 2006 10:38 AM
Subject: Re: [users@httpd] problem loading DSO modules


Are you sure about the directory and path for the modules??

is it /data/programs/apache2/modules/mod_env.so ?
or
this is
/data/programs/httpd-2.2.2/modules/mod_env.so ?

or you started different httpd daemon ?

Ashutosh
SynaptiCAD Inc.
----- Original Message -----
From: Mauro
To: users@httpd.apache.org
Sent: Thursday, July 20, 2006 1:57 PM
Subject: Re: [users@httpd] problem loading DSO modules


My OS is RH Enterprise 4
obviusly mod_so is staticall loaded:
# ../bin/httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

I'm loading only modules you are reading
enven checkconf got me same error.


Thank You

----- Original Message -----
From: "Alexander Lazic" <al-httpdusers@none.at>
To: <users@httpd.apache.org>
Sent: Thursday, July 20, 2006 10:16 AM
Subject: Re: [users@httpd] problem loading DSO modules


Quote:
Hi,

On Don 20.07.2006 10:12, Mauro wrote:

I'v configuread apache with these configure options:

On which OS?

# cat /home/mgatt/configure_options/httpd_configure_options.txt

./configure --prefix=/data/programs/httpd-2.2.2 --enable-so --enable-unique
-id \

Then I tried to load some module in httpd.conf:

...
LoadModule mod_env modules/mod_env.so
LoadModule mod_mime modules/mod_mime.so
LoadModule mod_unique_id modules/mod_unique_id.so
LoadModule mod_cgi modules/mod_cgi.so
LoadModule mod_charset_lite modules/mod_charset_lite.so
...

How many modules do you try to load?

Regards

Alex

---------------------------------------------------------------------
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




---------------------------------------------------------------------
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
Back to top
Joost de Heer
*nix forums Guru


Joined: 30 Mar 2005
Posts: 339

PostPosted: Thu Jul 20, 2006 12:24 pm    Post subject: Re: problem loading DSO modules Reply with quote

Quote:
Could you help me to understand why apache doesn't load shared modules?

You compiled httpd-2.2, but are trying to load modules compiled for
httpd-2.0. This won't work.

Educated guess: You have the ServerRoot in your httpd.conf wrong, causing
the LoadModule lines to look in the wrong directory for modules. Either
fix your ServerRoot, or use the full path for module loading.

Joost


---------------------------------------------------------------------
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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 7:51 pm | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Car Loans | Remortgaging | Cheap Plane Tickets | Ethical hacking tool kit | Loan
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2999s ][ Queries: 16 (0.1960s) ][ GZIP on - Debug on ]