Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

install the third-party package

Help
2006-12-02
2013-04-25
  • I install the third-party package according to the following text.
    But I met a problem when I installed DACS.So I doubt something wrong before.
    Plese check the following text whether these are enough and right?
    Thank you very much!

    (1) install Openssl-0.9.8c.orig.tar.gz:

    tar –zxvf Openssl-0.9.8c.orig.tar.gz  
    cd openssl-0.9.8c
    ./config --prefix=/usr/local   
    Make            
    Make install          

    after this,modification part of /usr/local/ssl/openssl.cnf
    as following:
    dir= /usr/local/ssl/misc/demoCA   #where everything is kept
    default_days= 3650    #the original value =365,how long the certify for
    default_bits = 2048    #the original value =1024

    (2) install expat-2.0.0.tar.gz

    tar –zxvf Expat-2.0.0.tar.gz 
    ./configure –prefix=/usr/local
    Make
    Make install

    (3) install Apache_2.0.59.tar.gz

    tar –zxvf  Apache_2.0.59.tar.gz  
    cd  httpd-2.0.59
    ./configure  --enable-ssl  --with-ssl=/usr/local/ssl   \ --prefix=/usr/local/apache-dacs
    Make
    Make install
    modificate /etc/hosts as following:
    127.0.0.1    localhost dodgers.dacstest.dss.ca

    paste the following text into /usr/local/apache-dacs/conf/httpd.conf

    # Permit access to the DACS documents
    <Directory /usr/local/dacs/www/*>
      Options Indexes FollowSymLinks
      Order allow,deny
      Allow from all
    </Directory>

    # Configure a virtual host and make the DACS documents available
    NameVirtualHost 127.0.0.1:18123
    Listen 127.0.0.1:18123
    <VirtualHost 127.0.0.1:18123>
      ServerName localhost
      DocumentRoot "/usr/local/apache-dacs/htdocs"
      ErrorLog "/usr/local/apache-dacs/logs/error_log"
      TransferLog "/usr/local/apache-dacs/logs/access_log"
      ScriptAlias /cgi-bin/ "/usr/local/apache-dacs/cgi-bin/"
      Alias /css "/usr/local/dacs/www/css/"
      Alias /dtd-xsd "/usr/local/dacs/www/dtd-xsd/"
      Alias /examples "/usr/local/dacs/www/examples/"
      Alias /handlers "/usr/local/dacs/www/handlers/"
      Alias /man "/usr/local/dacs/www/man/"
      Alias /misc "/usr/local/dacs/www/misc/"
      Alias /mod "/usr/local/dacs/www/mod/"
    </VirtualHost>

    change the number 267 and 268 lines to:

    User nobody
    Group www

    add a new line to /etc/group as:

    www:x:81:

    then switch to root:

    chgrp -R www /usr/local/apache-dacs
    chmod -R g+w /usr/local/apache-dacs
    set dacsgroup=www
    /usr/local/apache-dacs/bin/apachectl start

    After that we can find a welcome page from URL:http://localhost:18123

    after input the following command

    chmod 0750 /usr/local/apache-dacs/cgi-bin/test-cgi
    We can find the following information from:     URL:http://localhost:18123/cgi-bin/cgi-test

    CGI/1.0 test script report:
    argc is 0. argv is .
    SERVER_SOFTWARE = Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8c
    SERVER_NAME = localhost
    GATEWAY_INTERFACE = CGI/1.1
    SERVER_PROTOCOL = HTTP/1.1
    SERVER_PORT = 18123
    REQUEST_METHOD = GET
    HTTP_ACCEPT = text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
    PATH_INFO =
    PATH_TRANSLATED =
    SCRIPT_NAME = /cgi-bin/test-cgi
    QUERY_STRING =
    REMOTE_HOST =
    REMOTE_ADDR = 127.0.0.1
    REMOTE_USER =
    AUTH_TYPE =
    CONTENT_TYPE =
    CONTENT_LENGTH =

     
    • Barry Brachman
      Barry Brachman
      2006-12-04

      Everything seems ok so far.

      Barry