set the "document root" to the public folder inside your project |
(07-14-2017, 09:41 AM)Edel Wrote: If in system/CodeIgniter.php , I delete line 38 I run Linux and have successfully installed CodeIgniter several times. I found the installation instructions slightly confusing because Ubuntu Apache2 does not have a /public/ folder. Instead it has a /public_html/ folder where index.php should be copied and modified. The modifications are to set the paths to the Application and System folders. The index.php can be tested by echo __FILE__; die; at the top of the index.php file. This should display the full path when http://localhost/ is called from the browser command line. I copy the Application folder above the Root (where the index.php file resides) and the System folder into an even higher, common, CI2 folder (could even be on another drive). This makes it easily available to other CodeIgniter installations on the same drive. The System folder contents should never be altered. The identical structure can be uploaded to the server and does not require any changes apart from the .htaccess file for pretty URLs, file type optimisatiion, caching, etc. |
Welcome Guest, Not a member yet? Register Sign In |