tags:

views:

148

answers:

2

Hi,

I'm trying to install CakePHP on my Windows XP machine running Apache 2.2. I have installed the Cake folder in my doc root.

I've read the installation instructions that say to include this line in the httpd.conf file;

<Directory /path/to/cake>

Does anyone know how to translate that into Windows? I currently have the following in my conf file:

<Directory "C:/Apache/Apache2.2/htdocs/cakeapp/">

Whenever I uncomment this line it crashes Apache. I've tried switching the slashes to "\" and I tried taking the slash off the end.

Any advice?

Thanks

+1  A: 

it's really simple and dont need to follow their instructions.

  1. extract cakephp to something like c:/htdocs/web/mysite so it looks like

    mysite/app

    mysite/cake

  2. done. provided you set apache document root to c:/htdocs/web/ you can visit your site at http://localhost/mysite

to be fancier:

  1. in httpd-vhosts.conf, add

    < VirtualHost *:80>

    ServerName mysite.local

    DocumentRoot C:/htdocs/web/mysite

    < /VirtualHost>

  2. in c:\windows\system32\drivers\etc\hosts, add

    127.0.0.1 mysite.local

  3. restart apache

  4. done. visit site at http://mysite.local

this is all based on the assumption that your apache/php/mysql is configged correctly.

Funky Dude
A: 

Turns out i had both

<Directory "C:/Apache/Apache2.2/htdocs">

and

<Directory "C:/Apache/Apache2.2/htdocs/cakeapp/">

in my conf file and it was causing the error. I commented out the first one, moved a css file and I was in business.

GeoSQL