Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]local installation moving system and application folders access denied
#11

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

[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?
#13

[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.
#14

[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.




Theme © iAndrew 2016 - Forum software by © MyBB