Page 1 of 1

Can't view webpages through localhost with Apache

PostPosted: 20. September 2012 18:34
by tryin_to_learn
I'm running 1.7.2a for Mac. I posted on the Mac forum but haven't gotten any responses and I don't think this is a Mac-specific issue so I'm hoping to get some help here. I've never had trouble until a few days ago. Suddenly, when I try to view my php site via localhost, there is no content on any of the pages. I'm not getting a 404 - not getting a db connection message - just zero content. When I do a view source, there's nothing there. Someone suggested it might be a permissions issue so I checked and although my username had read/write permissions for all the folders, 'admin' and 'everyone' only had read permissions for the xamppfiles, htdocs and the root folder of the site so I changed all of them to read/write. I'm not sure if that was wise but I didn't know what else to try. However, wise or not, it didn't work. I thought maybe I needed a whole new repository now that the permissions were changed so I deleted the original and cloned again. That didn't make a difference, either. I still can't bring up any files from the site.

Everything on my XAMPP console seems to be running fine. The error_log for the past few days has this - none of which I know how to interpret but it was Thurs, Sept 13th when I started having problems. Any suggestions you have will be much appreciated.

[Thu Sep 13 13:36:49 2012] [warn] child process 3599 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:49 2012] [warn] child process 561 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:49 2012] [warn] child process 562 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:49 2012] [warn] child process 563 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:49 2012] [warn] child process 3666 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:49 2012] [warn] child process 6234 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:49 2012] [warn] child process 3593 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:49 2012] [warn] child process 7783 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:49 2012] [warn] child process 570 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:49 2012] [warn] child process 571 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 3599 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 561 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 562 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 563 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 3666 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 6234 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 3593 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 7783 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 570 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:51 2012] [warn] child process 571 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 3599 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 561 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 562 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 563 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 3666 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 6234 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 3593 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 7783 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 570 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:53 2012] [warn] child process 571 still did not exit, sending a SIGTERM
[Thu Sep 13 13:36:55 2012] [notice] caught SIGTERM, shutting down
[Thu Sep 13 16:55:45 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Sep 13 16:55:55 2012] [notice] Digest: generating secret for digest authentication ...
[Thu Sep 13 16:55:55 2012] [notice] Digest: done
[Thu Sep 13 16:55:57 2012] [notice] Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Thu Sep 13 17:00:15 2012] [error] [client 127.0.0.1] File does not exist: /Applications/XAMPP/xamppfiles/htdocs/__ShrinkOffice
[Thu Sep 13 17:49:30 2012] [notice] caught SIGTERM, shutting down
[Fri Sep 14 08:28:13 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Sep 14 08:28:44 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Sep 14 08:28:44 2012] [notice] Digest: done
[Fri Sep 14 08:28:59 2012] [notice] Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Sat Sep 15 10:08:51 2012] [error] [client 127.0.0.1] File does not exist: /Applications/XAMPP/xamppfiles/htdocs/ShrinkOffice, referer: http://localhost/ShrinkOffice/clients.php
[Sat Sep 15 21:15:01 2012] [error] [client 127.0.0.1] File does not exist: /Applications/XAMPP/xamppfiles/htdocs/index.html
[Sun Sep 16 09:12:55 2012] [notice] caught SIGTERM, shutting down
[Sun Sep 16 17:44:35 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Sep 16 17:44:38 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 16 17:44:38 2012] [notice] Digest: done
[Sun Sep 16 17:44:39 2012] [notice] Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations



If it does the SIGTERM thing just when I shut down, then the logs look (to me) pretty normal for the past couple of days but I still can't view any pages through localhost:

[Mon Sep 17 07:27:51 2012] [notice] caught SIGTERM, shutting down
[Wed Sep 19 11:51:38 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Sep 19 11:51:41 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 19 11:51:41 2012] [notice] Digest: done
[Wed Sep 19 11:51:43 2012] [notice] Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Wed Sep 19 11:51:45 2012] [notice] caught SIGTERM, shutting down
[Wed Sep 19 11:51:50 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Sep 19 11:51:51 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 19 11:51:51 2012] [notice] Digest: done
[Wed Sep 19 11:51:51 2012] [notice] Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Wed Sep 19 11:51:53 2012] [notice] caught SIGTERM, shutting down
[Wed Sep 19 11:51:58 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Sep 19 11:51:59 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 19 11:51:59 2012] [notice] Digest: done
[Wed Sep 19 11:51:59 2012] [notice] Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations

Re: Can't view webpages through localhost with Apache

PostPosted: 20. September 2012 21:24
by JonB
Well, since SIGTERM is a Unix specific function (despite the idea that Mac OS is an OS - "not" its a shell for BSD not an OS.) - the short answer is has nothing to do with Windows.
Thus I am moving this to the Linux board as they will at least know what SIGTERM is.

SIGTERM, BTW, is how the OS tells running processes that the world as they know it is likely coming to an end.
http://en.wikipedia.org/wiki/SIGTERM

A. Did you upgrade your MacOS version???
B. You should use Term to discover what all those dying/dead children are/were.
C. My guess is you have Zombies (literally)
Use this Google Search
'child process still did not exit, sending a SIGTERM'

What is 'ShrinkOffice' anyway - or should we guess?

Anyway - Good luck - the state of MAMPP is not your fault or mine
8)

Re: Can't view webpages through localhost with Apache

PostPosted: 21. September 2012 03:08
by tryin_to_learn
A. Did you upgrade your MacOS version???
Not recently.

B. You should use Term to discover what all those dying/dead children are/were.
How do I do this? (Btw, I'm primarily a front-end design type person. My knowledge of servers, how to use the command line, etc. is pretty close to zilch.)

C. My guess is you have Zombies (literally)
So let me get this straight - a bunch of zombies attacked my dying/dead children?? Are we sure this isn't a syfy flick?
Seriously, I did Google this and it sort of fits with my hunch about what happened. I use a program called MacHg for mercurial version control and twice now, it's hung - can't get it to do anything. The first time it happened, I deleted the repository I had on my machine, cloned a new one and all was fine. I tried that this time, and although MacHg is working fine now, Apache isn't (or whatever is causing me to be unable to view my site). The first time, Apache never stopped working, though - just MacHg. I don't know that that's what caused the problem but MacHg hung and I haven't been able to view my site since then so it seems like they must be related in some way.

Use this Google Search
'child process still did not exit, sending a SIGTERM'

I had Googled this - much of it is way over my head, but I did see one suggestion to stop Apache twice and then restart it. I tried that - through the XAMPP console - but it didn't help.


What is 'ShrinkOffice' anyway - or should we guess?
Might be fun to hear your guesses. : ) It's an online app I'm developing for mental health practitioners - does their "office" work for 'em.