Pregunta

I have developed my codeigniter project on windows, now I am putting it on the server which is Ubuntu 11.10 I put my root folder in

var/www

when I access my localhost through the web browser it displays the login page correctly, but when I try to log in, it displays

500 Internal Server Error

when I look at my /var/log/apache2/error.log it displays the following:

[error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Any idea of what may have made this, and how to solve this problem??? Thanks in advance

¿Fue útil?

Solución

Well, the problem has been solved, but I really don't know why?!! what I did is that I created a new folder in the var/www and put my root folder in it, so the full path of my application looked like that:

var/www/myapplications/applicationRoot

then I made some changes to the file

/etc/apache2/sites-enabled/000-default

I set the "DocumentRoot" to

var/www/myapplications/applicationRoot

and the "Directory" to the same

var/www/myapplications/applicationRoot

then I tried to access the application from my web browser on using

localhost

and it displayed the log in page nicely, then when I logged in it worked just fine without any errors

Otros consejos

Check your .htaccess file(if you have one) in the CodeIgniter directory root. Is there a RewriteBase directive used in that file or somewhere else? Is it configured correctly? Sharing the .htaccess file if there is one could help to locate your problem.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top