Thanks for the tip Sam, but that didn't seem to work for me.  I used
your suggestion to modify the .htaccess file in my -top- cake
directory:

AddType x-mapp-php5 .php
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    app$ /app/ [L]
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

It's really strange that this issue is intermittant.  It is difficult
to debug the problem when the symptoms disappear, and then reappear 6
weeks later, etc...  The project is currently hosted at media temple.
It is close to going live and I am considering moving to a new host,
but I don't want to try a "blind shot in the dark" to fix the problem.

With all of the cake projects with this problem, I'm suprised that
there is so little discussion on the subject.  Here's an example:
http://www.google.com/search?hl=en&q=Warning%3A+include%28cake%2Fbootstrap.php%29+%5Bfunction.include%5D%3A+failed+to+open+stream%3A+No+such+file+or+directory+&btnG=Google+Search
NOTE: As of 6/26/08 the first 4 results are all broken cake projects
with the same or similar issue...


On May 6, 6:27 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> try (an adaption) of this
>
> AddType x-mapp-php5 .php
> <IfModule mod_rewrite.c>
>     RewriteEngine on
>     RewriteRule /v6$ /v6/ [L]
>     RewriteRule    ^$    /v6/webroot/    [L]
>     RewriteRule    (.*) /v6/webroot/$1    [L]
> </IfModule>
>
> the cake app is in this v6 dir
>
> hth - S
>
> 2008/5/7 Tallbrick <[EMAIL PROTECTED]>:
>
>
>
>
>
> > I have also encountered this issue and have not yet found the
> > solution.  The issue is definatly intermittent - at times accessing
> > with a www prefix will generate the error and sometimes not...  And
> > the error that I get is always:
>
> > ===========================
> > Warning: include(cake/bootstrap.php) [function.include]: failed to
> > open stream: No such file or directory in /var/www/vhosts/domain.com/
> > httpdocs/app/webroot/index.php<http://domain.com/httpdocs/app/webroot/index.php>on
> >  line 82
>
> > Warning: include(cake/bootstrap.php) [function.include]: failed to
> > open stream: No such file or directory in /var/www/vhosts/domain.com/
> > httpdocs/app/webroot/index.php<http://domain.com/httpdocs/app/webroot/index.php>on
> >  line 82
>
> > Warning: include() [function.include]: Failed opening 'cake/
> > bootstrap.php' for inclusion (include_path='/var/www/vhosts/domain.com/
> > httpdocs/app/:. <http://domain.com/httpdocs/app/:.>') in /var/www/vhosts/
> > domain.com/httpdocs/app/webroot/
> > index.php <http://domain.com/httpdocs/app/webroot/index.php> on line 82
>
> > Fatal error: Can't find CakePHP core. Check the value of
> > CAKE_CORE_INCLUDE_PATH in app/webroot/index.php. It should point to
> > the directory containing your /cake core directory and your /vendors
> > root directory. in /var/www/vhosts/domain.com/httpdocs/app/webroot/
> > index.php <http://domain.com/httpdocs/app/webroot/index.php> on line 83
> > ============================
>
> > ...And after googling the error text it looks like at least 10 other
> > sites are (unknowingly?) experiencing the same issue as well...
>
> > As a precaution, I've set Plesk to "Use a single directory for housing
> > SSL and non-SSL content" but, what can be done to fix the www prefix
> > issue?
>
> > I am new to Cake, and any ideas are appreciated :)
>
> > On Mar 20, 3:11 pm, Walker Hamilton <[EMAIL PROTECTED]> wrote:
> > > Yeah, 1and1.com is wrong. It's a server configuration problem.
>
> > > The big reason I know this is that the https is resolving via the
> > > canonicalurlwhile the non-secure version is not. This is an apache
> > > configuration issue.
>
> > > Many servers serve secure & non-secure http from the same directory,
> > > but other (media temple's default plesk installs for instance) serve
> > > http from one directory & https from another.- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to