diff --git a/phpBB/console.php b/phpBB/bin/phpbbcli.php
similarity index 97%
rename from phpBB/console.php
rename to phpBB/bin/phpbbcli.php
index 50706d0b43..e367748fd9 100644
--- a/phpBB/console.php
+++ b/phpBB/bin/phpbbcli.php
@@ -16,7 +16,7 @@ if (php_sapi_name() != 'cli')
 }
 
 define('IN_PHPBB', true);
-$phpbb_root_path = __DIR__ . '/';
+$phpbb_root_path = __DIR__ . '/../';
 $phpEx = substr(strrchr(__FILE__, '.'), 1);
 require($phpbb_root_path . 'includes/startup.' . $phpEx);
 require($phpbb_root_path . 'config.' . $phpEx);