You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ba...@mediageneral.com on 2003/04/03 17:09:12 UTC

[users@httpd] Apache says it's started but it hasn't....

Okay it tells me it's started but there are no processes when I do a grep
and nothing in the error_log
Any suggestions?

# ps -ef|grep apache
# ./apachectl start
./apachectl start: httpd started
# ps -ef|grep apache




Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

---------------------------------------------------------------------
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] Strange behaviour of user's pages

Posted by Roberto Barbieri <r....@carpinet.it>.
Oh, i've forgot

I'm using Apache 2.0.40 on linux redhat 8.0
bye
Roberto

----- Original Message -----
From: "Roberto Barbieri" <r....@carpinet.it>
To: <us...@httpd.apache.org>
Sent: Thursday, April 03, 2003 5:28 PM
Subject: [users@httpd] Strange behaviour of user's pages


> Hi,
>
> i noticed a strange thing happening with users homepages.
>
> When a user put files or directories on his /home/user/public_html dir
> everithing, including indexing, works fine.
> The strange thing happens when the user create a .htaccess file
> inside a subdirectory, like:
>
> /home/user/public_html/subdir/.htaccess
>
> After creating this file, if i try to browse http://hostname/~user/
> the directory "subdir" disappear while the others files and directories
> are shown. Obviously if i remove the .htaccess files all works fine again
> and the "subdir" shows itself again.
>
> What the problem can be?
>
> This is how the user's homepages are configured:
>
> <Directory /home/*/public_html>
>     AllowOverride FileInfo AuthConfig Limit
>     Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
>     <Limit GET POST OPTIONS>
>         Order allow,deny
>         Allow from all
>     </Limit>
>     <LimitExcept GET POST OPTIONS>
>         Order deny,allow
>         Deny from all
>     </LimitExcept>
> </Directory>
>
>
> Thanks in advance for any help!
> Roberto
>
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] Strange behaviour of user's pages

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 3 Apr 2003, Roberto Barbieri wrote:
> The strange thing happens when the user create a .htaccess file
> inside a subdirectory, like:
>
> /home/user/public_html/subdir/.htaccess
>
> After creating this file, if i try to browse http://hostname/~user/
> the directory "subdir" disappear while the others files and directories
> are shown. Obviously if i remove the .htaccess files all works fine again
> and the "subdir" shows itself again.

In recent versions of Apache, mod_autoindex does not show
files/directories that the user would not be allowed to access.  This is
to prevent possible unintentional disclosure of information.

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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Strange behaviour of user's pages

Posted by Roberto Barbieri <r....@carpinet.it>.
Hi,

i noticed a strange thing happening with users homepages.

When a user put files or directories on his /home/user/public_html dir
everithing, including indexing, works fine.
The strange thing happens when the user create a .htaccess file
inside a subdirectory, like:

/home/user/public_html/subdir/.htaccess

After creating this file, if i try to browse http://hostname/~user/
the directory "subdir" disappear while the others files and directories
are shown. Obviously if i remove the .htaccess files all works fine again
and the "subdir" shows itself again.

What the problem can be?

This is how the user's homepages are configured:

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>


Thanks in advance for any help!
Roberto

---------------------------------------------------------------------
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 says it's started but it hasn't....

Posted by John Darin Holloway <jd...@blue.net>.
grep httpd not grep apache


John Darin Holloway
Systems Administrator and Web Developer
Bluegrass Network, LLC

----- Original Message -----
From: <ba...@mediageneral.com>
To: <us...@httpd.apache.org>
Sent: Thursday, April 03, 2003 10:09 AM
Subject: [users@httpd] Apache says it's started but it hasn't....


> Okay it tells me it's started but there are no processes when I do a grep
> and nothing in the error_log
> Any suggestions?
>
> # ps -ef|grep apache
> # ./apachectl start
> ./apachectl start: httpd started
> # ps -ef|grep apache
>
>
>
>
> Bobbie Atristain
> Internet Systems Administrator
> Media General, INC.
> 804.649.6156
>
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] Apache says it's started but it hasn't....

Posted by Jimmy McDonald <io...@bsdshell.dyndns.org>.
Actually... I think these directives are based on your version
of mod_ssl. I think the SSLEnabled will work either way but if
your mod_ssl is version 2.x then you can use SSLEngine on

Sorry for the confusion.



On Thu, 3 Apr 2003, Jimmy McDonald wrote:

> If I remember correctly you are on a Solaris box.
>
> I have run into this problem before and its very frustrating.
>
> Since the logs are showing you nothing, my next step would
> be to take a look at what is really happening.
>
> The following will create a big ugly file with a bunch of stuff
> that looks impossible to understand.
>
> truss -o truss.out -f ./apachectl start
>
> ----[sidenote]----
>
> 	If you have linux, I believe the equivalent would be:
>
> 	strace -o strace.out -f ./apachectl start
>
> 	If so, just do a man strace
>
> ----[/sidenote]----
>
> If you issue that, all the system calls, signals and faults of the
> process and child processes will be sent to the file truss.out
>
> >From there you might be able to get some insight as to what
> exactly is causing the failure.
>
> This file is not easy to read and you might want read the man
> pages on it to see if some of the options might be interesting
> to you but the man pages don't tell you how to read the output
> but rather how to pick and chose what you want to output and
> to some extent, how you want it to look.
>
> There could be things that on first pass look like errors
> where the process says it couldn't find something in a certain
> path but if you look it will keep looking in other places and
> in the end actually does find it.
>
> Usually what I do edit the truss.out and go to the end of the
> file and work my way up because the message where process terminated
> will be most likely be at the end. Of course, some condition that
> was recorded earlier in the file might be the reason it terminated.
>
> Sometimes even using truss doesn't reveal what you were hoping it would
> but since it takes almost no time it's worth a go.
>
>
> On Thu, 3 Apr 2003 batristain@mediageneral.com wrote:
>
> > Okay it tells me it's started but there are no processes when I do a grep
> > and nothing in the error_log
> > Any suggestions?
> >
> > # ps -ef|grep apache
> > # ./apachectl start
> > ./apachectl start: httpd started
> > # ps -ef|grep apache
> >
> >
> >
> >
> > Bobbie Atristain
> > Internet Systems Administrator
> > Media General, INC.
> > 804.649.6156
> >
> > ---------------------------------------------------------------------
> > 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
>
>


---------------------------------------------------------------------
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 says it's started but it hasn't....

Posted by Jimmy McDonald <io...@bsdshell.dyndns.org>.
If I remember correctly you are on a Solaris box.

I have run into this problem before and its very frustrating.

Since the logs are showing you nothing, my next step would
be to take a look at what is really happening.

The following will create a big ugly file with a bunch of stuff
that looks impossible to understand.

truss -o truss.out -f ./apachectl start

----[sidenote]----

	If you have linux, I believe the equivalent would be:

	strace -o strace.out -f ./apachectl start

	If so, just do a man strace

----[/sidenote]----

If you issue that, all the system calls, signals and faults of the
process and child processes will be sent to the file truss.out

>From there you might be able to get some insight as to what
exactly is causing the failure.

This file is not easy to read and you might want read the man
pages on it to see if some of the options might be interesting
to you but the man pages don't tell you how to read the output
but rather how to pick and chose what you want to output and
to some extent, how you want it to look.

There could be things that on first pass look like errors
where the process says it couldn't find something in a certain
path but if you look it will keep looking in other places and
in the end actually does find it.

Usually what I do edit the truss.out and go to the end of the
file and work my way up because the message where process terminated
will be most likely be at the end. Of course, some condition that
was recorded earlier in the file might be the reason it terminated.

Sometimes even using truss doesn't reveal what you were hoping it would
but since it takes almost no time it's worth a go.


On Thu, 3 Apr 2003 batristain@mediageneral.com wrote:

> Okay it tells me it's started but there are no processes when I do a grep
> and nothing in the error_log
> Any suggestions?
>
> # ps -ef|grep apache
> # ./apachectl start
> ./apachectl start: httpd started
> # ps -ef|grep apache
>
>
>
>
> Bobbie Atristain
> Internet Systems Administrator
> Media General, INC.
> 804.649.6156
>
> ---------------------------------------------------------------------
> 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