RE: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Albert
Thomas wrote:
 I had a look at the Apache log file I got from the SP ... no clue. All I
 know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

Did you look at the access_log or error_log?

The error_log should give you an indication of why it is happening.

Do you try to access system files or use a lot of memory? Are you sure that
the production server has all the modules installed that your testing server
has? Quite important, is the same version installed on your testing server
as on the production server?

 They say that it is not their server but my scripts, however, if that was
 the case I would get these errors on my machine too. Also, the randomness
 of this also indicates that it can't really be my php scripts, otherwise 
 it would happen all the time.

Yes and no. You can only say that with certainty if your test and production
environments are the same. 

If you are absolutely 100% certain that it is not your scripts, start
looking at the differences between what you have and what your ISP provides.

Alternatively test it on another server as well. 

Albert

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 2006/01/24
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Jochem Maas

Thomas wrote:

Hi there!

I am sitting with something of a mystery and was wondering if there is
someone out that might have dealt with this before:

I have developed a site that runs well and fine on my machine
(XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as


php5.WHAT?


Cache_Lite.


it's not completely impossible that HTML_Template_Flexy or Cache_Lite run
on either php5.1 and above OR on php5.0.4 and below but not both.



The site has been put up on the live server and works (mostly) fine there
too, with the exception of Internal Server errors 500, ever so often. It's
pretty random and can happen to any of the scripts (they all run through a
single index.php script that instantiates objects that then spit out the
resulting html).

I had a look at the Apache log file I got from the SP ... no clue. All I
know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).


php5.WHAT?

I would suggest getting both systems to run the same version of the software
packages you mention. it might cut out a few unknowns.



They say that it is not their server but my scripts, however, if that was
the case I would get these errors on my machine too. Also, the randomness of
this also indicates that it can't really be my php scripts, otherwise it
would happen all the time.

Does anybody have any suggestion as to how I can solve this issue? I know
this is pretty vague information, but it's all I have (hence the confusion).

Thanks,
Thomas


SPIRAL EYE STUDIOS 
P.O. Box 37907, Faerie Glen, 0043


Tel: +27 12 362 3486
Fax: +27 12 362 3493 
Mobile: +27 82 442 9228

Email: [EMAIL PROTECTED]
Web: www.spiraleye.co.za 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Thomas
Hi Jochem,

PHP5.0.4, on both systems. I suspect that either of the PEAE modules cause
some server id10t error (if indeed the issue is on my side).

Thomas

-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED] 
Sent: 25 January 2006 03:00 PM
To: Thomas
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP / Apache + Error 500

Thomas wrote:
 Hi there!
 
 I am sitting with something of a mystery and was wondering if there is
 someone out that might have dealt with this before:
 
 I have developed a site that runs well and fine on my machine
 (XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as

php5.WHAT?

 Cache_Lite.

it's not completely impossible that HTML_Template_Flexy or Cache_Lite run
on either php5.1 and above OR on php5.0.4 and below but not both.

 
 The site has been put up on the live server and works (mostly) fine there
 too, with the exception of Internal Server errors 500, ever so often. It's
 pretty random and can happen to any of the scripts (they all run through a
 single index.php script that instantiates objects that then spit out the
 resulting html).
 
 I had a look at the Apache log file I got from the SP ... no clue. All I
 know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

php5.WHAT?

I would suggest getting both systems to run the same version of the software
packages you mention. it might cut out a few unknowns.

 
 They say that it is not their server but my scripts, however, if that was
 the case I would get these errors on my machine too. Also, the randomness
of
 this also indicates that it can't really be my php scripts, otherwise it
 would happen all the time.
 
 Does anybody have any suggestion as to how I can solve this issue? I know
 this is pretty vague information, but it's all I have (hence the
confusion).
 
 Thanks,
 Thomas
 
 
 SPIRAL EYE STUDIOS 
 P.O. Box 37907, Faerie Glen, 0043
 
 Tel: +27 12 362 3486
 Fax: +27 12 362 3493 
 Mobile: +27 82 442 9228
 Email: [EMAIL PROTECTED]
 Web: www.spiraleye.co.za 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Gerry Danen
Interestingly, I installed mod_security the other day and noticed
error 500 show up. As it turns out, mod_security generates those when
they block nasties.

Gerry

On 1/25/06, Thomas [EMAIL PROTECTED] wrote:

 Hi there!

 I am sitting with something of a mystery and was wondering if there is
 someone out that might have dealt with this before:

 I have developed a site that runs well and fine on my machine
 (XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as
 Cache_Lite.

 The site has been put up on the live server and works (mostly) fine there
 too, with the exception of Internal Server errors 500, ever so often. It's
 pretty random and can happen to any of the scripts (they all run through a
 single index.php script that instantiates objects that then spit out the
 resulting html).

 I had a look at the Apache log file I got from the SP ... no clue. All I
 know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

 They say that it is not their server but my scripts, however, if that was
 the case I would get these errors on my machine too. Also, the randomness of
 this also indicates that it can't really be my php scripts, otherwise it
 would happen all the time.

 Does anybody have any suggestion as to how I can solve this issue? I know
 this is pretty vague information, but it's all I have (hence the confusion).

 Thanks,
 Thomas


 SPIRAL EYE STUDIOS
 P.O. Box 37907, Faerie Glen, 0043

 Tel: +27 12 362 3486
 Fax: +27 12 362 3493
 Mobile: +27 82 442 9228
 Email: [EMAIL PROTECTED]
 Web: www.spiraleye.co.za

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




--
Gerry
http://portal.danen.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php