You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com> on 2003/04/01 19:17:38 UTC

[users@httpd] Apache Errors


After successfully compiling the Apache software, I get the following on startup.  Here's my error:


#  /usr/local/apache/bin/apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_vhost_alias.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/mod_vhost_alias.so: symbol ap_os_is_path_absolute: referenced symbol not found
/usr/local/apache/bin/apachectl start: httpd could not be started

Here's the configure line:

./configure --prefix=/usr/local/apache --enable-module=all --enable-shared=max --enable-rule=EAPI --with-layout=Apache

Any suggestions on how to resolve this? 


-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard




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


[users@httpd] Relocation error on Startup.

Posted by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com>.

Albert E. Whale, CISSP wrote:

>
>
> After successfully compiling the Apache software, I get the following 
> on startup.  Here's my error:
>
>
> #  /usr/local/apache/bin/apachectl start
> Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
> Cannot load /usr/local/apache/libexec/mod_vhost_alias.so into server: 
> ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file 
> /usr/local/apache/libexec/mod_vhost_alias.so: symbol 
> ap_os_is_path_absolute: referenced symbol not found
> /usr/local/apache/bin/apachectl start: httpd could not be started
>
> Here's the configure line:
>
> ./configure --prefix=/usr/local/apache --enable-module=all 
> --enable-shared=max --enable-rule=EAPI --with-layout=Apache
>
> Any suggestions on how to resolve this?
>

-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard





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

Posted by Gary Turner <kk...@sbcglobal.net>.
Albert E. Whale, CISSP wrote:

>Gary Turner wrote:

[...]
>>The next line probably has the same path, no?  Do the named files exist
>>at the location?  In other words, does
>>
>>/usr/local/apache/libexec/mod_vhost_alias.so
>>
>>actually exist?
>>
>Yes, in fact they do, and I have verified this.

OK, this is good.

[...]
>
>Is this one relevant?
>http://www.faqts.com/knowledge_base/view.phtml/aid/14640/fid/559

Looks interesting (more below).  Not something I've run into, so can't
judge the relevance.

[...]
>Since I am trying to compile the PHP Module I will verify that I am not 
>actually shooting myself in the by loading the module in the httpd.conf 
>prematurely, however this is not the error message in the start command. 
> I realize that it is easier to seek out the KISS (Keep It Simple 
>Stupid), and I'm not trying to seek out Pink Elephants, but this server 
>is new to me, and has not been maintained since it's installation 5 
>years ago.  Do you see Pink Elephants?

When you hear the thundering herd, and you see the hoof prints, you
should eliminate the possibility of "horse" before thinking "zebra."
That said, "For some reason, even though LD_LIBRARY_PATH was being set
properly, it wasn't being read fully" might point toward zebra.

>>I doubt that all modules are buggy.  That's why I'm staying with the
>>possibility of something like path error until proven otherwise. :)

Since you have verified the existence of the file and that it lives
where indicated, I will abandon this point.  I have nothing more to
offer.

If you do not find the cure, you might repost with a more descriptive
subject line.  The better subject will be more likely to attract the
interest of the clueful ;)

Good luck
--
gt           kk5st@sbcglobal.net
The advice is free, and worth every cent.

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

Posted by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com>.

Gary Turner wrote:

>Albert E. Whale, CISSP wrote:
>
>  
>
>>Thanks for the attempt Gary, but this does not appear to be a 
>>configuration issue.
>>
>>I tried to comment the lines out for you, but the line number just 
>>points to the Next AddModule Statement in the Configuration file.
>>    
>>
>
>The next line probably has the same path, no?  Do the named files exist
>at the location?  In other words, does
>
>/usr/local/apache/libexec/mod_vhost_alias.so
>
>actually exist?
>
>Yes, in fact they do, and I have verified this.
>  
>
>> I 
>>also tried to modify the Statements to me Fully Qualified Pathnames, 
>>instead of Relative Directory pathnames.
>>    
>>
>
>Mmm, from your original post, I inferred absolute addresses.
>
>  
>
>>I found a reference on the Web which indicated that something similar 
>>was a bug in the code.  I'm referring to
>>    
>>
>
>For best results, you should reference the URL for other eyes.
>  
>
OK, here goes nothing:

Is this one relevant?
http://www.faqts.com/knowledge_base/view.phtml/aid/14640/fid/559

Here's another one:
http://www.phpbuilder.com/mail/php-install/2001092/0081.php

Did I mention that I was also attempting to install PHP 4?  Appears that 
this is something that is happening on Solaris Servers, I'm running 
version 7.

>  
>
>>Cannot load /usr/local/apache/libexec/mod_vhost_alias.so into server: 
>>ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file
>>/usr/local/apache/libexec/mod_vhost_alias.so: symbol 
>>ap_os_is_path_absolute: referenced symbol not found
>>
>>I still appreciate the effort.  Thanks, but I feel that there is 
>>something else a muck here.
>>    
>>
>
>I suppose that is possible.  I would, however, first be sure that your
>LoadModule statement points to the *actual* location of the mod_*.so,
>and that the given *.so exists.  Again, since your install is not FHS
>compliant, I have not a clue where to look.  A compliant location for a
>locally compiled app's shared objects would be under
>/usr/local/lib/apache||http/1.3||2.0/
>

Since I am trying to compile the PHP Module I will verify that I am not 
actually shooting myself in the by loading the module in the httpd.conf 
prematurely, however this is not the error message in the start command. 
 I realize that it is easier to seek out the KISS (Keep It Simple 
Stupid), and I'm not trying to seek out Pink Elephants, but this server 
is new to me, and has not been maintained since it's installation 5 
years ago.  Do you see Pink Elephants?

>
>I doubt that all modules are buggy.  That's why I'm staying with the
>possibility of something like path error until proven otherwise. :)
>
>For best results in finding answers, check out these URLs:
>
>	http://www.catb.org/~esr/faqs/smart-questions.html
>
>	http://www.netmeister.org/news/learn2quote.html
>
>--
>gt           kk5st@sbcglobal.net
>The advice is free, and worth every cent.
>
>---------------------------------------------------------------------
>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
>
>  
>

-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard





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

Posted by Gary Turner <kk...@sbcglobal.net>.
Albert E. Whale, CISSP wrote:

>Thanks for the attempt Gary, but this does not appear to be a 
>configuration issue.
>
>I tried to comment the lines out for you, but the line number just 
>points to the Next AddModule Statement in the Configuration file.

The next line probably has the same path, no?  Do the named files exist
at the location?  In other words, does

/usr/local/apache/libexec/mod_vhost_alias.so

actually exist?


>  I 
>also tried to modify the Statements to me Fully Qualified Pathnames, 
>instead of Relative Directory pathnames.

Mmm, from your original post, I inferred absolute addresses.

>
>I found a reference on the Web which indicated that something similar 
>was a bug in the code.  I'm referring to

For best results, you should reference the URL for other eyes.

>
>Cannot load /usr/local/apache/libexec/mod_vhost_alias.so into server: 
>ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file
>/usr/local/apache/libexec/mod_vhost_alias.so: symbol 
>ap_os_is_path_absolute: referenced symbol not found
>
>I still appreciate the effort.  Thanks, but I feel that there is 
>something else a muck here.

I suppose that is possible.  I would, however, first be sure that your
LoadModule statement points to the *actual* location of the mod_*.so,
and that the given *.so exists.  Again, since your install is not FHS
compliant, I have not a clue where to look.  A compliant location for a
locally compiled app's shared objects would be under
/usr/local/lib/apache||http/1.3||2.0/

I doubt that all modules are buggy.  That's why I'm staying with the
possibility of something like path error until proven otherwise. :)

For best results in finding answers, check out these URLs:

	http://www.catb.org/~esr/faqs/smart-questions.html

	http://www.netmeister.org/news/learn2quote.html

--
gt           kk5st@sbcglobal.net
The advice is free, and worth every cent.

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

Posted by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com>.
Thanks for the attempt Gary, but this does not appear to be a 
configuration issue.

I tried to comment the lines out for you, but the line number just 
points to the Next AddModule Statement in the Configuration file.  I 
also tried to modify the Statements to me Fully Qualified Pathnames, 
instead of Relative Directory pathnames.

I found a reference on the Web which indicated that something similar 
was a bug in the code.  I'm referring to

Cannot load /usr/local/apache/libexec/mod_vhost_alias.so into server: 
ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/mod_vhost_alias.so: symbol 
ap_os_is_path_absolute: referenced symbol not found

I still appreciate the effort.  Thanks, but I feel that there is 
something else a muck here.


Gary Turner wrote:

>Albert E. Whale, CISSP wrote:
>
>  
>
>>After successfully compiling the Apache software, I get the following on startup.  Here's my error:
>>
>>
>>#  /usr/local/apache/bin/apachectl start
>>Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
>>    
>>
>
>This refers to a syntax error in the run time configuration file, not
>the compile time conf.
>
>  
>
>>Cannot load /usr/local/apache/libexec/mod_vhost_alias.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/mod_vhost_alias.so: symbol ap_os_is_path_absolute: referenced symbol not found
>>    
>>
>
>It appears that the cited path is not where the file actually resides.
>
>  
>
>>/usr/local/apache/bin/apachectl start: httpd could not be started
>>
>>Here's the configure line:
>>
>>./configure --prefix=/usr/local/apache --enable-module=all --enable-shared=max --enable-rule=EAPI --with-layout=Apache
>>
>>Any suggestions on how to resolve this?
>>    
>>
>
>Load up your favorite editor with httpd.conf and take a look at line
>207.  You could comment the line to see if that makes it work, or you
>could correct the path.  It seems that your installation does not comply
>with the Filesystem Hierarchy Standards, so I won't even guess where
>that might be. 
>
>--
>gt           kk5st@sbcglobal.net
>The advice is free, and worth every cent.
>
>---------------------------------------------------------------------
>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
>
>  
>

-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard





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

Posted by Gary Turner <kk...@sbcglobal.net>.
Albert E. Whale, CISSP wrote:

>
>
>After successfully compiling the Apache software, I get the following on startup.  Here's my error:
>
>
>#  /usr/local/apache/bin/apachectl start
>Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:

This refers to a syntax error in the run time configuration file, not
the compile time conf.

>Cannot load /usr/local/apache/libexec/mod_vhost_alias.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/mod_vhost_alias.so: symbol ap_os_is_path_absolute: referenced symbol not found

It appears that the cited path is not where the file actually resides.

>/usr/local/apache/bin/apachectl start: httpd could not be started
>
>Here's the configure line:
>
>./configure --prefix=/usr/local/apache --enable-module=all --enable-shared=max --enable-rule=EAPI --with-layout=Apache
>
>Any suggestions on how to resolve this?

Load up your favorite editor with httpd.conf and take a look at line
207.  You could comment the line to see if that makes it work, or you
could correct the path.  It seems that your installation does not comply
with the Filesystem Hierarchy Standards, so I won't even guess where
that might be. 

--
gt           kk5st@sbcglobal.net
The advice is free, and worth every cent.

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