wwwblast apache彻底解决方案

本地搭建自己的NCBI胺基酸序列BLAST比对网站
然后解压到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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值