RED Hat fetch of texis.cgi murdered

User avatar
mark
Site Admin
Posts: 5514
Joined: Tue Apr 25, 2000 6:56 pm

RED Hat fetch of texis.cgi murdered

Post by mark »

samoa
Posts: 17
Joined: Thu Mar 28, 2002 5:20 pm

RED Hat fetch of texis.cgi murdered

Post by samoa »

interesting find. during the load of texis.cgi for the install has been failing.

are you saying webinator 4 is installed properly?

thanks!
samoa
Posts: 17
Joined: Thu Mar 28, 2002 5:20 pm

RED Hat fetch of texis.cgi murdered

Post by samoa »

woops. my bad.

Texis Web Script (Vortex) Copyright © 1996-2002 Thunderstone - EPI, Inc.
Free Webinator Version 4.00.1015437545 of Mar 6, 2002 (i686-unknown-linux2.4.9-64)
samoa
Posts: 17
Joined: Thu Mar 28, 2002 5:20 pm

RED Hat fetch of texis.cgi murdered

Post by samoa »

well, it looks like some stuff got installed properly.
but trying to run the webinatoradmin results in the following. i'm a little leary of setting the permissions manually but it appears that this is pretty close to being complete?

Texis Web Script (Vortex) Copyright © 1996-2002 Thunderstone - EPI, Inc.
Free Webinator Version 4.00.1015437545 of Mar 6, 2002 (i686-unknown-linux2.4.9-64)

Error
002 /webinator/webinatoradmin: Can't open source file /home/httpd/vhosts/christianism.com/httpdocs/webinator/webinatoradmin: No such file or directory
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

RED Hat fetch of texis.cgi murdered

Post by Kai »

