Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 Cannot login after successful install

open
nobody
None
5
2001-12-22
2001-12-22
Thomas Straub
No

After running "configure.pl" successfully, I tried logging into
the admin login screen. Apache told me it wasn't there. Looking at
the error log I found that there was a missing '/' between the path,
and the filename. Looking at the code, I found the culprit and fixed
it.

Assuming your current working directory is the OS-
Allcommerce document root, in Perl module "lib/configure.pm" at
around line 787 (your version of the file may vary on the line
number), below the following lines:

print "\n cgi-bin
Directory?\n\n";
$cgibin = <STDIN>;
chomp $cgibin;

add
this new line:

$cgibin .= '/' if $cgibin !~ m'/$';

This will
make sure that the "cgi-bin" directory reference ends with a slash.
This is REQUIRED by the "ScriptAlias" command placed in the
"httpd.conf" file for Apache. This is what it looks
like:

ScriptAlias /cgi-bin/
"/home/httpd/os_allcommerce/cgi-bin/"

This same patch can
also be applied for the SSL "cgi-bin" directory in Perl Module
"configure.pm" near line 901. After the following lines:

print "\n SSL cgi-bin Directory?\n\n";
$sslcgibin = <STDIN>;

chomp $sslcgibin;

add the following line:

$sslcgibin .=
'/' if $sslcgibin !~ m'/$';

It should make your installation
much more successful!

Tom Straub
tjds@pdq.net

Discussion