Running CodeIgniter on localhost from Ubuntu dist. |
[eluser]tirithen[/eluser]
I'm trying to set up an development environment for CodeIgniter on an Ubuntu gutsy desktop installation. I've installed apache2, php5 and mysql-server and enabled apache2 mods rewrite and userdir. Then I downloaded a working version of my CodeIgniter folder from my internet server to the /home/user/public_html/ folder, included the .htaccess file and finally reconfigured the settings in CodeIgniter's database.php and config.php. base_url and so on. Both apache2 and mysql works fine from localhost an if I address my site like this; http://localhost/~tirithen/index.php/nyheter/sv; it displays the site as it should but if I write the adress like; http://localhost/~tirithen/nyheter/sv; I get this error message: Quote:Not Found At first I thought that something was wrong with mod_rewrite but on the 404 page it looks like index.php was added and the thing missing in the url is the base_url. My base_url is set to Code: $config['base_url'] = "http://localhost/~tirithen/"; Someone with experience from a setup similar to this one, after a few days I'm out of ideas. If I get this to work I'll write an howto for this forum from installing ubuntu -> displaying CodeIgniter's welcome message becouse I'm missing one. Ah, and yes this is my .htaccess file from my sites root dir "public_html": Quote:<IfModule mod_rewrite.c> |
Messages In This Thread |
Running CodeIgniter on localhost from Ubuntu dist. - by El Forum - 11-27-2007, 06:53 AM
Running CodeIgniter on localhost from Ubuntu dist. - by El Forum - 11-27-2007, 07:13 AM
Running CodeIgniter on localhost from Ubuntu dist. - by El Forum - 11-27-2007, 07:42 AM
|