Monday, March 30, 2009

CakePHP on Hiawatha web server

Recently I just moved from apache/lighttpd to hiawatha, but
unfortunately dealing with mod_rewrite is very time consuming. So, my
problem with cakePHP (and other MVC with mod_rewrite) is unable to
access webroot folder. The main site is just showing the plain HTML,
no CSS, favicon and so on.

So, here is what I've done to make CakePHP works in hiawatha without
adding urltoolkit into main httpd config file.

Edit file dispatcher.php, find var $webroot and change its value into
'app/webroot/', next jump to line 360th and comment that line ($this-
>webroot = $base .'/')

Now cakePHP works in hiawatha (I mean webroot dir is now direct to app/
webroot, so that CSS, favicon, etc in webroot is now accessible).

--~--~---------~--~----~------------~-------~--~----~
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: