Installation question - Windows/Apache

6 messages Options
Embed this post
Permalink
Ryan P.

Installation question - Windows/Apache

Reply Threaded More More options
Print post
Permalink

I want to play with Cake in a Windows environment where I have Apache
installed without affecting my ability to still develop sites without
Cake.  With Apache running, I can build websites within the "C:
\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs"
folder.  What I would like to do is add a folder within htdocs called
cakeapps (or whatever), and have Cake installed within that folder.
So ideally I would like to have a structure like this:

C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
\website1
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
\website2
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
\cakeapps\cakewebsite1
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
\cakeapps\cakewebsite2

where website1 and website2 do not use Cake, but cakewebsite1 and
cakewebsite2 do use Cake.  I've tried reading the manual in Cake for
Advanced Installations, but unfortunately that didn't help me (or was
over my head).  Does anybody have any suggestions or know of any more
detailed tutorials for installations?  I really appreciate it!

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

Simon-12

Re: Installation question - Windows/Apache

Reply Threaded More More options
Print post
Permalink

its simple just drop  all the cake files into cakewebsite1 and
cakewebsite2  folder and go form there http://localhost/cakewebsite1

On Nov 3, 8:38 am, "Ryan P." <[hidden email]> wrote:

> I want to play with Cake in a Windows environment where I have Apache
> installed without affecting my ability to still develop sites without
> Cake.  With Apache running, I can build websites within the "C:
> \Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs"
> folder.  What I would like to do is add a folder within htdocs called
> cakeapps (or whatever), and have Cake installed within that folder.
> So ideally I would like to have a structure like this:
>
> C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
> \website1
> C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
> \website2
> C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
> \cakeapps\cakewebsite1
> C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
> \cakeapps\cakewebsite2
>
> where website1 and website2 do not use Cake, but cakewebsite1 and
> cakewebsite2 do use Cake.  I've tried reading the manual in Cake for
> Advanced Installations, but unfortunately that didn't help me (or was
> over my head).  Does anybody have any suggestions or know of any more
> detailed tutorials for installations?  I really appreciate it!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Ryan P.

Re: Installation question - Windows/Apache

Reply Threaded More More options
Print post
Permalink
Thanks, Simon!  That worked well (though I had to actually go to
http://localhost/cakeapps/cakewebsite1/ to see the Cake welcome
page).  Now I'm having another problem though.  I setup a home.ctp in
views/pages, and I have no problem seeing its contents at the URL
mentioned (http://localhost/cakeapps/cakewebsite1/).  I also set up a
database table called "businesses" (to list businesses), and I set up
the model, the controller, and an index.ctp file in the views/
businesses folder.

My problem is, if I go to http://localhost/cakeapps/cakewebsite1/businesses,
I get this error:  "The requested URL /cakeapps/cakewebsite1/
businesses was not found on this server."  I've done a lot of web
searching, I've made sure my httpd.conf file is okay, and I've played
with different routes configurations, but I just can't figure it out.
For what it's worth, I have another cake app in a different location
(somebody else set that up for me), and it works fine--I mention this
just to say that I think all my Apache settings are okay.

Does anybody have any suggestions?  Thanks!


On Nov 3, 4:03 pm, Simon <[hidden email]> wrote:

> its simple just drop  all the cake files into cakewebsite1 and
> cakewebsite2  folder and go form therehttp://localhost/cakewebsite1
>
> On Nov 3, 8:38 am, "Ryan P." <[hidden email]> wrote:
>
> > I want to play with Cake in a Windows environment where I have Apache
> > installed without affecting my ability to still develop sites without
> > Cake.  With Apache running, I can build websites within the "C:
> > \Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs"
> > folder.  What I would like to do is add a folder within htdocs called
> > cakeapps (or whatever), and have Cake installed within that folder.
> > So ideally I would like to have a structure like this:
>
> > C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
> > \website1
> > C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
> > \website2
> > C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
> > \cakeapps\cakewebsite1
> > C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
> > \cakeapps\cakewebsite2
>
> > where website1 and website2 do not use Cake, but cakewebsite1 and
> > cakewebsite2 do use Cake.  I've tried reading the manual in Cake for
> > Advanced Installations, but unfortunately that didn't help me (or was
> > over my head).  Does anybody have any suggestions or know of any more
> > detailed tutorials for installations?  I really appreciate it!

