You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ty...@brainwashed.com on 2002/05/01 02:57:40 UTC
"Cannot load into server: ... cannot open shared object file: No such file or directory"
Hello!
OS: RedHat 7.0
Upgrading from Apache 1.3.12 to 2.0.35
I've upgraded Apache and I'm running into a problem getting the server to
start. I read the Installation guide that came with the source files,
checked the FAQ, and browsed some of the archives but I haven't figured out
the problem yet. Any pointers would be greatly appreciated!
Here's the error I'm getting: "Cannot load /usr/modules/mod_vhost_alias.so
into server: /usr/modules/mod_vhost_alias.so: cannot open shared object
file: No such file or directory". If I comment out the "LoadModule
vhost_alias_module modules/mod_vhost_alias.so" line in httpd.conf, I just
get the same error on the next module.
When I was preparing to run ./configure, I used the config.layout method and
modified the RedHat section (the commented line is the only one that I
changed):
# RedHat 7.x layout
<Layout RedHat>
prefix: /usr
exec_prefix: ${prefix}
bindir: ${prefix}/bin
sbindir: ${prefix}/sbin
libexecdir: ${prefix}/lib/apache
mandir: ${prefix}/man
sysconfdir: /etc/httpd/conf
# datadir: /var/www
datadir: /www/temp
installbuilddir: ${datadir}/build
errordir: ${datadir}/error
iconsdir: ${datadir}/icons
htdocsdir: ${datadir}/html
manualdir: ${datadir}/manual
cgidir: ${datadir}/cgi-bin
includedir: ${prefix}/include/apache
localstatedir: /var
runtimedir: ${localstatedir}/run
logfiledir: ${localstatedir}/log/httpd
proxycachedir: ${localstatedir}/cache/httpd
</Layout>
Here's the ./configure command that I used:
./configure --enable-layout=RedHat \
--enable-mods-shared=all \
--enable-modules="perl php php3 php4 dav roaming" \
--disable-mime_magic --disable-speling --disable-digest \
--disable-proxy --disable-cern_meta --disable-usertrack \
--disable-example --disable-unique_id --disable-bandwidth \
--disable-put --disable-ssl
One strange thing I noticed is that the error shows the path "/usr/modules"
rather than "/usr/lib/apache", which is what the config.layout file is
providing. I verified that the "modules" directory referred to in the conf
file is symlinked to /usr/lib/apache (and it was working before the
upgrade).
Thanks in advance for any pointers!
Ty
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
RE: "Cannot load into server: ... cannot open shared object file: No such file or directory"
Posted by ty...@brainwashed.com.
It seems so obvious now! I guess because Apache was working before, I
didn't think about modifying those lines. But it makes sense now, and I got
it running. I think my issue now is 1) compiling in the modules I want and
2) not specifying the ones I *don't* want. That will be my next challenge,
since I've been spoon-fed my Apache install by the default RedHat
installation. But at least I understand better now how the modules and the
conf file relate to each other.
Thanks!
Ty
> -----Original Message-----
> From: Joshua Slive [mailto:joshua@slive.ca]
> Sent: Tuesday, April 30, 2002 6:06 PM
> To: apache
> Subject: Re: "Cannot load <module> into server: ... cannot open shared
> object file: No such file or directory"
>
>
>
> On Tue, 30 Apr 2002 ty@brainwashed.com wrote:
> > One strange thing I noticed is that the error shows the path
> "/usr/modules"
> > rather than "/usr/lib/apache", which is what the config.layout file is
> > providing. I verified that the "modules" directory referred to
> in the conf
> > file is symlinked to /usr/lib/apache (and it was working before the
> > upgrade).
>
> The LoadModule lines in httpd.conf are not pointing at the right
> directory. Just edit the LoadModule lines.
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> 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
> 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
For additional commands, e-mail: users-help@httpd.apache.org
Re: "Cannot load into server: ... cannot open shared object
file: No such file or directory"
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 30 Apr 2002 ty@brainwashed.com wrote:
> One strange thing I noticed is that the error shows the path "/usr/modules"
> rather than "/usr/lib/apache", which is what the config.layout file is
> providing. I verified that the "modules" directory referred to in the conf
> file is symlinked to /usr/lib/apache (and it was working before the
> upgrade).
The LoadModule lines in httpd.conf are not pointing at the right
directory. Just edit the LoadModule lines.
Joshua.
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org