Sunday, June 22, 2014

Re: index.php not found?

I used Composer to do the installation.

Since it seems to be more or less convention I would like to try to get mod_rewrite working. I am not sure what additional information is needed to find out the cause of why it is not working.

Thank you.

Kevin

On Thursday, June 12, 2014 5:31:34 PM UTC-5, Reuben wrote:
At the bottom of [http://book.cakephp.org/2.0/en/installation/url-rewriting.html], they mention where to look if you don't or can't use URL rewriting.

And after a bit of searching on that page, you'll come across [http://book.cakephp.org/2.0/en/development/configuration.html#cakephp-core-configuration], which mentions you must set App.baseUrl, and remove the .htaccess files if you can't or don't want to use mod_rewrite.

However, I'd recommend sticking with mod_rewrite.  It's the convention, and will make things simple when it comes to nice URLs (i.e., you won't have index.php in every URL).

Secondly, I'd recommend a Composer setup, where CakePHP gets installed into the Vendors directory.  Especially if you're using PHP 5.3 or greater. This requires a little bit more setup in CakePHP 2.5, but is well worth it.

And thirdly, if you're just trying out the tuts, I'd recommend using CakePHP 3.0.  Whilst not production ready, it's pretty good, and will give you an idea of things to be aware of should you decide to use CakePHP 2.5 for full development purposes (like using Composer for the install, and the changes in the Models).  And the composer setup isn't as tricky as CakePHP 2.5.

Regards
Reuben Helms



On Thu, Jun 12, 2014 at 11:02 PM, Kevin Burton <ronald.ke...@gmail.com> wrote:
I am using version  2.5.

Here is the way I have defined the document root:

Alias /blog "C:/Users/Kevin/cakeblog/" 
<Directory "C:/Users/Kevin/cakeblog/">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride all
    Require local
</Directory>

So in the directory c:/Users/Kevin/cakeblog I have the Cake default folder structure

app
    Config
    . . . . .
    webroot
        css
        files 
        img
        js
        .htaccess
        index.php
        test.php
lib
plugins
vendors

So if I browse to http://localhost/blog/app/webroot/index.php I get the error message that the URL rewrite is not configured properly. If I uncomment the LoadModule line as explained at the beginning of the post I still get the error message. If I click on the 'Help me configure it' HyperLink, as far as i can tell I have the the first two stipulations correct. The third basically says that I should make sure that I have downloaded Cake from the official distribution, and that checks out. I am just trying to get the blog tutorial running. Ideas?

Thank you.

Kevin



--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to a topic in the Google Groups "CakePHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cake-php/Xk3BetZMp-g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cake-php+u...@googlegroups.com.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: