You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Steve Nelle <sn...@satx.rr.com> on 2001/12/09 02:58:19 UTC

(Fwd) Fatal relocation error

Sorry if this is a duplicate - I munged the original subscribe 
message to the mailing list, and was wondering if it went through.

Platform: Solaris 8
GCC: 2.95.3
Apache: 1.3.22

I downloaded the latest version of apache to install on my
box, and used the following set of flags to ./configure:

./configure --prefix=/www/apache \
	 --enable-shared=cgi  \
	--enable-shared=include


It actually compiled fine (no errors), and did the install into the 
place where I wanted it to go (/www/apache).  But when I try to start 
it up, I get this error:

 ../bin/apachectl start
Syntax error on line 205 of /www/apache/conf/httpd.conf:
Cannot load /www/apache/libexec/mod_include.so into server: 
ld.so.1: /www/apache/bin/httpd: fatal: relocation error: file 
/www/apache/libexec/mod_include.so: symbol ap_chdir_file: 
referenced symbol not found
../bin/apachectl start: httpd could not be started


Now, I found the ap_chdir_file in src/main in util.c, and it's compiled 
into the libmain.a file.    mod_include.so is in my 
/www/apache/libexec directory, but I'm missing something rather 
obvious.  I've done google searches, but come up with stuff that 
appears to not apply, I've looked all over the www.apache.org site 
for similar things, but I'm stumped.

Anyone want to point me in the right direction?

Thanks!!

Steve Nelle
------- End of forwarded message -------Steve Nelle       | "Man is the 
lowest cost, 150-pound
Seguin, Tx        | nonlinear, all-purpose computer system
snelle@satx.rr.com| that can be produced by unskilled labor."
                  |  - NASA report on manned space exploration


---------------------------------------------------------------------
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: simple question

Posted by Mike Arrison <ar...@gnostech.com>.
Hmm... looks alright to me.  I assume you restarted the server after this
config change?  Also, make sure you have an index.html in that directory.
Then if it still doesn't come up (404), then look at the error_log to see
what file it was trying to retrieve.

     -Mike Arrison
      arrison@gnostech.com
      Systems Engineer
      Gnostech, Inc.
      http://www.gnostech.com
      (215) 443-8660

-----Original Message-----
From: Calvin Redding [mailto:vorlon_cruiser@yahoo.com]
Sent: Monday, January 07, 2002 10:26 AM
To: users@httpd.apache.org
Subject: RE: simple question


I thought I had this set up right, but maybe I did something wrong.  I
attached my copy of httpd.conf--the directory I want for root is
C:/documents and settings/calvin/my documents

Thanks a lot,
-Calvin

-----Original Message-----
From: James Covington [mailto:webmaster@insw.org]
Sent: Sunday, January 06, 2002 9:58 PM
To: users@httpd.apache.org
Subject: Re: simple question

At 09:51 P 01/06/2002 -0600, you wrote:
>I'm new to apache, and I have a simple question; where do I put the
html
>files I want instead of the default, for instance the index.html for
the
>root of my site?  I've looked through the docs and I didn't see clearly
>where it was.

Well, that's up to you.  Wherever you set DocumentRoot in your
httpd.conf,
is where you want your web files.  If you already have web files in a
specific directory, then set DocumentRoot to that directory.  If you are

using virtual hosting, then that is set in each <VirtualHost> tag.  I
prefer using /home/*site*/public_html.

--James


---------------------------------------------------------------------
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: simple question

Posted by "Jesse.linux" <jd...@inq7.net>.
u have this config...
<IfModule mod_dir.c>
    DirectoryIndex C:/apache/index.html
</IfModule>

try puting quotation marks
<IfModule mod_dir.c>
    DirectoryIndex "C:/apache/index.html"
</IfModule>

----- Original Message -----
From: "Calvin Redding" <vo...@yahoo.com>
To: <us...@httpd.apache.org>
Sent: Tuesday, January 08, 2002 8:10 AM
Subject: RE: simple question


> Ok guys, I've made progress; I changed the dir to c:/apache, and moved
> the appropriate files, but now I get a 403 Forbidden error when I try to
> access the server, and it says I don't have permission to access root.
> I'm not sure what I've done...lol  I attached an updated config file,
> thanks for your continued help...
> -Calvin
>
> -----Original Message-----
> From: Doug Groves [mailto:groups@valis.net]
> Sent: Monday, January 07, 2002 9:42 AM
> To: users@httpd.apache.org
> Subject: RE: simple question
>
> Hi Carl,
>
> I haven't tried apache on Windows, but the first thing I would
> suggest is that you should change your directory to one that
> doesn't have spaces in the name.  AFAIK apache doesn't like
> folders with spaces, though like I said, I'm not sure.
>
> -----Original Message-----
> From: Calvin Redding [mailto:vorlon_cruiser@yahoo.com]
> Sent: Monday, January 07, 2002 10:26 AM
> To: users@httpd.apache.org
> Subject: RE: simple question
>
>
> I thought I had this set up right, but maybe I did something wrong.  I
> attached my copy of httpd.conf--the directory I want for root is
> C:/documents and settings/calvin/my documents
>
> Thanks a lot,
> -Calvin
>
>
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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: simple question

Posted by Owen Boyle <ob...@bourse.ch>.
Calvin Redding wrote:
> 
> Ok guys, I've made progress; I changed the dir to c:/apache, and moved
> the appropriate files, but now I get a 403 Forbidden error when I try to
> access the server, and it says I don't have permission to access root.
> I'm not sure what I've done...lol  I attached an updated config file,
> thanks for your continued help...
> -Calvin

You have ServerRoot and DocumentRoot set to the same directory. Do you
understand the implications of this?

ServerRoot is the directory where apache is located. It should contain
subdirectories which, in turn, contain the httpd binary, the config
file, the log files etc. This is where the apache installation lives and
is not usually the place where you want to keep your HTML content. On
unix, this directory is owned by root and is quite special - you
wouldn't want users browsing around in it.

DocumentRoot is the place apache goes to to find your HTML content when
someone makes a request to your server. This can be anywhere on your
disk and doesn't need to be under the apache ServerRoot. Usually, this
is a normal user directory. 

Because you are pointing DocumentRoot at ServerRoot (which should be
system directory) you may be getting an OS level access error (I'm not a
windows expert and I don't know what version you're using). You also
have to allow access to the DocumentRoot (you actually do this - sort
of...)

Something like:

ServerRoot   C:/apache
DocumentRoot C:/user/calvin/docs
<Directory C:/user/calvin/docs>
  Allow from all
</Directory>

Is more usual.

Rgds,

Owen Boyle.

---------------------------------------------------------------------
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: simple question

Posted by Calvin Redding <vo...@yahoo.com>.
Ok guys, I've made progress; I changed the dir to c:/apache, and moved
the appropriate files, but now I get a 403 Forbidden error when I try to
access the server, and it says I don't have permission to access root.
I'm not sure what I've done...lol  I attached an updated config file,
thanks for your continued help...
-Calvin

-----Original Message-----
From: Doug Groves [mailto:groups@valis.net] 
Sent: Monday, January 07, 2002 9:42 AM
To: users@httpd.apache.org
Subject: RE: simple question

Hi Carl,

I haven't tried apache on Windows, but the first thing I would
suggest is that you should change your directory to one that
doesn't have spaces in the name.  AFAIK apache doesn't like
folders with spaces, though like I said, I'm not sure.

-----Original Message-----
From: Calvin Redding [mailto:vorlon_cruiser@yahoo.com]
Sent: Monday, January 07, 2002 10:26 AM
To: users@httpd.apache.org
Subject: RE: simple question


I thought I had this set up right, but maybe I did something wrong.  I
attached my copy of httpd.conf--the directory I want for root is
C:/documents and settings/calvin/my documents

Thanks a lot,
-Calvin



---------------------------------------------------------------------
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: simple question

Posted by Doug Groves <gr...@valis.net>.
Hi Carl,

I haven't tried apache on Windows, but the first thing I would
suggest is that you should change your directory to one that
doesn't have spaces in the name.  AFAIK apache doesn't like
folders with spaces, though like I said, I'm not sure.

-----Original Message-----
From: Calvin Redding [mailto:vorlon_cruiser@yahoo.com]
Sent: Monday, January 07, 2002 10:26 AM
To: users@httpd.apache.org
Subject: RE: simple question


I thought I had this set up right, but maybe I did something wrong.  I
attached my copy of httpd.conf--the directory I want for root is
C:/documents and settings/calvin/my documents

Thanks a lot,
-Calvin



---------------------------------------------------------------------
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: simple question

Posted by Calvin Redding <vo...@yahoo.com>.
I thought I had this set up right, but maybe I did something wrong.  I
attached my copy of httpd.conf--the directory I want for root is
C:/documents and settings/calvin/my documents

Thanks a lot,
-Calvin

-----Original Message-----
From: James Covington [mailto:webmaster@insw.org] 
Sent: Sunday, January 06, 2002 9:58 PM
To: users@httpd.apache.org
Subject: Re: simple question

At 09:51 P 01/06/2002 -0600, you wrote:
>I'm new to apache, and I have a simple question; where do I put the
html
>files I want instead of the default, for instance the index.html for
the
>root of my site?  I've looked through the docs and I didn't see clearly
>where it was.

Well, that's up to you.  Wherever you set DocumentRoot in your
httpd.conf, 
is where you want your web files.  If you already have web files in a 
specific directory, then set DocumentRoot to that directory.  If you are

using virtual hosting, then that is set in each <VirtualHost> tag.  I 
prefer using /home/*site*/public_html.

--James


---------------------------------------------------------------------
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: simple question

Posted by James Covington <we...@insw.org>.
At 09:51 P 01/06/2002 -0600, you wrote:
>I'm new to apache, and I have a simple question; where do I put the html
>files I want instead of the default, for instance the index.html for the
>root of my site?  I've looked through the docs and I didn't see clearly
>where it was.

Well, that's up to you.  Wherever you set DocumentRoot in your httpd.conf, 
is where you want your web files.  If you already have web files in a 
specific directory, then set DocumentRoot to that directory.  If you are 
using virtual hosting, then that is set in each <VirtualHost> tag.  I 
prefer using /home/*site*/public_html.

--James


---------------------------------------------------------------------
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: Strange entry in the error_log

Posted by "Jesse.linux" <jd...@inq7.net>.
thanks...can i stop it from appearing to my logs

----- Original Message -----
From: "Mike Arrison" <ar...@gnostech.com>
To: <us...@httpd.apache.org>
Sent: Monday, January 07, 2002 11:46 AM
Subject: RE: Strange entry in the error_log


> Yup.  One of many going around.  I think that one is CodeRed v2.  As
> long as you're not running IIS, you can completely ignore it.
>
> -Mike Arrison
>
> -----Original Message-----
> From: Jesse.linux [mailto:jdelima@inq7.net]
> Sent: Sunday, January 06, 2002 10:56 PM
> To: users@httpd.apache.org
> Subject: Strange entry in the error_log
>
>
> [Mon Jan  7 09:27:24 2002] [error] [client 206.176.128.109] File does
> not
> exist: /home/httpd/html/d/winnt/system32/cmd.exe
>
> is this a worm?....
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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: Strange entry in the error_log

Posted by Mike Arrison <ar...@gnostech.com>.
Yup.  One of many going around.  I think that one is CodeRed v2.  As
long as you're not running IIS, you can completely ignore it.

	-Mike Arrison

-----Original Message-----
From: Jesse.linux [mailto:jdelima@inq7.net] 
Sent: Sunday, January 06, 2002 10:56 PM
To: users@httpd.apache.org
Subject: Strange entry in the error_log


[Mon Jan  7 09:27:24 2002] [error] [client 206.176.128.109] File does
not
exist: /home/httpd/html/d/winnt/system32/cmd.exe

is this a worm?....


---------------------------------------------------------------------
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: simple question

Posted by "Jesse.linux" <jd...@inq7.net>.
i think u just have to edit your http.conf....
change the DocumentRoot directive to where u want to put the index.html
file....but make sure that directory exist.

----- Original Message -----
From: "Calvin Redding" <vo...@yahoo.com>
To: <us...@httpd.apache.org>
Sent: Monday, January 07, 2002 11:51 AM
Subject: simple question


> I'm new to apache, and I have a simple question; where do I put the html
> files I want instead of the default, for instance the index.html for the
> root of my site?  I've looked through the docs and I didn't see clearly
> where it was.
>
> Thanks,
> -Calvin
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> ---------------------------------------------------------------------
> 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: simple question

Posted by Mike Arrison <ar...@gnostech.com>.
By default the path is /usr/local/apache/htdocs
Look for the DocumentRoot directive in the httpd.conf file.

	-Mike Arrison

-----Original Message-----
From: Calvin Redding [mailto:vorlon_cruiser@yahoo.com] 
Sent: Sunday, January 06, 2002 10:51 PM
To: users@httpd.apache.org
Subject: simple question


I'm new to apache, and I have a simple question; where do I put the html
files I want instead of the default, for instance the index.html for the
root of my site?  I've looked through the docs and I didn't see clearly
where it was.

Thanks,
-Calvin



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


simple question

Posted by Calvin Redding <vo...@yahoo.com>.
I'm new to apache, and I have a simple question; where do I put the html
files I want instead of the default, for instance the index.html for the
root of my site?  I've looked through the docs and I didn't see clearly
where it was.

Thanks,
-Calvin



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Strange entry in the error_log

Posted by "Jesse.linux" <jd...@inq7.net>.
[Mon Jan  7 09:27:24 2002] [error] [client 206.176.128.109] File does not
exist: /home/httpd/html/d/winnt/system32/cmd.exe

is this a worm?....


---------------------------------------------------------------------
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: (Fwd) Fatal relocation error

Posted by Steve Nelle <sn...@satx.rr.com>.
Well, the silence from this mailing list has been deafening (not that 
I've had time to pursue it) on the relocation errors that I've been 
getting with the mod_include operations listed below.  I've seen 
some similar problems with the Solaris platform, and I've finally 
had time to do some research into the relocation problem.

It appears that the root problem is the binutils package that most of 
us have loaded onto their Solaris 8 system.  Apache has to use the 
native Sun linker (/usr/bin/ccs) to properly bind the shared libraries 
with all of the utilities that needed to be compiled into it.  I've done 
this, and the shared libraries are working now.

Sorry that it took me so long to follow up on this.

Steve Nelle



On 8 Dec 2001 at 19:58, Steve Nelle wrote:

> Sorry if this is a duplicate - I munged the original subscribe 
> message to the mailing list, and was wondering if it went through.
> 
> Platform: Solaris 8
> GCC: 2.95.3
> Apache: 1.3.22
> 
> I downloaded the latest version of apache to install on my
> box, and used the following set of flags to ./configure:
> 
> ./configure --prefix=/www/apache \
> 	 --enable-shared=cgi  \
> 	--enable-shared=include
> 
> 
> It actually compiled fine (no errors), and did the install into the 
> place where I wanted it to go (/www/apache).  But when I try to start 
> it up, I get this error:
> 
>  ../bin/apachectl start
> Syntax error on line 205 of /www/apache/conf/httpd.conf:
> Cannot load /www/apache/libexec/mod_include.so into server: 
> ld.so.1: /www/apache/bin/httpd: fatal: relocation error: file 
> /www/apache/libexec/mod_include.so: symbol ap_chdir_file: 
> referenced symbol not found
> ../bin/apachectl start: httpd could not be started
> 
> 
> Now, I found the ap_chdir_file in src/main in util.c, and it's compiled 
> into the libmain.a file.    mod_include.so is in my 
> /www/apache/libexec directory, but I'm missing something rather 
> obvious.  I've done google searches, but come up with stuff that 
> appears to not apply, I've looked all over the www.apache.org site 
> for similar things, but I'm stumped.
> 
> Anyone want to point me in the right direction?
> 
> Thanks!!
> 
> Steve Nelle
> ------- End of forwarded message -------Steve Nelle       | "Man is the 
> lowest cost, 150-pound
> Seguin, Tx        | nonlinear, all-purpose computer system
> snelle@satx.rr.com| that can be produced by unskilled labor."
>                   |  - NASA report on manned space exploration
> 
> 
> ---------------------------------------------------------------------
> 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