--

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


iammikek

Re: Installation question - Windows/Apache

Reply Threaded More More options
Print post
Permalink
On Thu, 2009-11-19 at 09:25 -0800, Ryan P. wrote:

> My problem is, if I go to
> http://localhost/cakeapps/cakewebsite1/businesses,
> I get this error:  "The requested URL /cakeapps/cakewebsite1/
> businesses was not found on this server."  I've done a lot of web
> searching, I've made sure my httpd.conf file is okay, and I've played
> with different routes configurations, but I just can't figure it out.
> For what it's worth, I have another cake app in a different location
> (somebody else set that up for me), and it works fine--I mention this
> just to say that I think all my Apache settings are okay.
>
> Does anybody have any suggestions?  Thanks!

sounds like you might be missing a .htaccess file or its not configured
properly. check for .htaccess in webroot and compare to your working
version

--

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


Ryan P.

Re: Installation question - Windows/Apache

Reply Threaded More More options
Print post
Permalink
Thanks, Mike--I have an .htaccess file in both environments, and they
are identical:

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
 </IfModule>

On Nov 19, 12:28 pm, mike karthauser <[hidden email]> wrote:

> On Thu, 2009-11-19 at 09:25 -0800, Ryan P. wrote:
> > My problem is, if I go to
> >http://localhost/cakeapps/cakewebsite1/businesses,
> > I get this error:  "The requested URL /cakeapps/cakewebsite1/
> > businesses was not found on this server."  I've done a lot of web
> > searching, I've made sure my httpd.conf file is okay, and I've played
> > with different routes configurations, but I just can't figure it out.
> > For what it's worth, I have another cake app in a different location
> > (somebody else set that up for me), and it works fine--I mention this
> > just to say that I think all my Apache settings are okay.
>
> > Does anybody have any suggestions?  Thanks!
>
> sounds like you might be missing a .htaccess file or its not configured
> properly. check for .htaccess in webroot and compare to your working
> version

--

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


Ryan P.

Re: Installation question - Windows/Apache

Reply Threaded More More options
Print post
Permalink
Okay--I feel stupid that it was an httpd.conf error.  Thanks to
another post in this group, I figured it out.  I had more than one
AllowOverride in my httpd.conf file, and I only changed it to "All"
for one of them (I hadn't realized there was a second one further down
the file).  Once I changed the other one and restarted Apache, it
worked great.  Sorry to have wasted anybody's time!  Thanks.



On Nov 19, 1:36 pm, "Ryan P." <[hidden email]> wrote:

> Thanks, Mike--I have an .htaccess file in both environments, and they
> are identical:
>
> <IfModule mod_rewrite.c>
>     RewriteEngine on
>     RewriteRule    ^$    webroot/    [L]
>     RewriteRule    (.*) webroot/$1    [L]
>  </IfModule>
>
> On Nov 19, 12:28 pm, mike karthauser <[hidden email]> wrote:
>
> > On Thu, 2009-11-19 at 09:25 -0800, Ryan P. wrote:
> > > My problem is, if I go to
> > >http://localhost/cakeapps/cakewebsite1/businesses,
> > > I get this error:  "The requested URL /cakeapps/cakewebsite1/
> > > businesses was not found on this server."  I've done a lot of web
> > > searching, I've made sure my httpd.conf file is okay, and I've played
> > > with different routes configurations, but I just can't figure it out.
> > > For what it's worth, I have another cake app in a different location
> > > (somebody else set that up for me), and it works fine--I mention this
> > > just to say that I think all my Apache settings are okay.
>
> > > Does anybody have any suggestions?  Thanks!
>
> > sounds like you might be missing a .htaccess file or its not configured
> > properly. check for .htaccess in webroot and compare to your working
> > version

--

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