Welcome Guest, Not a member yet? Register   Sign In
CI in a Linux environment setup
#1

 Hello All,

I am running into so much problems when installing codeigniter in a linux environment and i have no problems when installing it on a windows type environment.
I'll try to explain my problems clearly and what i have tried so far. I hope there is an expert who has installed CI in a linux environment such as CentOS 6 or cPanel that can spot the problem.

Ok so here goes

- So last 3 weeks i downloaded version 3.0.0, i developed my application locally using XAMPP server and i transferred my CI folder to an external server, CentOS 6 root folder (where files are usually called publicly).

- I set up the base_url: http://IP_Address/My_folder/

- As soon as i try to load the application i get a: "Error 404 Page not found"
This message was generated from within the CI error folder: views/error/html/error_404.php so i know i am accessing the file.

What i have tried so far

- Checked php server compatibility
- I looked at countless Stackoverflow solutions such as:
 - Changing the htaccess information
 - Changing the $config['uri_protocol'] = 'REQUEST_URI'; to the other two types QUERY_STRING and PATH_INFO
 - Changing the $config['index_page'] = ""; to $config['index_page'] = "index.php?";
 - lowercase names for the controller filename and uppercase for the class name
- On my godaddy cpanel i used their auto CI installer that installs a fresh CI. This fresh CI worked (showing the initial welcome page).
 - I noticed however, in the config/routes.php, that when i try to change the:
   $route['default_controller'] = 'welcome';
   to
   $route['default_controller'] = 'main/index'; //my controller_name/function_name
   
   I get the same "404 Page error". But when i leave it as 'welcome' and change the views/welcome_message.php data it loads with what i put in it.
   But if i put an <a> link that directs someone to another page (via controller) i get the 404 Error.

I am not sure if it is a route problem happening, setup problem or if linux systems route differently.

Please help Sad . Thank you.
Reply


Messages In This Thread
CI in a Linux environment setup - by Raidenlee - 06-19-2015, 05:12 PM
RE: CI in a Linux environment setup - by kenjis - 06-19-2015, 07:57 PM
RE: CI in a Linux environment setup - by esle - 10-22-2019, 03:44 PM
RE: CI in a Linux environment setup - by mboufos - 10-23-2019, 12:05 AM
RE: CI in a Linux environment setup - by esle - 10-23-2019, 12:31 AM
RE: CI in a Linux environment setup - by esle - 10-23-2019, 07:44 AM
RE: CI in a Linux environment setup - by esle - 10-23-2019, 09:20 AM
RE: CI in a Linux environment setup - by esle - 10-24-2019, 02:02 AM
RE: CI in a Linux environment setup - by esle - 10-24-2019, 09:49 AM
RE: CI in a Linux environment setup - by esle - 10-25-2019, 03:07 AM
RE: CI in a Linux environment setup - by esle - 10-25-2019, 03:48 AM
RE: CI in a Linux environment setup - by esle - 10-27-2019, 04:03 AM
RE: CI in a Linux environment setup - by esle - 10-28-2019, 01:27 AM
RE: CI in a Linux environment setup - by esle - 10-28-2019, 02:09 AM
RE: CI in a Linux environment setup - by esle - 10-29-2019, 01:46 AM
RE: CI in a Linux environment setup - by esle - 11-04-2019, 08:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB