第一步安装Django:下载包:Django-0.96.1.tar.gz解压这个包:tar zxf Django-0.96.1.tar.gz -C/usr/tmp安装:cd /usr/tmpcd Django-0.96.1supython setup.py install检查安装是否正确:python>>> import django>>> django.VERSION(0, 96.099999999999994, None)>>>第二步安装MySQL:下载包:mysql-5.1.23-rc.tar.gz解压:tar zxf mysql-5.1.23-rc.tar.gz -C/usr/tmp安装:shell> groupadd mysqlshell> useradd -g mysql mysqlshell> gunzipshell> cd mysql-VERSIONshell> ./configure--prefix=/usr/local/mysqlshell> make这一步骤会需要一段时间,你可以选择去吃顿饭,但不要吃得太快。shell> make installshell> cp support-files/my-medium.cnf/etc/my.cnfshell> cd /usr/local/mysqlshell> chown -R mysql .shell> chgrp -R mysql .shell> bin/mysql_install_db --user=mysqlshell> chown -R root .shell> chown -R mysql varshell> bin/mysqld_safe --user=mysql &cp /usr/local/mysql/lib/mysql/libmysqlclient.so.16/usr/lib/.cp /usr/local/mysql/lib/mysql/libmysqlclient_r.so.16/usr/lib/.第三步安装Apache下载包:httpd-2.2.8.tar.gz解压:tar zxf httpd-2.2.8.tar.gz -C/usr/tmp安装:./configure--prefix=/usr/local/httpdmakemake install第四步安装mod_python下载包:mod_python-3.3.1.tgz解压:tar zxf mod_python-3.3.1.tgz -C/usr/tmp安装:./configure--with-apxs=/usr/local/httpd/bin/apxsmakemake install第五步安装MySQLdb下载包:MySQL-python-1.2.2.tar.gzsetuptools-0.6c5-py2.4.egg解压:tar zxf MySQL-python-1.2.2.tar.gz-C /usr/tmpcp setuptools-0.6c5-py2.4.egg/usr/tmp/MySQL-python-1.2.2安装:cd/usr/tmp/MySQL-python-1.2.2python setup.py buildsupython setup.py installchmod 644/root/.python-eggs/MySQL_python-1.2.2-py2.4-linux-i686.egg-tmp/_mysql.so安装差不多就是这样子。