Sponsored Content
Full Discussion: Waiting for localhost.
Operating Systems Linux Debian Waiting for localhost. Post 302937691 by Meow613 on Saturday 7th of March 2015 10:11:54 PM
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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

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

8. 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

9. 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

10. 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
All times are GMT -4. The time now is 03:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy