The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl eAuction 1.6.1.x >> Start Up and more >> basepath setup https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1071016481 Message started by floinfo on 12/10/03 at 01:34:41 |
Title: basepath setup Post by floinfo on 12/10/03 at 01:34:41 Hello, Before I choose a permanent web host for my website, I test every cgi script on Netfirms.com (it is a free webhost with cgi-bin access) In the eConfig161.pl file I have to type the "basepath" , right? $config{'get_path'} 0; # Set this from 1 to 0 if you want to use your own setting $config{'basepath'} '/???????/'; But this Netfirms wrote me that about the "basepath": Your full or absolute root path is: $ENV{'DOCUMENT_ROOT'} The full path to your www directory would be: $ENV{'DOCUMENT_ROOT'}/www The full path to your cgi-bin directory would be: $ENV{'DOCUMENT_ROOT'}/cgi-bin Please help me, what shoud I use, for basepath??? ::) Thanks, |
Title: Re: basepath setup Post by Forum Admin on 12/10/03 at 09:59:39 I don't know the directory structure of the Netfirms server. Why do you want to use your own path settings? The script determines the paths automatically. |
Title: Re: basepath setup Post by jungle on 12/11/03 at 03:29:02 Hello Although the self install on Dieter’s version of eAuction is very good it does not always work. Sometime you can see the root directory but can not write to it. If you need to find your base path I would suggest you download ServerCheck from http://www.monster-submit.com/servercheck/ upload this file to you main directory and run the program from your browser. Your Current Working Directory Path is the directory that you placed the server.cgi file. It may look something like this. /home/sites/site51/web In this case /home/sites/site51/ would be the base path. Hope this helps. |
Title: Re: basepath setup Post by Forum Admin on 12/11/03 at 15:55:05 If the cgi-bin directory is a subdirectory of the web directory ... $config{'cgi_dir'} = 'web/cgi-bin'; $config{'get_path'} = 1; or: $config{'cgi_dir'} = 'htdocs/cgi-bin'; $config{'get_path'} = 1; more general: $config{'cgi_dir'} = 'TheNameOfTheWebDirectory/cgi-bin'; $config{'get_path'} = 1; |
Title: Re: basepath setup Post by Forum Admin on 12/11/03 at 16:15:50 - Copy the following code and save it as dump.pl - Upload it to the cgi-bin directory of your server - chmod it 755 - run it via browser by typing: http://www.YourDomain/cgi-bin/dump.pl Code:
It will display all information you need. |
Title: Re: basepath setup Post by floinfo on 12/12/03 at 04:52:52 Thank guys for your help!! I upload both scripts (dump.pl and servercheck.pl) and both show me a bunch of data, and I pick the: DOCUMENT_ROOT => /mnt/web_h/d01/s35/b01d0079 I inserted in the eConfig161.pl $config{'cgi_dir'} = 'cgi-bin'; $config{'auction_dir'} = 'eAuction161'; $config{'get_path'} = 0; $config{'basepath'} = '/mnt/web_h/d01/s35/b01d0079/'; All of the files located in the cgi-bin/eAuction161 directory... When I hit the site in the browser: http://balintfranko.netfirms.com/cgi-bin/eAuction161/eAuction.pl I get a bunch of ERROR.... like "Permission Denied" (take a look) What is the problem??? Please help! |
Title: Re: basepath setup Post by Forum Admin on 12/12/03 at 13:36:55 The problem is ... - Netfirms don't allow to create a directory above 'www' - $ENV{'DOCUMENT_ROOT'} should contain the path to the html-documents; but Netfirms $ENV{'DOCUMENT_ROOT'} is containing the path to the home-directory (and that has nothing to do with 'documents'. |
Title: Re: basepath setup Post by floinfo on 12/13/03 at 03:08:11 [glb]THANKS Dieter![/glb] You are the best! 1000s Thanks for fixing my site! Balint, |
Title: Re: basepath setup Post by vashant26 on 12/22/03 at 00:07:53 Hi, Just came across this auction script and from what I've seen in different demos I love it! ;D Definate two thumbs up. So you will be getting alot of questions and feedback from me in the future (hope ya don't mind). Although at this point I am having trouble installing it. I am using netfirms and am in the same boat that Floinfo was in. I did the processes with the dump.pl and what was listed above and am still getting a "500 Internal Server Error". I am completely lost when it comes to this kind of stuff so when you answer, please do your best to keep it in lamens terms. Thanks in advance, Vashant |
Title: Re: basepath setup Post by Forum Admin on 12/22/03 at 09:56:07 What's your URL? |
Title: Re: basepath setup Post by vashant26 on 12/22/03 at 15:24:07 My url that I am using is: cashrightnowffa.netfirms.com This was an old site I used to have so pardon the name. I am just using this for complete setup and testing purposes, later in the future when complete I will get a real host for it. Vashant |
Title: Re: basepath setup Post by floinfo on 12/23/03 at 02:43:32 Hi, Maybe it helps... Dieter fix me up with mine... In the eConfig161.pl file change these: $config{'cgi_dir'} = 'cgi-bin'; $config{'auction_dir'} = 'eAuction161'; $config{'get_path'} = 0; $config{'basepath'}= '/mnt/web_h/d01/s35/b01d0079/cgi-bin/eAuction_161/eAuction161'; $config{'get_mail'} = 0; $config{'mailprog'} = '/usr/lib/sendmail'; $config{'web_server'} = 1; -------------------------------- Your Netfirms basepath something similar than mine, not exactly same! And all auction files go in the cgi-bin/eAuction161 directory. Good luck, Balint |
Title: Re: basepath setup Post by Forum Admin on 12/23/03 at 10:24:17 @ Vashant Your basepath is: '/mnt/web_k/d22/s48/a000i50n/cgi-bin/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 direktory /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: basepath setup Post by vashant26 on 12/23/03 at 13:38:31 I thank both of you for your help. For some reason I am getting a "Internal Server Error". I followed everything exact. I'm not sure what else I can do. Any ideas? Vashant |
Title: Re: basepath setup Post by vashant26 on 12/23/03 at 13:43:03 Just thought of something, is there any way that the auction script can be set up so that the auction is not your index page? The only reason I ask is because I could test and set it up on my other website which is up and running and not a free site. I just want to make sure that at this point nobody will come across it and it will not affect my home page. Is that possible? Vashant |
Title: Re: basepath setup Post by Forum Admin on 12/23/03 at 18:47:57 The auction is 'never' your index page!! The only way to start it is by calling the script-url via browser. |
Title: Re: basepath setup Post by vashant26 on 12/23/03 at 22:38:42 Thank you I didn't know that. I just thought that it would automatically create a index page when it ran the first time. Now that I know that I am going to try it on my paid website. I'll let you know how it goes. :)Thanks again to both of you, Vashant |
Title: Re: basepath setup Post by vashant26 on 12/23/03 at 23:07:50 Me again. I just tried it on my site and had no luck. I ran the dump.pl and this is what it gave me: --------------------------------------- Parameter: Environment: DOCUMENT_ROOT => /home/arnold/public_html GATEWAY_INTERFACE => CGI/1.1 HTTP_ACCEPT => */* HTTP_ACCEPT_LANGUAGE => en-us,x-ns1L2kEdwrANh8,x-ns2U340MADfs3a HTTP_CACHE_CONTROL => no-cache HTTP_CLIENT_IP => 24.58.113.154 HTTP_CONNECTION => keep-alive HTTP_HOST => arnoldsconcepts.com HTTP_USER_AGENT => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 5.0.0.0; .NET CLR 1.0.3705) HTTP_VIA => 1.1 csia2prx04.marketscore.com (NGP Diatom vfc3), 1.1 csia2che03 (NetCache NetApp/5.2.1R1) HTTP_X_FORWARDED_FOR => 24.58.113.154, 10.100.2.113 PATH => /usr/local/bin:/usr/bin:/bin QUERY_STRING => REMOTE_ADDR => 66.119.34.39 REMOTE_PORT => 3352 REQUEST_METHOD => GET REQUEST_URI => /cgi-bin/dump.pl SCRIPT_FILENAME => /home/arnold/public_html/cgi-bin/dump.pl SCRIPT_NAME => /cgi-bin/dump.pl SERVER_ADDR => 207.218.250.60 SERVER_ADMIN => webmaster@arnoldsconcepts.com SERVER_NAME => www.arnoldsconcepts.com SERVER_PORT => 80 SERVER_PROTOCOL => HTTP/1.1 SERVER_SOFTWARE => Apache/1.3.29 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.2 PHP/4.3.3 FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.6b -------------------------------------------------------- How should I proceed and what do I need to change? Vashant ps. checked my error logs and I keep getting the error: Premature end of script headers: /home/arnold/public_html/cgi-bin/eAuction161/eAuction.pl |
Title: Re: basepath setup Post by Forum Admin on 12/26/03 at 17:58:35 Install a fresh copy, don't touch the basepath settings and the system will work. |
Title: Re: basepath setup Post by vashant26 on 12/28/03 at 20:43:36 Hi, I had no luck on my main website even with a fresh copy. I kept getting the "Premature end of script headers" error so I went back to my netfirms site and started with a fresh copy and modified it as you stated and i'm still getting the 500 internal server error. I can't check the error logs on the netfirms site, I don't have that option bercause it's a free account. I'm sure it's something that will be easy to correct, but i just don't know what it is. Any other ideas? Vashant ps. Using the netfirm site. |
Title: Re: basepath setup Post by cowboy_nz on 01/24/05 at 07:28:30 Hi ALL i am having the same trouble as Vashant, i ahve made all the changes suggested about but i still get this message Error Bad file descriptor YOUR SET UP IS NOT CORRECT Click InterWer Script-Forums if you need support my url address is www.ezyone.netfirms.com pasted from the econfig #-############################################# # Config-Section-01 #-############################################# # 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_b/d12/s48/b0216fe3/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'} = 0; #-############################################# this line i change in the eAuction.pl $config{'html_path'} = "$ENV{'DOCUMENT_ROOT'}/www/$config{'html_dir'}"; Any help greatly appreciated Rob |
Title: Re: basepath setup Post by cannonballdex on 05/18/05 at 20:58:41 I did exactly what cowboy did, using my own base address. I have the same problem. # 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/d26/s08/b023eed9/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 and added the www part to the auction.pl |
Title: Re: basepath setup Post by Dieter Werner on 05/19/05 at 15:09:54 As far as I know, Netfirms changed the file system. |
Title: Re: basepath setup Post by paperlion on 06/03/05 at 15:37:49 on a hunt for leads to solve a similar problem, and noticed this near the bottom of your last post, cannonballdex... $config{'basepath'} = '/mnt/web_g/d26/s08/b023eed9/cgi-bin/eAuction_161/eAuction161'; The file asks for the cgi-bin folder to be eAuction161 without the underscore - there may be some hardcoded references to it that way in the .pl files. Maybe this will be helpful. |
Title: Re: basepath setup Post by yurri on 12/20/05 at 23:29:38 I'm trying to use eAuction (Date: 08/03/2002, Version: eA-1.6.1.60, Last update: 04/17/2005) and i need your help. On my home computer (Windows, Apache, ActivePerl) eAuction runs successfully with following main parameters: Quote:
Scripts are placed into 'cgi-bin/eAuction' folder, after the first run subfolder 'ceAuction' appears under 'eAuction' with data in it. It seems strange to me that when i specify $config{cgi_bin} as 'cgi-bin' instead of empty '', eAuction fails with 'Bad file descriptor' message. But well, at least it works with this parameter empty. But on my hosting system (Unix, Apache) i have just NO IDEA how to make it work. I tried all of your answers that i found through search on this forum (creating data (777) and script (755) folders at one level, creating 'eAuction_161' with 'eAuction161' subfolder and so on) - there is ALWAYS 'Bad file descriptor' error message. I tried to specify full path in $config{basepath}, tried to replace it's part with $ENV entry, tryed to let the script detect basepath automatically like on my home machine - NOTHING helped. Please, guys, show me my fault or i will just go mad. |
Title: Re: basepath setup Post by Dieter Werner on 12/21/05 at 14:46:04 Use the unchanged (downloaded) file: eConfig161.pl and let me know what happens. |
Title: Re: basepath setup Post by yurri on 12/21/05 at 20:48:22 I've just done following: 1) Created 'eAuction161' subfolder in 'cgi-bin' folder. 2) Placed unchanged (downloaded) files in it. 3) Set 755 to *.pl and 777 to 'eAuction161' folder if script tries to create data folder in it. 4) Ran eAuction from browser. And again received: Quote:
I'm using NetFirms hosting. I noticed this hosting in discussions, maybe the problem is in it? |
Title: Re: basepath setup Post by Dieter Werner on 12/22/05 at 15:20:12 It's possible to use 'Netfirms' and to have a secure installation of cgi scripts too ... but it's a bit complicated and you have to have a very good knowledge of the 'Netfirms' directory/file system. |
Title: Re: basepath setup Post by yurri on 12/22/05 at 21:51:30 So it's better to search for another auction engine to use with Netfirms? And what's wrong with this provider? It's just interesting to me. Thank you for your advices. |
Title: Re: basepath setup Post by Dieter Werner on 12/22/05 at 22:27:57 There is more than one side of a coin. ;) - you can try to understand the file system of your server - you can try to install another script - you can move to another server If I would be you ... I would try to understand the file system of my server and I would use my server in the right way. :) |
Title: Re: basepath setup Post by yurri on 12/22/05 at 22:34:28 Okay. I'm tied to this hosting so i'll have to use another script. Thank you again. |
Title: Re: basepath setup Post by Dieter Werner on 01/07/06 at 18:51:42 No Problem ... You are welcome :) |
Title: Re: basepath setup Post by DonegalPaul on 02/06/06 at 23:10:33 Hi all, new user here. Downloaded the file and just cant get it to work on my site at all :-( the dump.pl trick returns the following. Environment: DOCUMENT_ROOT => /home/.sites/104/site97/web GATEWAY_INTERFACE => CGI/1.1 HTTP_ACCEPT => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_CHARSET => ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING => gzip,deflate HTTP_ACCEPT_LANGUAGE => en-us,en;q=0.5 HTTP_CONNECTION => keep-alive HTTP_COOKIE => YaBBpassword=yyfFp./VMylto; YaBBusername=admin HTTP_HOST => www.thepilgrimssc.co.uk HTTP_KEEP_ALIVE => 300 HTTP_USER_AGENT => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 PATH => /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin PATH_INFO => /cgi-bin/dump.pl PATH_TRANSLATED => /home/.sites/104/site97/web/cgi-bin/dump.pl QUERY_STRING => REDIRECT_SCRIPT_URI => http://www.thepilgrimssc.co.uk/cgi-bin/dump.pl REDIRECT_SCRIPT_URL => /cgi-bin/dump.pl REDIRECT_STATUS => 200 REDIRECT_UNIQUE_ID => Q@fIOdnO3LgAACwU6pw REDIRECT_URL => /cgi-bin/dump.pl REMOTE_ADDR => 86.129.245.172 REMOTE_PORT => 2150 REQUEST_METHOD => GET REQUEST_URI => /cgi-bin/dump.pl SCRIPT_FILENAME => /home/.sites/104/site97/web/cgi-bin/dump.pl SCRIPT_NAME => /cgi-bin/dump.pl SCRIPT_URI => http://www.thepilgrimssc.co.uk/cgi-bin/dump.pl SCRIPT_URL => /cgi-bin/dump.pl SERVER_ADDR => 217.206.220.184 SERVER_ADMIN => admin SERVER_NAME => www.thepilgrimssc.co.uk SERVER_PORT => 80 SERVER_PROTOCOL => HTTP/1.1 SERVER_SIGNATURE => SERVER_SOFTWARE => Apache/1.3.29 Sun Cobalt (Unix) mod_ssl/2.8.16 OpenSSL/0.9.6m PHP/4.2.3 FrontPage/5.0.2.2510 mod_perl/1.26 UNIQUE_ID => Q@fIOdnO3LgAACwU6pw However when trying to run the script im getting an error saying CGIWrap Error: Script Execution Failed CGIWrap encountered an error while attempting to execute this script: Error Message: Exec format error Error Number: 8 any thoughts anyone :-( |
Title: Re: basepath setup Post by Dieter Werner on 02/07/06 at 15:00:49 CGIWrap encountered an error while attempting to execute this script: Error Message: Exec format error Error Number: 8 This message usually indicates there is a problem with the script itself. Often this indicates either that the #! line of the script is incorrect, or the script was uploaded in binary mode instead of ascii mode. Check to make sure that the script does not have control-M's at the end of every line. That will prevent it from executing. An easy fix that takes care of this most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on the first line of the script. This is typically a problem if the script was edited or uploaded from a DOS/Windows/Macintosh station to a unix based server. |
Title: Re: basepath setup Post by DonegalPaul on 02/07/06 at 18:20:49 Dieter Werner wrote:
yep dieter, thats what i get, and ive made the change to the first line of the script and get the exact same problem |
Title: Re: basepath setup Post by Dieter Werner on 02/08/06 at 17:02:52 Did you upload the scripts by using the ASCII mode? |
Title: Re: basepath setup Post by DonegalPaul on 02/08/06 at 18:47:07 Yes as in the instructions, even deleted everything and started again, same result :-( |
Title: Re: basepath setup Post by DonegalPaul on 02/15/06 at 14:52:42 Dear all, sorted. Dieter you were right (as usual :) ) Despite the fact that i had set my ftp program on ascii mode, when i checked deeper in the information pane it was still uploading in binary!! I changed to an older version of the same program and it uploaded it all correctly. So everyone, double check youre using the right mode, even if your programme is set correctly >:( >:( >:( |
Title: helppp Post by kels764 on 06/13/06 at 01:16:09 I am so very confused right now...I feel like an idiot for asking this but how do I use ASCII mode? Im using notepad to edit my script and I use netfirms...what does it mean when it says to use ASCII mode? and how do I do that? thanks! :( |
Title: Re: helppp Post by Dieter Werner on 06/13/06 at 15:30:52 kels764 wrote:
Please, read the dokumentation of your FTP-Client software. Your FTP-Programm allows you to upload files in Binary and in ASCII mode. |
The eAuction Support Forums » Powered by YaBB 2.2! YaBB © 2000-2007. All Rights Reserved. |