08-01-2014, 06:45 AM
[eluser]Discfunk[/eluser]
Hi Guys,
Sorry to be a pain but i am pulling my hair out trying to get a local install of a codeigniter site working on my pc.
I have installed WAMP. It works fine. I have enabled the Apache rewrite_module.
I have installed the latest version of CodeIgniter into the www folder of wamp. CodeIgniter works and loads the expected welcome view.
I then did a dump of the mysql database of the online codeigniter site i'm trying to play with. the database is called ece_db. I created this on my localhost and loaded in the data.
I then ftp'd the codeigniter site from the web (which works fine online) to my pc. I saved it in the folder wamp/www/ece/
I then edited the www/ece/application/config/config.php file to say
$config['base_url'] = 'http://localhost/ece/';
I then edited the www/ece/application/config/database.php file to say:
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = 'ece_db';
$db['default']['dbdriver'] = 'mysql';
Finally, I changed the www/ece/.htaccess file to have:
<IfModule mod_rewrite.c>
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
</IfModule>
#RewriteEngine On
#RewriteCond %{HTTP_HOST} !^localhost/ece/$ [NC]
#RewriteRule ^(.*)$ http://localhost/ece/$1 [R=301,L]
I don't know what else there is to change. However when i point my browser to http://localhost/ece/ i get a 500 internal server error. I can't work out why!! Driving me crazy.
Can anyone advise whether a) i've done anything wrong and/or b) suggest other files or areas that may be the problem to help me troubleshoot??
Thanks
Tom
Hi Guys,
Sorry to be a pain but i am pulling my hair out trying to get a local install of a codeigniter site working on my pc.
I have installed WAMP. It works fine. I have enabled the Apache rewrite_module.
I have installed the latest version of CodeIgniter into the www folder of wamp. CodeIgniter works and loads the expected welcome view.
I then did a dump of the mysql database of the online codeigniter site i'm trying to play with. the database is called ece_db. I created this on my localhost and loaded in the data.
I then ftp'd the codeigniter site from the web (which works fine online) to my pc. I saved it in the folder wamp/www/ece/
I then edited the www/ece/application/config/config.php file to say
$config['base_url'] = 'http://localhost/ece/';
I then edited the www/ece/application/config/database.php file to say:
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = 'ece_db';
$db['default']['dbdriver'] = 'mysql';
Finally, I changed the www/ece/.htaccess file to have:
<IfModule mod_rewrite.c>
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
</IfModule>
#RewriteEngine On
#RewriteCond %{HTTP_HOST} !^localhost/ece/$ [NC]
#RewriteRule ^(.*)$ http://localhost/ece/$1 [R=301,L]
I don't know what else there is to change. However when i point my browser to http://localhost/ece/ i get a 500 internal server error. I can't work out why!! Driving me crazy.
Can anyone advise whether a) i've done anything wrong and/or b) suggest other files or areas that may be the problem to help me troubleshoot??
Thanks
Tom