OK, here we go. Jim described CGI for you so you have some idea of what is happening here. I got mine to run but still have some errors with my m2web.cgi script.
I am suggesting a slight variation on the instructions found on http://vista.vmth.ucdavis.edu/notebook/index/48.html as these instructions are consistent to an apache compiled from source. If you are working with a Red Hat box and you don't know apache that well it can be a mind blower. Follow the instructions above to step 4. I will explain steps 5-8, which is going to be a bit different for a Red Hat box. 1. Instead of copying m2web-vista-site file to a directory let's edit our apache server configuration file with the new Virtual Host stanza contained within the m2web-vista-site file. We need to change some of the paths for logging etc. I will include my edited version below so you can copy and paste into your config. Just edit the IP and the ServerName. 2. After we add the VirtualHost stanza to our /etc/httpd/conf/httpd.conf file with the contents of m2web-vista-file we need to make sure that the suexec is setup correctly. suexec let's the apache web server execute scripts as a different user. In our example we want the server to execute the scripts as vista. Make sure you have the suexec module loaded into apache. Look for a line in httpd.conf like so. LoadModule suexec_module modules/mod_suexec.so Also make sure the permissions are set on the suexec binary. This is a slight security risk as this binary is set to execute as the root user chown root.apache /usr/sbin/suexec chmod 4750 /usr/sbin/suexec ls -l /usr/sbin/suexec 3. Now restart your web server and see if you can access your virtual vista server. # service httpd restart Go to your browser and give it a whirl. ---------------------------------- <VirtualHost PUT-YOUR-IP-ADDRESS-HERE:80> ServerName vista.oswizards.com ServerAlias vista ServerAdmin [EMAIL PROTECTED] SuexecUserGroup vista vista DocumentRoot /var/www/vista/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options ExecCGI Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> <Directory "/var/www/vista/"> AllowOverride None Options ExecCGI Indexes FollowSymLinks MultiViews Order allow,deny Allow from all </Directory> ErrorLog /var/log/httpd/vista_error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/httpd/vista_access.log combined ServerSignature On Alias /icon/ "/usr/local/m2web/w/icon/" <Directory "/usr/local/m2web/w/icon"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Alias /icons/ "/var/www/icons/" <Directory "/var/www/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Alias /doc/ "/usr/local/m2web/" <Directory "/usr/local/m2web"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias / /var/www/vista/m2web.cgi/ </VirtualHost> On Monday 02 May 2005 10:47, Kevin Toppenberg wrote: > My Apache is working. It is serving this site: > http://69.68.182.66 > > I don't know how to tell the version number. > > I have not tried to use any of the CGI scripts. How > would I do that? > > I appreciate your help! > > Kevin > > > --- Aylesworth Marc A Contr AFRL/IFSE > > <[EMAIL PROTECTED]> wrote: > > I believe that apache 2 denotes the version of > > Apache running as 2.0. My > > first question is apache working and can you run the > > default CGI scripts > > that come with it. > > > > Thanks > > > > Marc Aylesworth > > > > C3I Associates > > > > AFRL/IFSE > > > > Joint Battlespace Infosphere Team > > > > 525 Brooks Rd > > > > Rome, NY 13441-4505 > > > > Tel:315.330.2422 > > > > Fax:315.330.7009 > > > > Email: [EMAIL PROTECTED] > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > > On Behalf Of Kevin > > Toppenberg > > Sent: Saturday, April 30, 2005 4:29 PM > > To: hardhats-members@lists.sourceforge.net > > Subject: [Hardhats-members] Need help setting up > > M2web > > > > I'm having trouble setting up M2web. I know nothing > > about cgi, so bear with me please. > > > > Jim sent me these instruction... > > > > ===================== > > ... > > > > >P.S. Could you post where I can get the code from, > > > > and where the API is documented? > > > > > > Basic documentation on the view2 query engine can be > > found at > > http://vista.vmth.ucdavis.edu/notebook/index/26.html > > > > If you have downloaded m2web recently then you > > already > > have the source code. If not: > > http://vista.vmth.ucdavis.edu/notebook/index/48.html > > > > The entry point for application programmers is > > go^view2ht. We assume that local variables will be > > defined to reflect the CGI environment, for instance > > htUser is the number of the current logged in user > > and > > the user's authorization code is in htUser("Auth"). > > If > > you are attempting to use the viewer from a non-web > > context, look in ^htCGI1 to see what MUMPS variables > > would be defined or look in ^view2ht and ^view2htS > > to > > see which are actually used. > > ===================== > > > > I also looked at the instructions in the > > m2web-vsta-install.html file > > > > The above instructions, however, require Apache2 to > > be > > installed. I think I have just plain Apache. > > > > I found these (apparently older) instructions: > > http://vista.vmth.ucdavis.edu/notebook/index/12.html > > That seem target at plain Apache. > > But these describe a different directory setup. > > > > Also, I'm not clear about what linux users I need to > > set up. It looks in some of the instructions that > > there is a vista user. Other places I think I saw a > > m2web user. Are those required. > > > > I know I'm being slow, but if someone could walk me > > through this I'd appreciate it. > > > > Thanks > > Kevin > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: NEC IT Guy Games. > > Get your fingers limbered up and give it your best > > shot. 4 great events, 4 > > opportunities to win big! Highest score wins.NEC IT > > Guy Games. Play to > > win an NEC 61 plasma display. Visit > > http://www.necitguy.com/?r=20 > > _______________________________________________ > > Hardhats-members mailing list > > Hardhats-members@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: NEC IT Guy Games. > > Get your fingers limbered up and give it your best > > shot. 4 great events, 4 > > opportunities to win big! Highest score wins.NEC IT > > Guy Games. Play to > > win an NEC 61 plasma display. Visit > > http://www.necitguy.com/?r=20 > > _______________________________________________ > > Hardhats-members mailing list > > Hardhats-members@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > Hardhats-members mailing list > Hardhats-members@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hardhats-members -- Mark Street, RHCE http://www.oswizards.com -- Key fingerprint = 3949 39E4 6317 7C3C 023E 2B1F 6FB3 06E7 D109 56C0 GPG key http://www.oswizards.com/pubkey.asc ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members