ubuntu - CakePHP Installation Broke (Probably Apache2 Problem) -
i tried install cakephp on home ubuntu 10.04 desktop development/testing purposes, , believe have gone through appropriate steps. however, still running problem layout broken. believe documentroot or mod_rewrite problem, don't have enough experience in apache diagnose , fix it.
/var/www/cakephp/.htaccess 1 <ifmodule mod_rewrite.c> 2 rewriteengine on 3 rewriterule ^$ app/webroot/ [l] 4 rewriterule (.*) app/webroot/$1 [l] 5 </ifmodule> /var/www/cakephp/app/webroot/.htaccess 1 <ifmodule mod_rewrite.c> 2 rewriteengine on 3 rewritecond %{request_filename} !-d 4 rewritecond %{request_filename} !-f 5 rewriterule ^(.*)$ index.php?url=$1 [qsa,l] 6 </ifmodule>
firebug gives this: 404 not found
not found
the requested url /cakephp/css/cake.generic.css not found on server.
apache/2.2.14 (ubuntu) server @ localhost port 80
i tried setting permissions of css/ , cake.generic.css 775. owner www-data, right. tmp writable too
i can't access directory browser, 404.
but change default website doccument starting point localhost site. if add more sites apache2, you'll have errors.
you might want save 000-default separate file
/etc/apache2/sites-available/cakephptesting
and configure file proper docroot
and edit host file
/etc/hosts
and add entry as
127.0.0.1 cakephptesting
that allow access site in browser @ http://cakephptesting
Comments
Post a Comment