Installing Craft in sub directory I need to install Craft under a laravel sub-directory http://example.com/corp/ where example.com is a laravel site. 

Does anyone have a clean way to install craft in a directory below an existing app?

Here is my config from /corp/public/index.php

// Path to your craft/ folder
$craftPath = '../../../craftsite/craft';

// Do not edit below this line
$path = rtrim($craftPath, '/').'/app/index.php';
With $craftPath you set the path to the craft/ directory (containing the app/ folder etc.) whereby your index.php is the starting point if you set this as a relative path:

// Path to your craft/ folder
$craftPath = '../relative/path/to/craft_dir/';


As narration_sd pointed out, the craft/ directory should be above the web root for security reasons. But this doesn't mean that you cannot have your index.php at http://example.com/corp/index.php. Just configure $craftPath accordingly. For example:

Laravel at web root:
/var/www/laravel-site/public/index.php

Craft in a subdir:
/var/www/laravel-site/public/corp/index.php

Craft app above web root:
/var/www/craftsite/craft/app/index.php

Craft's path config:
$craftPath = '../../../craftsite/craft';

Remember to also update the paths to your assets in the Control Panel and the paths to your files linked to in your templates.