`require_once '../../app/bootstrap.php';` Should be written as (like dev/shell/install.php): `require_once __DIR__ . '/../../app/bootstrap.php';` dev/shell/indexer.php line 27 dev/shell/log.php line 27 This way you can run the script from anywhere.