Just to update others on this topic. Gunter found the problem to be with PHP
itself. A bug is listed on it here:
http://bugs.php.net/bug.php?id=43677&edit=2HTH

It says the problem is fixed in 5.2.6 so will upgrade when that becomes
available. In the meantime I'm going to have a play around changing
php_admin_value to php_value .

Im surprised its not affected more of you :)

Chris.





Gunter Sammet wrote:
> 
> Are you working with sessions? If yes, it might be because of session
> conflicts. Try to set a different session directory for each domain.
> HTH
> 
> Gunter
> 
> On Sat, Apr 26, 2008 at 5:44 PM, cjant83 <[EMAIL PROTECTED]> wrote:
> 
>>
>> I've spent another 8 hours or so on this now. I've gone through all the
>> code,
>> I made a couple of adjustments but nothing major, and I'm still in the
>> same
>> boat..... However!! I think I may have found the fault....
>>
>> I've been trying to re-create the error on my site by following links,
>> and
>> refreshing for the past half an hour and its been working fine until I
>> logged into Horde webmail which is on a different domain but same server,
>> and after logging in when I refreshed my web site I had the same error as
>> earlier.
>>
>> I've tried this a few times, I definately think Horde is the problem. I
>> got
>> no idea what its doing but its breaking something!! Im guessing this is
>> why
>> its been breaking before. Its gone midnight now and no one is logged in
>> on
>> my server but during the day there will be a few of my customers using
>> webmail so that is why it seemed random.
>>
>> Now I have found the problem I dont know how to fix it :). Any
>> suggestions?
>> I suspect Horde is re-writing something to do with the include_path in
>> PHP.
>> I know this is going off topic and not fully ZF question but I'm sure
>> someone else will have come accross this problem before and know the
>> solution.
>>
>> Thank you,
>> Chris.
>>
>>
>>
>>
>>
>>
>>
>> tfk wrote:
>> >
>> > On Sat, Apr 26, 2008 at 1:09 PM, cjant83 <[EMAIL PROTECTED]> wrote:
>> >>
>> >>  Hey,
>> >>  Ive written an application using ZF1.5 on my Windows machine with
>> WAMP
>> >>  server installed. It works brilliantly, but when I uploaded it to my
>> web
>> >>  server (Linux,PHP5.2,MySQL5) I get into problems. The site works most
>> of
>> >> the
>> >>  time, but randomly it throws up an Error 500. I've turned
>> display_errors
>> >> ON
>> >>  to see if that would help, and it kind of does. It gives me the
>> >> following
>> >>  error message:
>> >>
>> >>  Warning: require_once(Zend/Loader.php) [function.require-once]:
>> failed
>> >> to
>> >>  open stream: No such file or directory in
>> >>  /var/www/**************/httpdocs/app/bootstrap.php on line 36
>> >>  Fatal error: require_once() [function.require]: Failed opening
>> required
>> >>  'Zend/Loader.php' (include_path='.:') in
>> >>  /var/www/**************//httpdocs/app/bootstrap.php on line 36
>> >>
>> >>  But it works at other times so how can it not be finding the Loader?
>> >>  :confused:
>> >>
>> >>
>> >>  Here is the top part of my bootstrap up to the point its complaining.
>> >>
>> >>  define('DS', DIRECTORY_SEPARATOR);
>> >>  define('PS', PATH_SEPARATOR);
>> >>  define('ROOT_DIR', dirname(dirname(__FILE__)));
>> >>
>> >>  /*
>> >>   * Set include path
>> >>   */
>> >>  $incpath[] = ROOT_DIR . DS . 'app' . DS . 'code' . DS . 'config';
>> >>  $incpath[] = ROOT_DIR . DS . 'app' . DS . 'code' . DS . 'models';
>> >>  $incpath[] = ROOT_DIR . DS . 'app' . DS . 'library';
>> >>  $incpath[] = ROOT_DIR . DS . 'skins';
>> >>  $inc_path = implode(PS, $incpath);
>> >>  set_include_path($inc_path . PS . get_include_path());
>> >>
>> >>  /*
>> >>   * Initialise the Zend_Loader and AutoLoad
>> >>   */
>> >>  require_once 'Zend' . DS . 'Loader.php';
>> >>  Zend_Loader::registerAutoLoad();
>> >>
>> >>
>> >>  Anyone have a clue??
>> >
>> > Is that php(5)-cgi? Or mod_php? With lots of traffic, I had random
>> > errors like that with php-cgi (5.2.5), but I was unable to debug that
>> > in production. ;-)
>> >
>> > Btw, if you put display_errors = Off, make sure to enable log_errors =
>> > On (also look into the file setting for syslog or a custom logfile).
>> > :-)
>> >
>> > Till
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Error500-with-Apache-tp16911831p16918115.html
>>  Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error500-with-Apache-tp16911831p16935968.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to