>From out of left field with a little inspiration:

I hazarded a look at the host log files and found I was getting exited on sig 
11 errors from httpd- even though ps was still showing it as running in the 
jail.

So a google search now showed up some more possible causes; most of those 
surrounding mods. In particular php was common with extensions causing a lot of 
failures.

I now had something to work with. I commented out all the extensions in 
php/extensions.ini and restarted apache: Its alive! I then tried to work out 
why- I suspected memory, but more googling found reordering of the extensions 
to help, but which ones? I went through one by one each of the extensions to 
find a culprit or space problem (actually got impatient and by the end tried 4 
at a time) and found 4 which seemed similar and did cause a failure.

I commented out different combinations and finally hit on the spl extension; 
uncommenting all others apache kept going, so here was my culprit. Googled some 
more, and couldn't find a reason why it would be hurting. So I ran php -v on 
the cli and got a seg fault with spl, I ran gdb php -v and got a different 
error which had to be deciphered (something to do with misc.c), but if spl was 
not available mysql and others whinged.

More googling... tried apache php5 spl seg fault and got an obscure reference: 
spl was not the problem at all! I had in my endeavours to resolve this issue 
put the spl extension at the beginning of the extensions.ini file, apparently 
the recode extension can cause conflicts because the mysql and imap extension 
want it, and recode is not available until later in the extensions.ini- put 
recode at the beginning and presto! Finally everybody's happy... :)

Sorry to waste electrons (so to speak), but I figured someone might have a 
similar issue and I'm hoping this will point them in the right direction sooner 
rather than hours of endless searching for something they're not sure they're 
searching for. I've also given my workings in the resolution to save 
"maybe/maybe not the same kind of problem". The spl/recode extension issue is 
rather obscure, the majority of references only point to reordering of 
extensions but don't say which ones.

BTW: why didn't I think of the php mod first? I was sure I had php and apache 
working fine before- I just hadn't installed all of the extensions due to 
space... :) Such is life...

Cheers




On Wed  5/08/09  2:02 PM , apache-u...@herveybayaustralia.com.au wrote:

> I know this sounds like a headline, but its true.
> I had a disk space problem in the jail, so I reconfigured and
> restored the apache on the new disk size. I then added my other
> modules that I required from ports. I then checked if it all worked,
> and I got nada- firefox tells me the sites valid but the server won't
> connect.
> So far I've tried upping log levels to debug, httpd -X, and running
> portupgrade -fRr apache. All to no avail- I can get no message or hint
> or idea of why apache fails. If I run ps -ax I see httpd
> -DNOHTTPACCEPT or httpd -X still running (apparently), but I can't see
> any listeners on any ports/interfaces with sockstat.
> I need some help debugging this- something (ANYTHING!) that will
> give me a clue on what I've missed here. I'd rather not just blow it
> all away without attempting to find out what the hell is behind this.
> I'm running a jailed FreeBSD 7.2 and apache-2.2.11_7 built from
> ports. I've built php5-5.2.10, mod_perl2-2.0.4_2,3, and
> mod_python-3.3.1_2 all from ports as well. I've tried the
> freebsd-questions list, but I haven't got a response or seen my
> message even get through.
> Any clues will be much appreciated. My logs aren't giving me
> anything, only that all the modules are all loading ok. I had some ssl
> cache warnings, but they're resolved (I think). I believe it can't
> bind to the network for some reason: I need to find that reason.... :)
> Cheers
> ---- Msg sent via @Mail - http://atmail.com/
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See  for more info.
> To unsubscribe, e-mail: 
> "   from the digest: 
> For additional commands, e-mail: 
> 
> 
---- Msg sent via @Mail - http://atmail.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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to