Reputation: 5764
I am getting this error:
[Thu Jul 12 14:31:36 2012] [error] python_init: Python version mismatch, expected '2.6.7', found '2.6.8'.
while trying to start Apache server. In a question, someone advised to rebuild mod_python for the correct version of Python. But mod_python is not supported anymore. So how can I use Python 2.7 or 2.6 with mod_wsgi and fix that error?
Upvotes: 3
Views: 12017
Reputation: 5764
Finally I removed mod_python modules from python.conf. And rebuilt mod_wsgi. Now it is working. Thanks.
Upvotes: 1
Reputation: 4656
Normally minor versions don't require a rebuild, but in this case, you may need to rebuild mod_wsgi. You might need uninstall and reinstall the package. I think the person who recommended that you rebuild mod_python was confused; this was the package that was deprecated in favor of mod_wsgi.
Upvotes: 0