Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4075120
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:15:26+00:00 2026-05-20T17:15:26+00:00

I tried to install CakePHP on my home Ubuntu 10.04 desktop for development/testing purposes,

  • 0

I tried to install CakePHP on my home Ubuntu 10.04 desktop for development/testing purposes, and I believe I have gone through all the appropriate steps. However, I am still running into the problem that my layout is broken. I believe this is a DocumentRoot or mod_rewrite problem, but I don’t have enough experience in Apache to diagnose and 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 was not found on this server.


Apache/2.2.14 (Ubuntu) Server at localhost Port 80

I tried setting the permissions of css/ and cake.generic.css to 775. owner is www-data, which is right. tmp is writable too

I also can’t access the directory from my browser, 404.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:15:27+00:00Added an answer on May 20, 2026 at 5:15 pm

    but that will change your default website doccument starting point for your localhost site.
    if you add more sites to apache2, you’ll have errors.

    you might want to save your 000-default as a separate file

     /etc/apache2/sites-available/cakephptesting
    

    and configure that file with the proper docroot

    and then edit your host file

     /etc/hosts 
    

    and add an entry as

     127.0.0.1 cakephptesting
    

    that will allow you to access the site in a browser at http://cakephptesting

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to install SOAP::WSDL on Ubuntu 8.04 Server through CPAN but got the
I tried to install and configure cakephp 2.0 on my local machine (wamp server),
I tried to install big query on ubuntu and I got the following error:
I tried to install gcc 4.5 on ubuntu 10.04 but failed. Here is a
Hey all, I have the following setup in my webroot: /issues (Trac install) /myapp
I have tried to install each of the following three versions of Ruby via
I tried to install OpenCV2.2 on Ubuntu 11.04. But OpenCV compilation fails stating an
I tried to install amfast on Ubuntu 10.10 but when i run the setup.py
I tried to install chroot ubuntu on my phone but it was unsuccessful on
i have tried to install python for symbian uiq 3..i have tried signed and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.