PHP upgrade = unreliable script

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
hastx
-


Joined: 13 Nov 2006
Posts: 6

PostPosted: Thu Jun 28, 2007 4:02 pm    Post subject: PHP upgrade = unreliable script Reply with quote

I have a windows server 2003 running Abyss Web Server v2.0.0.20.

Previously, I was running php v5.0.4, and have upgraded to the latest v5.2.2 package from here.

Since upgrading, a login redirection script has been very slow, and half of the time will fail with a generic 500 error to the browser. It is a simple script...check for the presence of a cookie, if not found, redirect to the login page, and it ran perfectly on the old version of php.

Code:

$manage_dir = "Area";
$protected = "/Area/private.php";
if (!isset($_COOKIE["user"])){
header("location:/login/login.php?manage_dir=$manage_dir&protected=$protected");
    exit;
}


Any ideas what could be causing this to fail sometimes, and be slow at others?

I have not noticed any other scripts affected by the upgrade. all other Mysql interaction, etc. is running fine, only the cookie detection/redirection script seems to be affected,so i can only assume the issue is with how php handles the header redirect.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Jun 29, 2007 12:58 pm    Post subject: Re: PHP upgrade = unreliable script Reply with quote

hastx wrote:
I have a windows server 2003 running Abyss Web Server v2.0.0.20.


Why are using such an old version of Abyss Web Server?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
hastx
-


Joined: 13 Nov 2006
Posts: 6

PostPosted: Fri Jun 29, 2007 3:24 pm    Post subject: Re: PHP upgrade = unreliable script Reply with quote

aprelium wrote:

Why are using such an old version of Abyss Web Server?


It's ran flawlessly for years, it wasn't broke so....

My only reason for upgrading php was because I was setting up new databases with new mysql install.

Would the new Abyss have any updates that might be relevant to my particular issue?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jun 30, 2007 1:02 pm    Post subject: Re: PHP upgrade = unreliable script Reply with quote

hastx wrote:
Would the new Abyss have any updates that might be relevant to my particular issue?


New versions of Abyss Web Server feature several major changes. 2.0.0.20 for example does not support FastCGI for example which is now the de facto mode with new newer releases (and it is faster). Newer versions have several bug fixes. This alone is a major incentive to get the newer version (which is free if you are using X1).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
hastx
-


Joined: 13 Nov 2006
Posts: 6

PostPosted: Sat Jun 30, 2007 2:12 pm    Post subject: Reply with quote

I have installed the latest version of the server. After install, I changed the php interface from ISAPI to FastCGI Local Pipes.

The documentation does not really list any semantics of the difference between local pipes and tcp sockets, so i wasn't sure which choice would be best. If i experience any more issues, i will try the tcp sockets.

The script in question does seem to respond much faster under this setup and i have not received any 500 errors yet. I have also tested mysql and all seems to be running well.

Thanks for your help.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jun 30, 2007 2:18 pm    Post subject: Reply with quote

hastx,

There is no real speed difference between TCP and Local pipes for FastCGI. But some interpreters (such as PHP 5.13 and later) support only one of them (see http://www.aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-configuration.html#HOSTS-SCRIPTING-INTERPRETERS-INTERFACE for more details).

So if you install PHP 5.13 or newer, select Local pipes for FastCGI (as explained in http://www.aprelium.com/abyssws/php5win.html ).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group