Skip to content
Advertisement

Your application folder path does not appear to be set correctly error in codeigniter

I get a error called “Your application folder path does not appear to be set correctly. Please open the following file and correct this: index.php”. I use the site within a folder in main domain. My .htaccess file is as follows, if required.

JavaScript

Advertisement

Answer

You should post also your ‘config’ file, usually this come from a base_url or something messing up. My working site with CI uses:

JavaScript

The .htaccess:

JavaScript

And all works fine. You could check with your own config/htaccess file.

From here: Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php and CodeIgniter CLI giving system_path error “path does not appear to be set correctly.”

The solution was to leave the $system_path blank…

$system_path = ”;

you can try this instead:

$system_path = ‘./system’;

Some people also solved this with setting permissions to CI folder:

  1. set the project folder permission to 755. Eg. sudo chmod 755 /var/www/myCIproject/

And last, for shared servers/folders:

https://serverfault.com/questions/371739/putting-folders-above-public-html-in-a-shared-hosting-environment

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement