Waiting for localhost.


 
Thread Tools Search this Thread
Operating Systems Linux Debian Waiting for localhost.
# 1  
Old 03-04-2015
Waiting for localhost.

I am getting the message - waiting for localhost.

Here are some diagnostic steps I have tried ....

Code:
root@meow:/home/ethan# cat /var/www/cgi-bin/httpd.conf
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/jkj
ServerName 127.0.0.1:80
Listen xx.xx.xx.xx:80
Listen 127.0.0.1:80

root@meow:/home/ethan# cat /etc/hosts
127.0.0.1    localhost
127.0.1.1    meow

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

root@meow:/var/www# netstat -tulpen | grep apache
tcp6       0      0 :::80                   :::*                    LISTEN      0          479768      17489/apache2   

root@meow:/var/www# tail -n 20   /var/log/apache2/error.log 

Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.

Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.

[Mon Mar 02 08:40:45.086896 2015] [mpm_prefork:notice] [pid 12464] AH00169: caught SIGTERM, shutting down
Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.

Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.

[Mon Mar 02 08:40:56.451265 2015] [mpm_prefork:notice] [pid 17489] AH00163: Apache/2.4.9 (Debian) PHP/5.6.0RC2 configured -- resuming normal operations
[Mon Mar 02 08:40:56.451332 2015] [core:notice] [pid 17489] AH00094: Command line: '/usr/sbin/apache2'

----

