手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

wwwblast Apache彻底解决方案

[日期:2011-05-02] 来源:Linux社区  作者:anywn1314 [字体:大 中 小]

本地搭建自己的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

linux
相关资讯       Apache  wwwblast 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款