Jump to content


Photo

cake php install


  • Please log in to reply
2 replies to this topic

#1 mojito

mojito

    Junior Member

  • Member
  • Pip
  • 25 posts

Posted 18 August 2008 - 04:58 PM

I was interested in trying out cake php framework. I cant get the basic install to work due to .htaccess files

Here is the thread over at their end

http://groups.google...7f7bf72d1121a68

but I tried to edit the file and it doesnt work. Still FORBIDDEN error. I'm running vista.

here is my .htaccess file

<Directory "/www/">

# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.

  Options Indexes Includes FollowSymLinks

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit

  AllowOverride All
  Options FollowSymLinks

# Controls who can get stuff from this server.

   Order allow,deny
   Allow from all
	
</Directory>

thanks for any help, as usual im halted before I get any work done frustrating for non php pros, who have to get everything right before one gets started.
http://www.landed.at - a travel forum, please come along and post something about a destination you know.

#2 jacob lee

jacob lee

    Junior Member

  • Member
  • Pip
  • 20 posts

Posted 18 August 2008 - 11:52 PM

make your .ataccess files which is located in www folder like:

AllowOverride All
Options Indexes Includes FollowSymLinks
Order allow,deny
Allow from all

or you can delete it!

your configuration of www folder is in apache/conf/httpd.conf already.

#3 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 19 August 2008 - 03:42 AM

An alternative is to add the line to Cake .htaccess file

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

All the best
Ric




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users