Welcome Guest, Not a member yet? Register   Sign In
Installation Problem: CodeIgniter not finding system and application folders
#1

[eluser]php_princess[/eluser]
Okay, I was following the Installation Instructions: http://ellislab.com/codeigniter/user-gui...index.html

Specifically, I did the following two things and started having problems:

#1 "If you wish to increase security by hiding the location of your CodeIgniter files you can rename the system and application folders to something more private. If you do rename them, you must open your main index.php file and set the $system_folder and $application_folder variables at the top of the file with the new name you've chosen."

#2 "For the best security, both the system and any application folders should be placed above web root so that they are not directly accessible via a browser. By default, .htaccess files are included in each folder to help prevent direct access, but it is best to remove them from public access entirely in case the web server configuration changes or doesn't abide by the .htaccess."

So anyways I changed my application folder's name to "earth" and my system folder's name to "galaxy".

These folders were in my website's root directory, "public_html". I moved them up one level to the root which is home2/myaccountname/ (not my real account name)

I updated the empty strings in $system_folder and $application_folder in index.php to "home2/myaccountname/galaxy" and "home2/myaccountname/earth", respectively

Now when I go to index.php in the browser, I get this: "Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php"

Before, it was displaying the CodeIgniter welcome message.

I thought I'd just gotten my folder names mixed up so in the $system_folder and $application_folder variables I swapped "earth" and "galaxy." Same results.

Edit: As a test, I used require() on the earth folder to see what would happen. I got this:
Warning: require(/home2/myaccountname/earth/) [function.require]: failed to open stream: Inappropriate ioctl for device in /home2/myaccountname/public_html/index.php on line 21 (account name changed for posting on this forum)
#2

[eluser]Aken[/eluser]
Have you tried adding a slash to the start of your system and application paths? Without a beginning slash, it acts as a relative path.
#3

[eluser]php_princess[/eluser]
Yes, and I've experimented with a slash at the end too.

Edit: Oh I see what was wrong. When I tried putting a slash at the beginning, it was when I had swapped "earth" and "galaxy" in the file paths. >.>

Thanks for helping me realize this.




Theme © iAndrew 2016 - Forum software by © MyBB