0

I'm currently in the investigation stage of using CakePHP (2.x in particular). I noticed that on the deployment docs I need to set the document root accordingly in httpd.conf, unfortunately for this project I don't have access to httpd.conf nor any directories below the given webroot.

Given that, my two questions are: 1. Is it possible to still run CakePHP without being able to set the document root? 2. Are there any potential downsides in doing this?

Perishable Dave
  • 2,858
  • 2
  • 24
  • 29

1 Answers1

0

Absolutely, you can use CakePHP in any subdirectory. The only thing you may find useful is the RewriteBase directive, which I think is well explained here: How does RewriteBase work in .htaccess

The one other small problem I've noted is that some CakePHP plugins out there do assume a root directory :( which is unfortunate, and I've had to append Router::url("/") when I see those.

Other than that, you should have no problem running CakePHP on a subdirectory.

Community
  • 1
  • 1
Suman
  • 9,221
  • 5
  • 49
  • 62