use APPPATH to fetch language and modules in case of the user move index.php. Thanks to Petr Valenta