There's significantly more stuff the install must do after the point at which it's failing on your machine. The major things include the following (installdir is your install dir, typically /usr/local/morph3, and docroot is your web server's DOCUMENT_ROOT directory):

Copying these files from installdir/webinator to docroot/webinator: bar0.gif bar1.gif button0.gif button1.gif tstonebut.gif newindex.html dowalk webinatoradmin swdrmlog.gif
Copying installdir/webinator/search4 to docroot/webinator/search
Updating dowalk's <$searchscript = > variable to be correct
Setting a password for the Webinator administrator (access the dowalk script from the web and it will prompt you; do it right away to secure your site).
samoa
Posts: 17
Joined: Thu Mar 28, 2002 5:20 pm

RED Hat fetch of texis.cgi murdered

Post by samoa »

OK. Sysadmin disabled suexec on a test virtual host and it got much further but then died as shown below.

so to avoid advertising the domain before, I had him create a virtualhost lino.infostats.com and installed and had the same problem as before.

then as I said above, he disabled suexec and the text.cgi error went away but now the next problem surfaced.


sh ./install
===============================================================================
Webinator Version 4.00 Installation v1.43
===============================================================================

If you already have full Texis or an older version of Webinator installed
you should read the upgrade notes.
View the upgrade notes? (y/n): n
Examining your system...done

------------------------------ NOTE: ---------------------------------
This installation should preferably be run as the user that will
actually run the software, not as root. The user should be the same
user that your web server runs CGI programs as. For this installation
you should have permission to place and move files in the install
directory and the web server tree.

You appear to be root. What (non-privileged) user will be running the
software? Webinator files will be owned and setuid to this user. Either:
o Enter the CGI user below, or
o Enter "none" to skip the chown (YOU will have to do it later), or
o Press Ctrl-C/Del to quit, and re-start install as the CGI user.

Web user [ENTER for apache]:
[root@server1 temp]# cd ..
[root@server1 httpdocs]# cd temp
[root@server1 temp]# sh ./install
===============================================================================
Webinator Version 4.00 Installation v1.43
===============================================================================

If you already have full Texis or an older version of Webinator installed
you should read the upgrade notes.
View the upgrade notes? (y/n): n
Examining your system...done

------------------------------ NOTE: ---------------------------------
This installation should preferably be run as the user that will
actually run the software, not as root. The user should be the same
user that your web server runs CGI programs as. For this installation
you should have permission to place and move files in the install
directory and the web server tree.

You appear to be root. What (non-privileged) user will be running the
software? Webinator files will be owned and setuid to this user. Either:
o Enter the CGI user below, or
o Enter "none" to skip the chown (YOU will have to do it later), or
o Press Ctrl-C/Del to quit, and re-start install as the CGI user.

Web user [ENTER for apache]:

-----------------------------------------------------------------------
What directory would you like to install Webinator in? Webinator
executables and other files will be placed under here. It should be
OUTSIDE (inaccessible to) your web server tree. NOTE: This directory
should be /usr/local/morph3 unless you are unable to install there.

Install dir [ENTER for /usr/local/morph3]: /sites/lino.infostats.com/httpdocs/web7
Directory /sites/lino.infostats.com/httpdocs/web7 does not exist.
Shall I create it? (y/n) [ENTER for y]:
Directory /sites/lino.infostats.com/httpdocs/web7 created.
Checking install dir...Ok
Checking tar file...Ok
Unpacking Webinator files...Ok
Checking for existing version....../install: [: -ne: unary operator expected
Ok
Checking files...Ok
Configuring and installing Webinator files:
INFO: 1 patch made
INFO: 1 patch made
Cleaning up temp files...done

---------------------------------------------------------------------
Where is your web server's CGI directory? This is the full path to
the file system (*not* URL) directory on this machine containing your
CGI programs. Usually this is under the top directory for the web
server. For Apache servers, it is probably the second argument to
ScriptAlias in your conf file.

This installation will install some programs (symlinks) in the CGI
directory you specify. Programs there must be executable by the web
server. The install will verify this with a web fetch.

CGI dir [ENTER for /var/www/cgi-bin]: /sites/lino.infostats.com/cgi-bin

-------------------------------------------------------------------------
What is the prefix for CGI URLs (the part of the URL before the program)?
o You may enter a URL, such as http://server1.clickey.com/cgi-bin
if your site uses virtual hosts or a port other than 80. The site
must reside on this machine (the one running the install).
o Or you can enter just a URL path such as /cgi-bin (assumes host above)
o Or enter /newdir to start over with a new CGI directory instead.

CGI URL prefix [ENTER for http://server1.clickey.com/cgi-bin]: http://lino.infostats.com/cgi-bin

---------------------------------------------------------------------------
What is the extension for CGI URLs (the filename extension of the program)?
This may be .cgi if your CGI programs are named like "mysearch.cgi" in URLs.
Or it may be "none" if you have a dedicated CGI dir and URL instead.

CGI extension [ENTER for .cgi]:
Stopping monitor processes.....done
Checking dir with a web fetch...failed, will try again
Trying again with file...Ok
Verifying version...Ok
Verifying variables...Ok
Your document root appears to be: /home/httpd/vhosts/lino.infostats.com/httpdocs
Installing Webinator
INFO: 2 patches made
Compiling Webinator scripts
Texis Web Script (Vortex) Copyright (c) 1996-2002 Thunderstone - EPI, Inc.
Free Webinator Version 4.00.1015437545 of Mar 6, 2002 (i686-unknown-linux2.4.9-64)

002 /home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/search:411: Can't open KDBF file /var/www/vhosts/christianism.com/htdocs/webinator/texis/testdb/SYSTABLES.tbl for writing: error 13: Permission denied
000 /home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/search:411: Could not open SYSTABLES in the function ddopen
000 /home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/search:411: Could not connect to /var/www/vhosts/christianism.com/htdocs/webinator/texis/testdb in the function openntexis
Press ENTER to continue:
chgrp: getting attributes of `/home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/search.vtx': No such file or directory
chown: getting attributes of `/home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/search.vtx': No such file or directory
chmod: getting attributes of `/home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/search.vtx': No such file or directory
Texis Web Script (Vortex) Copyright (c) 1996-2002 Thunderstone - EPI, Inc.
Free Webinator Version 4.00.1015437545 of Mar 6, 2002 (i686-unknown-linux2.4.9-64)

002 /home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/dowalk:508: Can't open KDBF file /var/www/vhosts/christianism.com/htdocs/webinator/texis/testdb/SYSTABLES.tbl for writing: error 13: Permission denied
000 /home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/dowalk:508: Could not open SYSTABLES in the function ddopen
000 /home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/dowalk:508: Could not connect to /var/www/vhosts/christianism.com/htdocs/webinator/texis/testdb in the function openntexis
Press ENTER to continue:
chgrp: getting attributes of `/home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/dowalk.vtx': No such file or directory
chown: getting attributes of `/home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/dowalk.vtx': No such file or directory
chmod: getting attributes of `/home/httpd/vhosts/lino.infostats.com/httpdocs/webinator/dowalk.vtx': No such file or directory

----------------------------------------------------------------------------
What password should the default Webinator admin account have? You will
be prompted for this password when accessing the Webinator admin interface
via a web browser. This password is used to control access to your
Webinator walks, so choose one that only authorized administrators will know.

Webinator admin password: webinator

----------------------------------------------------------------------------
The directory /sites/lino.infostats.com/httpdocs/web7/bin is not in your PATH.
After this install you should add it to your PATH environment variable
for convenience in running command line tools. This is generally done
with a statement like this in your shell's init file:

PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin :/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/sites/lino.infostats.com/httpdocs/web7/bin

Press ENTER to continue:

===============================================================================
Installation complete
===============================================================================

The Webinator admin interface to index your web site is at:
http://lino.infostats.com/cgi-bin/texis ... or/dowalk/

Visit the above URL and create a password if needed.

Also see:
http://lino.infostats.com/webinator/index.html


At least we ave a different error now. I hate old stale errors. So, knowing the suexec was one fix, what could be causing the permission errosrs now?

thanks again for all your help.
User avatar
mark
Site Admin
Posts: 5514
Joined: Tue Apr 25, 2000 6:56 pm

RED Hat fetch of texis.cgi murdered

Post by mark »

What are the ownerships and perms?
ls -l /sites/lino.infostats.com/cgi-bin/texis.cgi
ls -Rla /home/httpd/vhosts/lino.infostats.com/httpdocs/webinator

ls -Rla /sites/lino.infostats.com/httpdocs/web7
samoa
Posts: 17
Joined: Thu Mar 28, 2002 5:20 pm

RED Hat fetch of texis.cgi murdered

Post by samoa »

Murder Solved.

sysadmin actually put his fingers on it all. the number of fires on his server was reduced and quality time got spent looking at his nix/apache vhosts configs that had unique security attributes. solving other fires on his server lead to the resolution of this problem.

THANKS FOR ALL YOUR HELP...

I am in the process of changing all the search <forms to include the profile name but I can't remember if "default" is the default without a profile name.
User avatar
mark
Site Admin
Posts: 5514
Joined: Tue Apr 25, 2000 6:56 pm

RED Hat fetch of texis.cgi murdered

Post by mark »

If neither "pr" nor "db" are set pr will be "default".
Post Reply