Closed Thread
Results 1 to 4 of 4

Thread: CakePHP: 404 Not found error

  1. #1
    zeroark's Avatar
    zeroark is offline x10Hosting Member zeroark is an unknown quantity at this point
    Join Date
    Jan 2010
    Location
    Lima, Peru
    Posts
    28

    CakePHP: 404 Not found error

    Hello everyone! Today I've been trying to install CakePHP for a while and got a "Not found" error. For some reason, but the folder specified in that error it does exist and it can be directly accessed (But it won't load anything, since there was no controller nor view created).

    When accessing the index of the main application, the site will load, but - for some reason - the CSS, won't load correctly as well (For some reason it resolves the location as the root folder)

    I've been reading some tutorials about modifying the .htaccess files, because for some reason it sometimes won't work. And it was still the same so, I was wondering, if anyone around here could successfully install and run the CakePHP Framework into their x10Hosting account, and if so what are the steps needed.

    I'm running on a CakePHP 1.3.6 Stable version, recently downloaded and just installed - No modifications made - and tried several modifications to the .htaccess located in app/webroot (Most of tutorials point to only modify that one)

    Uhm ... And well, that's all. Thanks for your time n_n


  2. #2
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: CakePHP: 404 Not found error

    I think the problem is that the webroot variable is improperly defined in app/controllers/app_controller.php, as said on http://rain-chronicles.net/cakephp/app/webroot/

    If you define this properly, things should load. I think that in this case the webroot is the path from anything below your public_html folder, not from the actual root of your hosting account. For example you have it installed in /cakephp/app/webroot, so I think this would be your webroot. Try it with and without the slash before cakephp.

    There are lots of hits on Google about it....http://www.google.co.uk/#hl=en&expId...d6fd944fbe01e9
    Last edited by stpvoice; 01-04-2011 at 01:08 PM.


  3. #3
    zeroark's Avatar
    zeroark is offline x10Hosting Member zeroark is an unknown quantity at this point
    Join Date
    Jan 2010
    Location
    Lima, Peru
    Posts
    28

    Re: CakePHP: 404 Not found error

    Hello!

    Thanks for pointing that out. I found out this tutorial and applied the correction and it worked, but partially. With partially I mean that the "virtual" location for my CakePHP application will load normally now. But it won't load the CSS, Favicon or the other items, because the application root - for some reason - resolves to the cakephp folder, not the webroot. Now, if I go to the real address, the locations will load. That's the main problem I'm facing right now. Any ideas?

    By the way, is mod_rewrite enabled? Because it looks most of the CakePHP configuration relies on this so, I wanted to ask this in order to try some solutions or not.

    Thanks in advance!
    Last edited by zeroark; 01-04-2011 at 04:07 PM.


  4. #4
    zeroark's Avatar
    zeroark is offline x10Hosting Member zeroark is an unknown quantity at this point
    Join Date
    Jan 2010
    Location
    Lima, Peru
    Posts
    28

    Re: CakePHP: 404 Not found error

    Well, I managed to fix it. Thanks a lot, stpvoice, because of you I could notice the error!


Closed Thread

Similar Threads

  1. Replies: 3
    Last Post: 02-16-2011, 09:42 AM
  2. "XML Parsing Error: no element found Error pls help
    By joennika214 in forum Programming Help
    Replies: 1
    Last Post: 04-05-2010, 09:57 PM
  3. Error not found
    By badua198 in forum Free Hosting
    Replies: 1
    Last Post: 04-03-2010, 03:23 AM
  4. 404-Not Found error
    By vailadmin in forum Free Hosting
    Replies: 6
    Last Post: 04-05-2009, 11:42 PM
  5. 500 error. Also a 404 not found
    By Sticky in forum Free Hosting
    Replies: 10
    Last Post: 12-17-2007, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers