CodeIgniter Forums
[SOLVED]local installation moving system and application folders access denied - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: [SOLVED]local installation moving system and application folders access denied (/showthread.php?tid=57715)

Pages: 1 2


[SOLVED]local installation moving system and application folders access denied - El Forum - 04-06-2013

[eluser]Cgull[/eluser]
Oh, sorry, missed the part of your question about the 404, it is the CI one.


[SOLVED]local installation moving system and application folders access denied - El Forum - 04-06-2013

[eluser]Cgull[/eluser]
Shone, happy I helped you Smile Wonder why oh why, it is not working for me.

I understand from the 404 question that something is not right in my code? but then why would it work when I don't use the public_html folder?


[SOLVED]local installation moving system and application folders access denied - El Forum - 04-06-2013

[eluser]Aken[/eluser]
Cgull, check the code in your page controller. If its the static pages tutorial from the user guide, the file_exists() check may be hard coded to the application folder, meaning it's likely pointing to the wrong path, and generating the 404.


[SOLVED]local installation moving system and application folders access denied - El Forum - 04-07-2013

[eluser]Cgull[/eluser]
Thank you, found the solution.

In my index.php file I had this code:
Code:
switch(dirname(__FILE__))
{
  case 'C:\sites\highlandcoffeeroastery':
   define('ENVIRONMENT', 'development');
   break;
  default:
   define('ENVIRONMENT', 'production');
   break;
}

Changed this line
Code:
case 'C:\sites\highlandcoffeeroastery':
to
Code:
case 'C:\sites\highlandcoffeeroastery\public_html':

Thank you all for all the help.

God bless you.