wwwblast apache徹底解決方案

來源:互聯網
上載者:User
本地搭建自己的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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.