wwwblast apache彻底解决方案

本地搭建自己的NCBI胺基酸序列BLAST比对网站
然后解压到apache www服务器的默认目录,gentoo的默认目录是/var/www/localhost/htdocs/。

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

<Directory "/var/www/localhost/htdocs/blast">

AddHandlercgi-scriptcgiREAL

OptionsIndexesFollowSymLinksMultiViews+ExecCGI

Orderallow,deny

Allowfromall

</Directory>

<Directory "/var/www/localhost/htdocs/blast">

AllowOverrideNone

Options+ExecCGI

Orderallow,deny

Allowfromall

</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

在<selectname="DATALIB">选项后添加

<option VALUE = "vector"> vector

6、更改目录权限

进入blast的安装目录

chmod775*

chmod777TmpGifs

chmod 666 *.log

7、进入http://ip/blast进行blast了

以上为通用方法,但还是会出现错误403,

那就得按以下的方法解决一下

顺便问了两句,原来这个机器开了selinux,可能是它造成的,试试关闭selinux对apache的保护:

/usr/sbin/setsebool-Phttpd_disable_trans1

相关推荐