Forum Moderators: phranque

Message Too Old, No Replies

Apache server hangs up

stand alone single user server system

         

Oncovet

2:41 pm on Nov 22, 2007 (gmt 0)

10+ Year Member



I am running Apache/PHP/MySQL (can't remember versions but not latest as these will not run under 98) under Windows 98 on a stand alone PC with no web access and no networking.

The application is on about 20 pages of PHP

The system hangs up roughly (but irregularly) every 15 page calls. It says either 'Searching for website' or Website found...loading' and eventually times out. The timeout period has not been altered by changing timeout parameters in PHP.ini.

Searching suggests that perhaps the server is using an external port (80?) when it would be better using an internal connection. Problem is I do not know how to do that, or if that is the cause.

Any advice would be much appreciated

rocknbil

5:47 am on Nov 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard oncovet, place a static html file on this server and see if you can duplicate the problem. This would eliminate some problem with the actual execution of php or a problem with the script itself.

Oncovet

2:49 pm on Nov 23, 2007 (gmt 0)

10+ Year Member



Not quite sure what/how you mean. Here is one HTML page as generated by system:

<HTML>
<HEAD>

<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!---
function show(objectId)
{
objectId.style.visibility = 'visible';
}

function clearsel(objId) {
objId.style.visibility = 'hidden';
}

-->
</SCRIPT>
</HEAD>

<BODY onLoad=Javascript:document.stocktable.elements[10].focus()>

<H2>Enter stock obtained on current batch number (06n005) and/or correct drug details price etc</H2>

<FORM NAME='stocktable' ACTION='edstock5.php' METHOD='post'>

<TABLE COLS=2>

<TR><TD>Drugname</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='drugname' VALUE='Ampicare caps 250mg'></TD></TR>

<TR><TD>Drugtype</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='drugtype' VALUE='t'></TD></TR>

<TR><TD>Buyingunit</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='buyingunit' VALUE='500'></TD></TR>

<TR><TD>Sellingunit</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='sellingunit' VALUE='1'></TD></TR>

<TR><TD>Buyingprice</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='buyingprice' VALUE='4240'></TD></TR>

<TR><TD>Markup</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='markup' VALUE='50'></TD></TR>

<TR><TD>Sellingprice</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='sellingprice' VALUE='13'></TD></TR><TR>

<TD>Minstock</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='minstock' VALUE='0'></TD></TR>

<TR><TD>Instock</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='instock' VALUE='9.514'></TD></TR>

<TR><TD>Ordercode</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='ordercode' VALUE='/r/n'></TD></TR>

<TR><TD>Buying units added to stock</TD><TD><INPUT TYPE='text' NAME='stadded'></TD></TR>

</TABLE>

<INPUT TYPE='hidden' VALUE='20' NAME='drugref'>

<INPUT TYPE='hidden' VALUE='1784' NAME='batchref'>Batch 06n005 in stock= 26.85<BR>

<INPUT TYPE='submit' VALUE='Click'/>

</FORM>

</BODY>

</HTML>

Oncovet

2:54 pm on Nov 28, 2007 (gmt 0)

10+ Year Member



I have established that, during hang-up MySQL Command Line Client functions OK so perhaps it is not the Apache?