R.alim
R.alim

Reputation: 25

codeigniter project is not running in cpanel

I have done a project on Codeigniter and uploaded that on my domain like domain/project but its not running.It shows an error page not found ! I have changed my config file and have edited database.php also but still no running and throwing this error can any body help me ?

here is the config setup

     $config['base_url'] = 'http://localhost/crm/';

and in the the database.php

       'hostname' => 'localhost',
       'username' => 'root',
       'password' => '',
       'database' => 'crm_valentine',
       'dbdriver' => 'mysqli',

the htaccess inside my project file's are

     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ index.php/$1 [L]

i tried both but it produce this error Internal Server Error

  The server encountered an internal error or misconfiguration and was      unable to complete your request.

Please contact the server administrator at [email protected] to     inform them of the time this error occurred, and the actions you performed just   before this error.

More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while   trying    to use an ErrorDocument to handle the request.      

Upvotes: 1

Views: 2923

Answers (1)

the-noob
the-noob

Reputation: 1342

As Viky pointed out you need to change the base_url in your config.
Then make sure you are using that path. If you uploaded a project folder then you need to make it domain/project not domain/crm.
Make sure the database exists on your server.

And, most important, check the error logs for further hints of what went wrong.

Upvotes: 1

Related Questions