本地搭建自己的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,加入下列代碼
<Directory "/var/www/localhost/htdocs/blast">
AddHandler cgi-script cgi REAL
Options Indexes FollowSymLinks MultiViews +ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/localhost/htdocs/blast">
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
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
在<select name = "DATALIB">選項後添加
<option VALUE = "vector"> vector
6、更改目錄許可權
進入blast的安裝目錄
chmod 775 *
chmod 777 TmpGifs
chmod 666 *.log
7、進入http://ip/blast進行blast了
以上為通用方法,但還是會出現錯誤403,
那就得按以下的方法解決一下
順便問了兩句,原來這個機器開了selinux,可能是它造成的,試試關閉selinux對apache的保護:
/usr/sbin/setsebool -P httpd_disable_trans 1