Cookie Problem in Django admin

Cookie Problem in Django admin

I recently setup a new Server, I was having trouble logging into the django admin. It kept telling me I didn't have cookies enabled. The problem, it turns out, was a conflict between php5 and mod_python.

The temporary solution to this is to disable 'mhash' in your php.ini, then restart apache.

I think a bug has been opened with Ubuntu on this and hopefully it will be sorted out shortly.

Posted on May 20, 2007
Tags: Django, Python

Comments

1

James commented, on October 15, 2007 at 5:43 p.m.:

Hello,

I'm getting this error but I don't have mhash anywhere in /etc/php5/apache2/php.ini... any ideas?

Thanks,
James

2

James commented, on October 15, 2007 at 5:46 p.m.:

Doh, found it in conf.d :)

3

macdet commented, on June 28, 2008 at 10:29 a.m.:

Wau, i looked for that such a long time!

You make my D-Day :) Thanks!

http://wiki.mobbing-gegner.de/Python/...

4

Álvaro Justen commented, on October 1, 2008 at 2:21 a.m.:

Thanks! ;-)
Some URLs to read more about:

http://code.google.com/p/modwsgi/wiki......
http://bugs.debian.org/cgi-bin/bugrep...

5

ganesh commented, on October 17, 2008 at 1:58 p.m.:

Hi,

I am using Linux Mint (an Ubuntu variant). My python version is 2.5.1. I get the above error. My /etc/php5/apache2/conf.d/ folder does not have any mhash file. Where else I should look for it?

Thanks in advance

6

mortgage loans commented, on October 14, 2011 at 1:38 a.m.:

I had a dream to start my own company, but I did not have enough amount of cash to do it. Thank God my colleague advised to utilize the personal loans. Hence I received the collateral loan and made real my desire.

Post a comment

Your name:

Comment: