index.htm prompts to download window (localhost)


I recently installed codeigniter on WAMP as a test server. I have to perform modifications to a site developed by another people in Code Igniter.

In the production site you enter by and offers a menu ---> aboutus.htm and the main site (index.php) when you click over any element you go to


but if I want to develop in my test server as localhost I can view the main page (menu), i can view the aboutus.html but when I want to watch the index.php or index.php/anything/anything I am prompted to the "download/save/cancel" window. I can't navigate locally.

$config['base_url']    = "http://localhost:4141/fundacion/html/";

my path is www/fundacion/html/(all teh files)

Someone knows why I can't navigate? Maybe is some with apache configuration?

i would say that php is not setup correctly on your wamp server
try attempting to run a simplke php script
create a file called phpinfo.php someone in the website
<?php phpinfo(); ?>
Then try to go to that page and see if it wants you to download
If you see the page then there is likely an extension in PHP that is not enabled, or some other error that is causing the page to display incorrectly

Hello tonanbarbarian. I can work with other php pages outside codeigniter (not MVC)I have other projects without troubles. My problem is only with this one.

There is some specific configuration in apache/php in order to use MVC and routing index.php/some ? Maybe my system doesn't understand this kind of path?


Is your default page loading??

[quote author="kirtan.n" date="1287691189"]Is your default page loading??
troubleshooting [/quote]

Hi. yes, I can load the default page and my config.php includes the "index.php?" I tried without question mark and obtain same bad result.


I'm not sure that's a definitive solution but I solved the problem as follows in the index.php file at the root, in line

error_reporting (E_ALL);

the change by

error_reporting (E_STRICT);

I hope you solve the problem

System:Linux ubuntu 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:58:24 UTC 2010 x86_64
Apache Version: Apache/2.2.14 (Ubuntu)
PHP Version: 5.3.2-1ubuntu4.5
Codeigniter Version: 1.72

Thank you Mercurio but it doesn't function for me Sad :down:

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.