The Wayback Machine - https://web.archive.org/all/20050206081850/http://emumail.com:80/support/webmail/webmail_install_zeus.html
Webmail, Wireless Email, Calendaring & Outsourcing Services
Home  Search  Legal  Contact
 
Support
 
Webmail
WAPmail
Web Calendar
Tech Inquiry
 
 
 
 
 

Support
Webmail
 

Webmail Installation for Zeus Web Server

Preparation

Download and install the EMUMAIL package following the instructions provided by EMUMAIL. Due to the way that Emumail runs, we suggest that you make your Emumail installation directory one that you are happy for html pages to be served from. We will refer to this directory as $EMUHOME To configure Emumail to use FastCGI :-

  1. In the $EMUHOME/html/ directory, make a symbolic link from emumail.cgi to emumail.fcgi
     
    ln -s emumail.cgi emumail.fcgi
     
  2. Edit the following lines in $EMUHOME/data/site.emu to read as below
     
    use_fastcgi=true
    emu_url=emumail.fcgi
You will also need to configure Emumail to talk to your mail server as documented by Emumail.
 
Integration with Zeus
  1. Make a copy of $ZEUSHOME/web/bin/fcgirunner.pl
     
    fcgirunner.pl fcgirunner.old.pl
     
  2. Replace the following lines from the section entitled "# Create the fcgi child process and exit."
     
    Replace:
     
    setgrp( 0, 0 ) or die "setgrp( 0, 0 ): $!\n";
     
    exec ( @ARGV ) or die "exec( ".(join ", ", @ARGV )." ) failed: $!\n";

     
    With:
     
    setgrp( 0, 0 ) or die "setgrp( 0, 0 ): $!\n";
     
    my $children = 10;
       while( --$children ) {
          my $res = fork();
          ( $res >= 0 ) or die "fork: $!\n";
          if( $res == 0 ) {
          exec( @ARGV ) or die "exec( ".(join ", ", @ARGV )." ) failed: $!\n";
          }
       }
     
    exec ( @ARGV ) or die "exec( ".(join ", ", @ARGV )." ) failed: $!\n";

     
  3. Move to $EMUHOME/html and run the following command, or similar, as a user other than root who has permissions to read from and write to $EMUHOME/data/homes and $EMUHOME/data/tmp, substituting your Zeus webserver installation directory for $ZEUSHOME. You may use any free port that you can access as a user other than root.
     
    /usr/local/zeus/web/bin/fcgirunner 8004 emumail.fcgi
     
    You should now see 10 emumail children in your process list.
     
  4. Create a virtual server with the document root set to $EMUHOME/html.
     
  5. In the map module, set up two aliases.
     
    Docroot path: /emu/
    Filesystem directory: $EMUHOME
    Alias type: fastcgi
     
    Document path: /emu/emuimages/
    Filesystem directory: $EMUHOME/html/emuimages
    Alias type: simple

     
  6. Enable the FastCGI module, and configure a remote responder
     
    Docroot path: /emu/emumail.fcgi
    Remote machine: localhost:8004

     
    The port number should be substituted for the port number used when starting the fcgirunner.
     
  7. Edit the file $EMUHOME/html/index.html so that the URL section reads:
     
    URL=/emu/emumail.fcgi
     
Testing Product with Zeus Web Server
 
You should now be able to access emumail by going to the front page of your emumail virtual server.
 
Troubleshooting
 
It may be necessary to run the fcgi as ./emumail.fcgi with the fcgirunner. If you do not have permissions to write to the directories necessary, you'll get a whole load of HTML telling you this.
 
 
 
Home | Solutions | Store | Downloads | Support | Company Info | Contact Us
Webmail
© EMUMAIL Inc., 18 City View Road, Brookline, MA 02446, T.860.429.5741, F.617.507.8487