root@meow:/var/www# 
root@meow:/var/www# tail -n 20   /var/log/messages
Mar  2 07:35:07 meow rsyslogd: [origin software="rsyslogd" swVersion="7.6.3" x-pid="1774" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Mar  2 07:35:57 meow rsyslogd-2359: action 'action 17' resumed (module 'builtin:ompipe') [try http://www.rsyslog.com/e/2359 ]
------

root@meow:/var/www# tail -n 20    /var/log/syslog
Mar  2 08:39:54 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:40:24 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:40:54 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:41:24 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:41:54 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:42:22 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:42:52 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:43:22 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:43:52 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:44:22 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:44:52 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:45:22 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:45:46 meow udisksd[3811]: Error performing housekeeping for drive /org/freedesktop/UDisks2/drives/WDC_WD5000BPKX_00HPJT0_WD_WX61AC3E1237: Error updating SMART data: sk_disk_check_sleep_mode: Operation not supported (udisks-error-quark, 0)
Mar  2 08:45:52 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:46:22 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:46:52 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:47:22 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:47:52 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:48:22 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'
Mar  2 08:48:52 meow avahi-daemon[2256]: Received response from host 192.168.1.1 with invalid source port 32768 on interface 'eth0.0'

root@meow:/var/www# netstat -tulpen | grep apache
tcp6       0      0 :::80                   :::*                    LISTEN      0          479768      17489/apache2

Thanks
# 2  
Old 03-07-2015
I think the error I have is in the javascript call, since it hangs when executing it. Eventually the call is executed, but that eventually might be 10 to 25 min.

Code:
                        <script type="text/javascript">
                        <!--
                        window.open("HandleWeight.php","_self")
                        //-->\
                        </script>

Here are some debug info. Hope it helps.
Code:
root@meow:/home/ethan/BluBev# apache2 -S 
[Fri Mar 13 00:19:23.651029 2015] [core:warn] [pid 21435] AH00111: Config variable  ${APACHE_LOCK_DIR} is not defined 
[Fri Mar 13 00:19:23.651100 2015] [core:warn] [pid 21435] AH00111: Config variable  ${APACHE_PID_FILE} is not defined 
[Fri Mar 13 00:19:23.651117 2015] [core:warn] [pid 21435] AH00111: Config variable  ${APACHE_RUN_USER} is not defined 
[Fri Mar 13 00:19:23.651124 2015] [core:warn] [pid 21435] AH00111: Config variable  ${APACHE_RUN_GROUP} is not defined 
[Fri Mar 13 00:19:23.651142 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR}  is not defined 
[Fri Mar 13 00:19:23.667273 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR}  is not defined 
[Fri Mar 13 00:19:23.667416 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR}  is not defined 
[Fri Mar 13 00:19:23.667431 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR}  is not defined 
[Fri Mar 13 00:19:23.667514 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR}  is not defined 
[Fri Mar 13 00:19:23.667527 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR}  is not defined 
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf: 
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

I have written two trivial PHP programs to debug this...

start.php

Code:
?> 
        <script type="text/javascript"> 
        <!-- 
    //   window.open(" http://localhost/end.php","_self"); //slower 
    //    window.location.href("http://localhost/end.php");  //never calls script 
    //    window.location.assign("http://localhost/end.php"); //almost instantaneous 
     
        window.open(" http://localhost/HandleWeight.php","_self");  //hangs 
    //    window.location.href("http://localhost/HandleWeight.php"); //never calls script 
    //    window.location.assign("http://localhost/HandleWeight.php"); //hangs 
     

        //-->\ 
        </script>

HandleWeight is the desired target of the POS program I am developing.

The test target...end.php
Code:
<?php 
        echo "<br />World"; 
?>

The behavior is notated in the code above.

Last edited by Meow613; 03-15-2015 at 03:35 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cannot find localhost

I get a "not found" error from this localhost/choice.php ethan@meow:~$ ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.025 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.036 m and this ethan@meow:~$ mysql -u... (4 Replies)
Discussion started by: Meow613
4 Replies

2. Solaris

Timeout: No Response from localhost

Hi All! I having an issue when trying to run snmpwalk, so the following command it returns an error: bash-3.00# /usr/sfw/bin/snmpwalk -v 2c -c public localhost sysDescr.0 Timeout: No Response from localhost bash-3.00# I have checked also: bash-3.00# svcs -a | grep sma online ... (2 Replies)
Discussion started by: fretagi
2 Replies

3. AIX

Unable to ping localhost

Hi all, I have gone through many posts related to this issue,but my issue wasn't resolved hence creating new thread. I am unable to ping localhost. ping localhost tries to ping localhost which is defined in DNS. My /etc/hosts has entry for localhost as 127.0.0.1 loopback localhost. ... (8 Replies)
Discussion started by: chpsam
8 Replies

4. UNIX for Advanced & Expert Users

DIG uses localhost

Hi, I have these entries in the /etc/esolv.conf: ------------ domain xxxxxx search yyyyyy nameserver 127.0.0.1 nameserver aaaaaaaaaaaaaaaa nameserver bbbbbbbbbbbbbbbb ------------- When I use 'dig' or 'nslookup' command, like 'dig yahoo.com' it uses the localhost as the server. I... (2 Replies)
Discussion started by: chaandana
2 Replies

5. UNIX for Dummies Questions & Answers

Can't Open Display localhost:0.0

I'm trying to connect to my linux server but I'm having some major problems. The server had OEL 5 installed and my local pc is running Windows XP. I'm using PuTTy to connect to the server with Xming running on my loacl machine. I login as root and run the following command - export... (5 Replies)
Discussion started by: garethnsolomons
5 Replies

6. UNIX for Dummies Questions & Answers

Error while doing rcp to localhost

Hi, Rcping a file to localhost fails due to echo statement in .login file on a machine with RH 5.5 However, the same rcp is successful on another machine with Suse 9.2 (with the same .login). I cannot change .login file and was wondering at what could be causing this ? Command that I am... (2 Replies)
Discussion started by: coolket
2 Replies

7. UNIX for Dummies Questions & Answers

How can I ftp to localhost from terminal ?

How can I ftp to localhost from terminal ? I want to test my localhost user and password.. > ftp localhost Trying ::1... ftp: connect to address ::1: Connection refused Trying fe80::1%lo0... ftp: connect to address fe80::1%lo0: Unknown error: 0 Trying 127.0.0.1... ftp: connect:... (2 Replies)
Discussion started by: aneuryzma
2 Replies

8. UNIX for Advanced & Expert Users

localhost problem!

hello guys, this morning when I start my pc (gentoo) I get some strange errors about localhost. "Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" ... Apache the same for my aplications, I have to use the full address of my pc instead of... (1 Reply)
Discussion started by: georgeplus
1 Replies

9. UNIX for Dummies Questions & Answers

Unix, Netscape and Localhost

I have configured local host (127.0.0.1) in the hosts file, and the Apache conf file. Why does Netscape take me to a search page when I attempt to go to Http://localhost ?? (4 Replies)
Discussion started by: scruffeone
4 Replies

10. UNIX for Advanced & Expert Users

can not find localhost in xntpdc

When I run "xntpdc" I get an error saying "can not find local host". If I run a "host <hostname>" and exit "xntpdc", upon returning to "xntpdc" the program gives me the same error. :confused: (1 Reply)
Discussion started by: Jahnathan
1 Replies
Login or Register to Ask a Question