View Full Version : Installing UBB on Linux?
Shooter 10-14-2000, 06:57 PM Here's another example of CGI's not seeming to work... So far I haven't gotten any help from Catalog.com, although they keep telling me they're "working on it." Once I Enter (http://www.SanDiegoForum.com), I get a "Page Not Found" error (CGI script not calling the page). Anyone else work with UBB or CGI???
Wm
jtan15 10-14-2000, 07:21 PM Well, is the cgi-bin/ubb directory actually in existance? Apache is probably rerouting the "cgi-bin" to something like /usr/local/apache/cgi-bin instead of something like /home/username/public_html/cgi-bin. Check your httpd.conf and search for cgi-bin. See if it is aliased.
Racin' Rob 10-15-2000, 12:44 AM Originally posted by Shooter
Here's another example of CGI's not seeming to work... So far I haven't gotten any help from Catalog.com, although they keep telling me they're "working on it." Once I Enter (http://www.SanDiegoForum.com), I get a "Page Not Found" error (CGI script not calling the page). Anyone else work with UBB or CGI???
I have two installations of UBB up and running on my catalog.com server. Just follow the installation instructions for a seperate cgi-bin directory. All cgi and pl files must be in it with proper permissions. There are also a couple of files that must be there as well. All listed in the install instructions.
cgi-bin/board/ <-- all these files
board <-- all other files.
Just a thought. Do you have a directory named cgi-bin inside your htdocs directory, or are you using the cgi-bin in your domain.com directory?
[Edited by Racin' Rob on 10-15-2000 at 12:47 AM]
Shooter 10-16-2000, 07:33 PM I found an /apache/conf/httpsd.conf file, which shows a CGI alias as:
ScriptAlias /cgi-bin/ "/usr/local/plesk/apache/cgi-bin/"
I know that each virtual host has a series of directories, incl /cgi-bin/ and /httpdocs/ . The UBB is installed as /httpdocs/cgi-bin/ and /httpdocs/cgi-bin/ubb/.
The other vhost with the CGI problem has a similar directory structure. The file that ccBill is trying to test is /httpdocs/ccbill/whereami.cgi (*they* placed it there), but the cgi will not execute. They say that they tested it under /cgi-bin/ as well as its current /httpdocs/ location.
Does anything look blatantly wrong with this picture???
Thanx,
Wm
Shooter 10-16-2000, 07:54 PM I DO have a separate cgi-bin directory:
/bin/
/cgi-bin/
/httpdocs/(cgi-bin/ubb/ is in here)
/logs/
/pd/
/webusers/
Wm
Racin' Rob 10-16-2000, 08:11 PM Originally posted by Shooter
I found an /apache/conf/httpsd.conf file, which shows a CGI alias as:
ScriptAlias /cgi-bin/ "/usr/local/plesk/apache/cgi-bin/"
I know that each virtual host has a series of directories, incl /cgi-bin/ and /httpdocs/ . The UBB is installed as /httpdocs/cgi-bin/ and /httpdocs/cgi-bin/ubb/.
all scripts should be within this directory:
/usr/local/plesk/apache/vhosts/domain.com/cgi-bin/ubb/
everything else including all html files, should be here:
/usr/local/plesk/apache/vhosts/domain.com/httpdocs/ubb/
You should NOT have a cgi-bin directory inside your httpdocs directory structure.
The other vhost with the CGI problem has a similar directory structure. The file that ccBill is trying to test is /httpdocs/ccbill/whereami.cgi (*they* placed it there), but the cgi will not execute. They say that they tested it under /cgi-bin/ as well as its current /httpdocs/ location.
Does anything look blatantly wrong with this picture???
It should be in your cgi-bin, and not your httpdocs directory.
Racin' Rob 10-16-2000, 08:19 PM Originally posted by Shooter
I DO have a separate cgi-bin directory:
/bin/
/cgi-bin/
/httpdocs/(cgi-bin/ubb/ is in here)
/logs/
/pd/
/webusers/
This is part of your problem.
/httpdocs/(cgi-bin/ubb/ is in here) <-- get rid of this whole directory. Your cgi-bin is outside your httpdocs directory
diyoha 10-16-2000, 09:27 PM depending on the settings of the apache server you *can* actually run cgi scripts anywhere. Including in the htdocs directory. It might not be the most secure configuration but it is possible ... and done.
later
David
Shooter 10-17-2000, 02:29 PM Originally posted by Racin' Rob
all scripts should be within this directory:
/usr/local/plesk/apache/vhosts/domain.com/cgi-bin/ubb/
everything else including all html files, should be here:
/usr/local/plesk/apache/vhosts/domain.com/httpdocs/ubb/
You should NOT have a cgi-bin directory inside your httpdocs directory structure.
That's how it's now set up - but I now get an "Internal Server Error." :-/
Wm
Racin' Rob 10-17-2000, 02:39 PM It sounds like a permissions error. Did you follow the installtion instructions to a "T"? chmod for the cgi & pl files and the directory etc?
http://www.infopop.com/ubb_support/support_ubb_unixinstall.html
diyoha 10-17-2000, 02:41 PM here are the standard causes for errors I get when I run cgi scripts
1. error in the script.
check: run the script from the command line to make sure there are no errors in it
2. wrong perl path
check: look at the first line in the cgi call and ensure it matches the path of where perl on your system
3. Wrong permissions
check: most cgi scripts need to be world executable
so I usually set my scripts to be: 755 or 555
later
David
MikeA 10-17-2000, 04:10 PM Add to that list:
4) Uploaded script in binary and not ASCII.
Make sure that you upload the script(s) in ASCII. Don't assume that 'auto detect' will do it correctly.
|