ubuntu blast

来源:互联网 发布:linux服务器关机后断电 编辑:程序博客网 时间:2024/06/07 17:55

装过很多次的wwwblast,每次都会花些时间,这次给BCAM配置的时候也不例外。


sudo apt-get install libapache2-mod-perl2


1.配置好服务器

2.我的 /etc/apache2/sites-available/default

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /var/www/cgi-bin/
    <Directory "/var/www/cgi-bin">
        Options ExecCGI
                AddHandler cgi-script .cgi .pl .py .REAL
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

3.报错Premature end of script headers: blast_results.gif, referer: http://localhost/cgi-bin/blast/blast.cgi

4. 安装csh(apt-get install csh)后,问题解决。

原创粉丝点击