Post Pic

Recompilining Apache with mod python

After a long struggle with getting Django working with Apache, I came to the conclusion the Apache that came with Cent OS does not work well with the newly compiled Python 2.4.4, It seems to fall back on the older version of python (2.3.4) which is already in the system.



So i decided to compile Apache from source and it works beautifully.



And apache is very clean, when you compile from scratch. I was able to compile the latest version (2.2) and recompile mod python.



Removed all httpd related packages from CentOS

php-5.1.6-1.2.1.centos
php-mysql-5.1.6-1.2.1.centos
php-pear-1.4.9-1.2.centos
php-pdo-5.1.6-1.2.1.centos
httpd-suexec-2.0.52-28.ent.centos4
httpd-2.0.52-28.ent.centos4



Then got the latest version of apache.


#wget http://apache.mirrormax.net/httpd/httpd-2.2.3.tar.gz
#tar xvfz httpd-2.2.3.tar.gz
#cd httpd-2.2.3
#./configure
#make
#make install



this time mod python was again complaining. You will have to compile with the apxs installed by the new apache 2.2.3


#./configure --with-apxs=/usr/local/apache2/bin/apxs



So what did i learn from this exercise.



Always recompile everything unless you want to stick to versions of python that came with the distro.

Related posts:

  1. Installing mod_python on Apache Still struggling with Apache and mod_python, today I was able...
  2. Installing Python 2.4.4 on Cent OS 4.4 (Final) We at ObjectGraph are moving to a dedicated hosting solution....
  3. [Python] Install PIL on Mac OSX Installing PIL in Mac OSX is a little tricky. Follow...
  4. Python Tutorial Everyone at OG is learning Python and related web frameworks...
  5. Python 3000 Guido van Rossum, the creator of python language talking...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave Your Response

* Name, Email, Comment are Required