Unix Technical Forum

apache dies

This is a discussion on apache dies within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello, a very strange thing is happening to my apache. I have been using apache+php-mysql in my workstation for ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 03:28 PM
stefano.troiani@gmail.com
 
Posts: n/a
Default apache dies

Hello,
a very strange thing is happening to my apache.
I have been using apache+php-mysql in my workstation for several years
to test my web sites before uploading them.
Two days ago, suddenly, apache died with no apparently reason while
working, I tried to restart it but no way.
It seems to restart, no errors in /var/log/apache/error.log or in
/var/log/messages, "apachectl start" seems to work saying
"/usr/sbin/apachectl start: httpd started" but it is false.
So, i decided to sobstitute my httpd.conf with the default one, this
time it restarts just for two or three clicks and then dies again, no
errors in the logs files.
I also tried to download the package and reinstalled it, just in case,
but no luck.
I am stuck, without apache i can not work as i like, but i don't know
where to look for the problem.
Any clue will be very appreciated.

Regards,

Stefano

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 03:28 PM
Grant
 
Posts: n/a
Default Re: apache dies

On 28 Mar 2006 23:51:09 -0800, "stefano.troiani@gmail.com" <stefano.troiani@gmail.com> wrote:

>I am stuck, without apache i can not work as i like, but i don't know
>where to look for the problem.


Apache just don't fall over and die on a whim... But then, I don't
let it near PHP, that may be fatal

>Any clue will be very appreciated.


Out of disk space? /var or /tmp?

Grant.
--
Memory fault -- brain fried
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 03:29 PM
No_One
 
Posts: n/a
Default Re: apache dies

On 2006-03-29, stefano.troiani@gmail.com <stefano.troiani@gmail.com> wrote:
> Hello,
> a very strange thing is happening to my apache.
> I have been using apache+php-mysql in my workstation for several years
> to test my web sites before uploading them.
> Two days ago, suddenly, apache died with no apparently reason while
> working, I tried to restart it but no way.
> It seems to restart, no errors in /var/log/apache/error.log or in
> /var/log/messages, "apachectl start" seems to work saying
> "/usr/sbin/apachectl start: httpd started" but it is false.
> So, i decided to sobstitute my httpd.conf with the default one, this
> time it restarts just for two or three clicks and then dies again, no
> errors in the logs files.
> I also tried to download the package and reinstalled it, just in case,
> but no luck.


Start apache but with the following option, see if any useful info pops.

apachectl fullstatus
apachectl configtest

ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 03:29 PM
No_One
 
Posts: n/a
Default Re: apache dies

On 2006-03-29, No_One <no_one@no_where.com> wrote:
>
> Start apache but with the following option, see if any useful info pops.
>
> apachectl fullstatus
> apachectl configtest
>
> ken


To follow up on my own post, apache must already be started to use the above
options....fuzzy thinking...sorry.

ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 03:29 PM
stefano.troiani@gmail.com
 
Posts: n/a
Default Re: apache dies

> Out of disk space? /var or /tmp?

No, I only have one partition ( / ) and it has 4 Gb free


Stefano

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 03:29 PM
Carl Inglis
 
Posts: n/a
Default Re: apache dies

On 2006-03-29, stefano.troiani@gmail.com <stefano.troiani@gmail.com> wrote:
[snip]
> I am stuck, without apache i can not work as i like, but i don't know
> where to look for the problem.
> Any clue will be very appreciated.


Apache 2.2, 2.0 or 1.3?

For 1.3, you might want to try starting httpd from the command line
with the -X parameter? Might give you some sort of indication as to
the problem? http://httpd.apache.org/docs/1.3/programs/httpd.html

Carl
--
"D'you know, I don't think I've got it in me to shoot my flatmate,
my Mum, and my girlfriend all in the same evening." - Shaun of the Dead
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 03:29 PM
stefano.troiani@gmail.com
 
Posts: n/a
Default Re: apache dies

> Start apache but with the following option, see if any useful info pops.

> apachectl fullstatus
> apachectl configtest


As I said I can start apache for 10 secs with a virgin httpd.conf until
it dies, this is what i got:

- Result of apachectl fullstatus:

Looking up localhost
Making HTTP connection to localhost
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Unexpected network read error; connection aborted.
Can't Access `http://localhost/server-status'
Alert!: Unable to access document.

lynx: Can't access startfile


Result of apachectl configtest:

Sintax OK

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 03:29 PM
stefano.troiani@gmail.com
 
Posts: n/a
Default Re: apache dies

> Apache 2.2, 2.0 or 1.3?


Apache 1.3


Option -X gives me this:

File size limit exceeded

What does it means?

Thanks,

Stefano

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 03:29 PM
stefano.troiani@gmail.com
 
Posts: n/a
Default Re: apache dies

> What does it means?

Sorry for asking, I had to find it by myself and so i did.

The log file reached 2Gb, I emptyed it and now it's fine.

Thanks Carl,

Stefano

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 03:29 PM
Carl Inglis
 
Posts: n/a
Default Re: apache dies

On 2006-03-29, stefano.troiani@gmail.com <stefano.troiani@gmail.com> wrote:
>> What does it means?

>
> Sorry for asking, I had to find it by myself and so i did.
>
> The log file reached 2Gb, I emptyed it and now it's fine.


[chuckle] After seeing your previous post giving the results of
"fullstatus" I was going to suggest a file system issue.

This might be of use:
http://httpd.apache.org/docs/1.3/logs.html#rotation

Glad to have been able to help.

Carl
--
"D'you know, I don't think I've got it in me to shoot my flatmate,
my Mum, and my girlfriend all in the same evening." - Shaun of the Dead
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com