The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> Bad file despcriptor and permission denied
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1077907841

Message started by bookswap on 02/27/04 at 19:50:41

Title: Bad file despcriptor and permission denied
Post by bookswap on 02/27/04 at 19:50:41

Can't seem to get this script running.  Could you please help me out?  I'm using Netfirms free webhosting.

Here is what I have in econfig161.pl

# The name of your servers cgi-bin directory
   $config{'cgi_dir'}            = 'cgi-bin'; # Default for most servers
   
# The cgi-bin subdirectory where your eAuction.pl will be stored
   $config{'auction_dir'}      = 'eauction161';
   
# The Path to a 'NON-WEBACCESSABLE' directory of your system
# Maybe you have to chmode it if you use your own setting

  $config{'get_path'}              = 0; # Set this from 1 to 0 if you want to use your own setting  
  $config{'basepath'}              = '/mnt/web_g/d31/s34/b01e1125/www/edata';

# You need to assign either a mail program or
# a mail host so e-mails can be sent out.
# Configure your MAIL PROGRAM

  $config{'get_mail'}            = 0; # Set this from 1 to 0 if you want to use your own setting  
  $config{'mailprog'}            = '/user/lib/sendmail'; # no additional options please
 
# or Configure your MAIL HOST (SMTP)
   #$config{'mailhost'}      = 'http://YourSMTP-Host';    
   
# Set this from 0 to 1 if the script is running with a real Web-Server
   $config{'web_server'}      = 1;


Any ideas?

url is http://bookswap.netfirms.com/cgi-bin/eauction161/eauction.pl

Title: Re: Bad file despcriptor and permission denied
Post by bookswap on 02/28/04 at 00:18:26

Any Netfirm users out there that have installed this script successfully on the servers?  ???

Title: Re: Bad file despcriptor and permission denied
Post by Forum Admin on 02/28/04 at 16:16:24

Netfirms is having a a very unusual file-system; therefore it isn't as much easy to install the script there.
You have to set some config-variables by hand.

See:
http://www.everyscript.de/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1071016481
for further informations.

Title: Re: Bad file despcriptor and permission denied
Post by confused on 02/28/04 at 16:38:50

I agree width "D"  - But even if you can change the paths by hand, with FREE  Web accounts, there is no guarantee that you will be able to access the  directory needed to place eAuction "userreg" and "rating" files in the proper directory. This is also where your categories are stored so I wouldn't put them anywhere else if I could help it.

Most free accounts don't allow access to any directory except "public" (i.e.We accessable") directories.

Why not just get a paid account?

You can host your auction for less than $6 a month with 100mb - That's what I'm doing. You'll save yourself a lot of frustration because most "paid" accounts give you full access to any directories you need, so you won't have to worry about "NON ACCESSABLE" errors which seems to be the trouble you are having.

Just for the record  - I have never been able to get much of any perl or cgi scripts to work on a "free" accounts, especially "Netfirms" , unless you get a paid account from them which is expensive for what you get (or don't)

I won't promote on this forum, but if you e-mail me, I'll give you the name of the hosting company I use. They are very reliable and have an excellent array of admin tools etc. etc. for dirt cheap.

Title: Re: Bad file despcriptor and permission denied
Post by froob on 03/31/04 at 22:28:01

I did this:

# The name of your servers cgi-bin directory
   $config{'cgi_dir'}            = 'cgi-bin'; # Default for most servers
   
# The cgi-bin subdirectory where your eAuction.pl will be stored
   $config{'auction_dir'}      = 'eauction161';
   
# The Path to a 'NON-WEBACCESSABLE' directory of your system
# Maybe you have to chmode it if you use your own setting

  $config{'get_path'}              = 0; # Set this from 1 to 0 if you want to use your own setting  
  $config{'basepath'}              = '/mnt/web_h/d12/s07/b01ea042/cgi-bin/eauction_161/eauction161';

# You need to assign either a mail program or
# a mail host so e-mails can be sent out.
# Configure your MAIL PROGRAM

  $config{'get_mail'}            = 0; # Set this from 1 to 0 if you want to use your own setting  
  $config{'mailprog'}            = '/usr/lib/sendmail'; # no additional options please
 
# or Configure your MAIL HOST (SMTP)
   #$config{'mailhost'}      = 'http://YourSMTP-Host';    
   
# Set this from 0 to 1 if the script is running with a real Web-Server
   $config{'web_server'}      = 1;
   
Plus: in the auction.pl i changed this:
$config{'html_path'} = "$ENV{'DOCUMENT_ROOT'}/www/$config{'html_dir'}";  

This is the address
    http://jmh.netfirms.com/cgi-bin/eauction_161/eauction161/eauction.pl

I know I must be doing something wrong because it works for florinfo on this server... but I don'y know what the problem is :(    
This is my problem
Bad file despcriptor
YOUR SET UP IS NOT CORRECT

Thanks

Title: Re: Bad file despcriptor and permission denied
Post by Forum Admin on 04/01/04 at 10:59:21

Your basepath is:
'/mnt/web_g/d31/s34/b01e1125/www/eAuction_161/eAuction161'

Search the script eAuction.pl for
sub get_path

Search this sub for the line
$config{'html_path'} = "$ENV{'DOCUMENT_ROOT'}/$config{'html_dir'}";

Replace this line with:
$config{'html_path'} = "$ENV{'DOCUMENT_ROOT'}/www/$config{'html_dir'}";

Upload the scripts to the directory
/cgi-bin/eAuction161

Create a directory
/cgi-bin/eAuction_161

Create a directory
/cgi-bin/eAuction_161/eAuction161

chmod = 777 (both directories)


Run your Auction via browser.

Title: Re: Bad file despcriptor and permission denied
Post by froob on 04/04/04 at 16:41:29

I did this but it didn't fix it.

Title: Re: Bad file despcriptor and permission denied
Post by Forum Admin on 04/05/04 at 15:59:40

Maybe you should hire me for installing it ...  ;)
But I would recommend you to rent an 'real' server.

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.