wwwblast apache彻底解决方案

阅读更多
本地搭建自己的NCBI胺基酸序列BLAST比对网站
1、到ncbi下载wwwblast, http://www.ncbi.nlm.nih.gov/blast/download.shtml
然后解压到apache www服务器的默认目录,gentoo的默认目录是/var/www/localhost/htdocs/。

2、修改/etc/apache2/httpd.conf,加入下列代码


AddHandler cgi-script cgi REAL
Options Indexes FollowSymLinks MultiViews +ExecCGI
Order allow,deny
Allow from all


AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all

3、重启apache2

/etc/init.d/apache2 restart

4、格式化数据库文件,我们已在ncbi下载vector载体数据库为例,具体用法请参见

formatdb的说明
formatdb -i vector -p F -o T -n vector

5、修改blast.rc和blast.html文件
(1)blast.rc
在blastn后面加入vector
(2)blast.html