Welcome Guest, Not a member yet? Register   Sign In
installing on new PC
#1

(This post was last modified: 02-08-2019, 12:16 PM by richb201.)

I am trying to install CI on a new Linux laptop. I modified index.php to point at the CI directory at /Home/codeigniter/CodeIgniter-3.1.10/system, but when I type localhost in the browser I am getting

"Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php"

I modified index.php to be:




*---------------------------------------------------------------
 * SYSTEM DIRECTORY NAME
 *---------------------------------------------------------------
 *
 * This variable must contain the name of your "system" directory.
 * Set the path if it is not in the same directory as this file.
 */
$system_path = '/Home/codeigniter/CodeIgniter-3.1.10/system';

/*

what is wrong? Do I need to also update the application_folder path?

The way I moved over from the Windows PC is that I copied my application directory which is c:/xampp/htdocs/sub_crud. It contains application, system, etc. Does this mean that I didn't need to do a reinstall of CI? Could I have just pointed $system_path at /var/www/html/sub_crud/system  on the Linux PC?
proof that an old dog can learn new tricks
Reply
#2

Your ./application and ./system folder paths point to were they are relative to your index.php file.

So if they are in a folder above index.php then you would enter like '../system'
two folders up would be '../../system'
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB