Waiting for localhost.

I am getting the message - waiting for localhost.

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

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

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.

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

Here are some debug info. Hope it helps.

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

?> 
        <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

<?php 
        echo "<br />World"; 
?> 

The behavior is notated in the code above.