Wednesday, August 25, 2010

Re: CakePHP 1.3 setup on Ubuntu

On Wed, Aug 25, 2010 at 11:17 AM, Jon Bennett <jmbennett@gmail.com> wrote:
>> yea, thanks everyone, it was a missing .htaccess file. I always
>> download packages to /usr/src to unpack, and when I copied cake from /
>> usr/src to /var/www/cakephp, it didn't move the .htaccess files. I'm
>> seasoned enough to know cp doesn't catch hidden files unless you
>> specify them, it just didn't jump out at me right away.
>
> As you're able to set the doc root specifically - you'd be better off
> having a restrictive general config, and then setting AllowOveride All
> on a per host basis.
>
> I'd also suggest putting the rewrite rules into the vhost directly,
> and pointing the doc root at app/webroot.

Second all of that. Whenever you can edit the apache vhost configs
it's a really good idea to put the rewrite stuff in there and delete
the htaccess files. That'll moderately speed things up.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

No comments: