cakePHP and wampserver

Status
Not open for further replies.

tweak50

.NET/PHP dabbler
Sep 12, 2007
404
1
0
Wisconsin
Has anyone managed to get a cakePHP app working with wampserver? No matter what tutorial I follow, I can never get it to work. Every page I go to produces a 404 error.
 


Sounds like you haven't updated the AllowOverride setting for Apache.

CakePHP uses .htaccess files with mod rewrite rules to direct the request to the appropriate files. The default setting doesn't allow you to do this.

Google has lots of tutorials for updating this stuff...

Mubs
 
Get a cheap box off ebay. Put Ubuntu server on it besides a nice webserver you can do all sorts of useful shit on it cron jobs etc. Its easy and I have never looked back!
 
Get a cheap box off ebay. Put Ubuntu server on it besides a nice webserver you can do all sorts of useful shit on it cron jobs etc. Its easy and I have never looked back!

I don't think my issue is with Windows. As stated above it is an Apache config issue(which I still need to explore). Windows, Linux, my kitchen toaster etc. would have the same problem.
 
Where did you set the DocumentRoot to?

Your gonna need to have mod_rewrite enabled in your Apache config. If you have it enabled and its still not working, follow iisbum's suggestion of adding the AllowOverride command to your htaccess config/httpd.conf (Unless your using Virtual Hosts, then it will be in the <virtualhost> block for that vhost)


EDDDDDDIIIIIITTTTTTTTTTT!!!!

Here's the <Directory> block with the AllowOverride command in it.. Once you put that line in, restart your Apache server...

Code:
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Allow from all
    Satisfy all
</Directory>
 
Status
Not open for further replies.