Re: Misconfigured CSS Directory
In the end it was the absence of .htaccess files. Those files don't even show up in UNIX when 'ls ' is called, so I panicked a little. This blog post turned out to be my saviour, and I recommend it to all who have similar problems: http://www.ninjavspenguin.com/blog/2007/01/21/cakephp-install-multiple-subdirectories-500-error/ On Jun 5, 3:15 am, Grant Cox <[EMAIL PROTECTED]> wrote: > /css/cake.generic.css is correct - you should never see the "webroot" > in the url > > If mod_rewrite is enabled, are you sure you haven't removed > any .htaccessfiles? > If mod rewrite is disabled, are you sure you haven't removed any > index.php files? > > if you have > /var/www/html/cake/app/webroot > > then there should also be > /var/www/html/cake/.htaccess > /var/www/html/cake/app/.htaccess > /var/www/html/cake/app/webroot/.htaccess > > plus "index.php" files in each of those locations too. > > On Jun 5, 7:17 am, spamguy <[EMAIL PROTECTED]> wrote: > > > I am running Cake 1.2 and just got my first test app running. By 'test > > app,' I mean basically the factory web page with a line or two of PHP > > to make sure everything's wired. > > > If I visithttp://localhost/, I get /webroot without CSS > > styling. Studying the source makes the reason obvious: > > CakePHP seems to be looking for CSS in the wrong place. It accesses > > /css/cake.generic.css (which doesn't exist) instead of > > /webroot/css/cake.generic.css. > > > I've already seen the same topic > > athttp://groups.google.com/group/cake-php/browse_thread/thread/b80f8013... > > , but none of the advice seems to apply. mod_rewrite is turned on, > > httpd.conf should be configured properly. Any other thoughts? > > > Thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Misconfigured CSS Directory
/css/cake.generic.css is correct - you should never see the "webroot" in the url If mod_rewrite is enabled, are you sure you haven't removed any .htaccess files? If mod rewrite is disabled, are you sure you haven't removed any index.php files? if you have /var/www/html/cake/app/webroot then there should also be /var/www/html/cake/.htaccess /var/www/html/cake/app/.htaccess /var/www/html/cake/app/webroot/.htaccess plus "index.php" files in each of those locations too. On Jun 5, 7:17 am, spamguy <[EMAIL PROTECTED]> wrote: > I am running Cake 1.2 and just got my first test app running. By 'test > app,' I mean basically the factory web page with a line or two of PHP > to make sure everything's wired. > > If I visithttp://localhost/, I get /webroot without CSS > styling. Studying the source makes the reason obvious: > CakePHP seems to be looking for CSS in the wrong place. It accesses > /css/cake.generic.css (which doesn't exist) instead of > /webroot/css/cake.generic.css. > > I've already seen the same topic > athttp://groups.google.com/group/cake-php/browse_thread/thread/b80f8013... > , but none of the advice seems to apply. mod_rewrite is turned on, > httpd.conf should be configured properly. Any other thoughts? > > Thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Misconfigured CSS Directory
I am running Cake 1.2 and just got my first test app running. By 'test app,' I mean basically the factory web page with a line or two of PHP to make sure everything's wired. If I visit http://localhost/, I get /webroot without CSS styling. Studying the source makes the reason obvious: CakePHP seems to be looking for CSS in the wrong place. It accesses /css/cake.generic.css (which doesn't exist) instead of /webroot/css/cake.generic.css. I've already seen the same topic at http://groups.google.com/group/cake-php/browse_thread/thread/b80f80137baf1e1b/011bacffdee1cda8 , but none of the advice seems to apply. mod_rewrite is turned on, httpd.conf should be configured properly. Any other thoughts? Thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---