eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1
eAuction wont run (Read 243 times)
anmb
eAuction Novice
*
Offline

I Love Perl

Posts: 1

eAuction wont run
01/16/06 at 23:42:34
 
Hi just spent ages trying to get eAuction to run.
Tried all the numerous previous suggestions about paths etc, server settings etc. NOTHING worked Sad

This was the error I got:
Error
No such file or directory
YOUR SET UP IS NOT CORRECT
Click
auction Script-Forums
if you need support

I also got permission denied errors.

This post is to inform others of my solution to the problem in the hope that it helps.
in eAuction.pl the $ENV{'DOCUMENT_ROOT'} was being incorrectly set so I did the following:
1. made $config{'itdontwork'}  and made it equal to the same path as $config{'basepath'} in eConfig161.pl
2. changed the variable name  $ENV{'DOCUMENT_ROOT'} to $config{'itdontwork'} in eAuction.pl

and guess what it works fine now.  Cheesy
As to why it picked up the wrong  $ENV{'DOCUMENT_ROOT'} I do not know as my perl knowledge is limited but the problem I had lay in the sub get_path part of the script.
I hope this helps and someone explains more about how $ENV{'DOCUMENT_ROOT'} was a problem and what exactly get_path is doing. I tried reading the code but got lost at ? do {, : do { and what $config{'op_system'} was for.
thanks Roy
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: eAuction wont run
Reply #1 - 01/17/06 at 14:21:57
 
The content of $ENV{'DOCUMENT_ROOT'} is delivered by your server.
If you want to know the whole environment of your server, save the following script as
dump.pl
upload it to your cgi-bin directory (chmod 755) and start it by typing
Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Code:
#!/usr/bin/perl
use CGI qw/:standard/;
       
print header,
 start_html,
 h2("Parameter:"), CGI::as_string(),
 h2("Environment:"),
 (map { p("$_ => $ENV{$_}") } sort keys %ENV),
 end_html; 

Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
Pages: 1


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only