Web Hosting Talk







View Full Version : PHP problem


rrsnider
06-03-2002, 08:11 AM
I have an order processing web site on my RAQ that is written with PHP. Sporadically, users are complaining that they get the following error message when they submit a form (below). The entire order process consists of a series of 3 forms (order, confirmation and payment). The problem seems to only occur when submitting the final form (payment info). If they click back on their browser and resubmit the page, everything is fine. I have recreated the problem and it seems to happen every third time or so. Any ideas what would cause this?


The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

--------------------------------------------------------------------------------

Please try the following:

Click the Refresh button, or try again later.

If you typed the page address in the Address bar, make sure that it is spelled correctly.

To check your connection settings, click the Tools menu, and then click Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP).
If your Network Administrator has enabled it, Microsoft Windows can examine your network and automatically discover network connection settings.
If you would like Windows to try and discover them,
click Detect Network Settings
Some sites require 128-bit connection security. Click the Help menu and then click About Internet Explorer to determine what strength security you have installed.
If you are trying to reach a secure site, make sure your Security settings can support it. Click the Tools menu, and then click Internet Options. On the Advanced tab, scroll to the Security section and check settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0.
Click the Back button to try another link.



Cannot find server or DNS Error
Internet Explorer

anna
06-03-2002, 09:38 AM
I don't really know about Raq's, but I had a very similar problem in the past that I was able to figure out. My problem was that Apache's "KeepAliveTimeout" setting was very low (15 seconds).

The KeepAliveTimeout setting is "Number of seconds to wait for the next request from the same client on the same connection." So when a user was going through the system, they would take over 15 seconds to fill in the page, and so it would timeout, and give the same error that you receive. I bumped it up to 300 and never had that problem again.

ljprevo
06-03-2002, 10:46 AM
Are you using SSL?

I had this problem on one of my Raq's (using PHP and SSL)

I got this from a private message board (modernbill)

(Now this don't work on a Raq, look at my notes at the bottom!)

----------------------

Fix SSL server not found in Explorer

If you are a modernbill subscriber the UR is here:
http://www.modernsupport.com/modernbill/forums/showthread.php?s=&threadid=1239

This totally corrected my having to resfresh the page to view it after the error " server or page not found " in ssl.

You need to edit you httpd.conf file.

1) create a backup
cp /usr/local/psa/apache/conf/httpd.conf /usr/local/psa/apache/conf/httpd.conf.ssl.bk

2) Open in a text editor
pico /usr/local/psa/apache/conf/httpd.conf

3) hit the control key and the letter w to bring up the search window and
Type in " <IfModule mod_setenvif.c> " and hit enter

4) Look for the following line just under the previous search: About 11 lines under
" BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 " and Delete It


5) Add this line in its place :

SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
6) Control x
then " y " for yes to save it

7) Restart Apache: /usr/local/psa/admin/sbin/my_apci_rst


--------------------

Taking that info and using it on the Raq I edited:
pico etc/httpd/conf/httpd.conf

Searched for this:

$PerlConfig .= "Listen $ip:443\n";
$PerlConfig .= "<VirtualHost $ip:443>\n";
$PerlConfig .= "SSLengine on\n";

I change that to this:

$PerlConfig .= "Listen $ip:443\n";
$PerlConfig .= "<VirtualHost $ip:443>\n";
$PerlConfig .= "SetEnvIf User-Agent \".*MSIE.*\" \\n";
$PerlConfig .= " nokeepalive ssl-unclean-shutdown \\n";
$PerlConfig .= " downgrade-1.0 force-response-1.0\n";
$PerlConfig .= "SSLengine on\n";

Works like a charm on my Raq now. No more "pages can't be displayed" errors.

rrsnider
06-03-2002, 09:12 PM
Yes I am using SSL. I will give this a shot and post the results. Thanks for the help.

ljprevo
06-05-2002, 09:58 AM
No problem. Just curious if this worked for you or not.

roly
06-05-2002, 08:21 PM
ljprevo's tutor has Plesk specific paths

ljprevo
06-05-2002, 08:54 PM
Originally posted by roly
ljprevo's tutor has Plesk specific paths

The Top part yes, but look after #7, I talk about what needs to be done on the Raq.

BeamerSD
01-20-2003, 09:48 PM
For anyone dealing with this issue on a RAQ 4.

I don't have the settings that ljprevo talks about in his thread in my httpd.conf so I tried the KeepAliveTimeout = 300. Restarted httpd and works like a charm.

All along I thought it was my browser, because the error doesn't happen on Netscape. Maybe I need to add ljprevo's suggestions anyway. Is the KeepAliveTimeout enough for a RAQ 4?

thanks,
Rich

BruceT
01-21-2003, 04:11 PM
Also note the Explorer bug mentioned is just that -- a problem with Interner Exploder and SSL, NOT with the RaQ!