The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl eAuction 1.6.1.x >> Start Up and more >> error: permission denied https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1083175702 Message started by idontno on 04/28/04 at 20:08:22 |
Title: error: permission denied Post by idontno on 04/28/04 at 20:08:22 I created eAuction161 dir in cgi-bin. uploaded .pl's and chmoded directory and files to 777 just to get it to work. I tried a default unchanged config and I tried changeing config to $config{'get_path'} = 0 $config{'basepath'} = '/var/www/cgi-bin/eAuction161'; Still getting permission denied. What am I missing Dump.pl gives me: DOCUMENT_ROOT => /var/www/html GATEWAY_INTERFACE => CGI/1.1 HTTP_ACCEPT => */* HTTP_ACCEPT_ENCODING => gzip, deflate HTTP_ACCEPT_LANGUAGE => en-us HTTP_CONNECTION => Keep-Alive HTTP_COOKIE => WWHCount=1189; WWhenH=1083174664040; visited=yes; x2user=1.ed8cb97285fd3fedad92e0091d5d0584 HTTP_HOST => www.ymcaofcoastalga.org HTTP_USER_AGENT => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322) PATH => /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin QUERY_STRING => REMOTE_ADDR => 68.208.146.34 REMOTE_HOST => mail.ymcaofcoastalga.org REMOTE_PORT => 43545 REQUEST_METHOD => GET REQUEST_URI => /cgi-bin/eAuction161/dump.pl SCRIPT_FILENAME => /var/www/cgi-bin/eAuction161/dump.pl SCRIPT_NAME => /cgi-bin/eAuction161/dump.pl |
Title: Re: error: permission denied Post by idontno on 04/28/04 at 21:53:24 By The Way, I did read through the forum and try what I read and didn't get anywhere with it. |
Title: Re: error: permission denied Post by Forum Admin on 04/28/04 at 22:47:42 Isn't it enought to have this auction system for free? Am I having the additional due to install the script for everyone on each bad configured server? No - I haven't. But everyone can hire me in order to do the installation too. Sorry - but I am irritated a little at the moment. ??? |
Title: Re: error: permission denied Post by idontno on 04/28/04 at 23:05:32 Thanks so much for offering a free auction. It looks like a nice one from the demo. Just for the record. I am not asking you to install it for me. I am asking the other experienced users that have dug into your coding to give me a hand. If no one does it is no biggie. |
Title: Re: error: permission denied Post by Forum Admin on 04/29/04 at 00:47:31 A well configured server FS looks like this: /root | |--/non-web-area | |--/cgi-bin | |--/htdocs (web-area) You store 'sensitive data' into the 'non-web-area' A bad configured server FS looks like this: /root | |--/htdocs (web-area) | |--/cgi-bin You have to store 'sensitive data' into the cgi-bin folder ------------------------------ eAuction is containing the subroutine 'get_path'. This subroutine is trying to create a folder in the 'secure area' for saving your data. If the script cannot access this 'secure' area of your server (permission denied), you have to type in the basepath manually (see EveryAuction), but the basepath MUST be different to the path to the folder where eAuction.pl is located. That's the way it works ... Edit: Forgot to mention: chmod 777 for eAuction.pl is simply wrong! Read the instructions and set chmod 755. |
Title: Re: error: permission denied Post by idontno on 04/29/04 at 14:48:11 Now I understand why you think my server is configured badly.... my path /var/www/cgi-bin/. Your assumption is that the www is web accessible but it is not. The web accessible folder is /var/www/html/. so I can have /var/www/eAuction161 folder and it is not web accessible so it is fine for storing data. As far as chmod 777 eAuction.pl goes. I know it is wrong to give group and everyone write access but with a permission denied error, chmod -R 777 the entire folder can sometimes lead to fixing the error. I will look through your get_path sub and configure it for my server then try again. By the way. I had also tried changing basepath to /var/www/eAuction161 since /var/www/auction is where I would store data for everyauction but that did not work either. Yes I created the folder and yes I chmod that folder to 777 to make sure there was no ownership problems with writing in to it. Bottom line, don't worry about it, I will play with it a little more, if I can't get it, I won't use it. No biggie. |
Title: Re: error: permission denied Post by Forum Admin on 04/29/04 at 17:37:39 Let me know if you are successfully. |
Title: Re: error: permission denied Post by idontno on 04/29/04 at 19:27:04 Got it working. It was actually quite simple once I dug into your get_path sub. $config{'html_dir'} = 'auction'; changed to $config{'html_dir'} = '../auction'; for my server. This required me changing a few other things but the auction is up enough for me to test. |
Title: Re: error: permission denied Post by idontno on 04/29/04 at 22:21:56 OK, I worked on it a bit more and got it the way it's supposed to be.... 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'} = 'auction'; # 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'} = '/var/www/auction'; The get_path sub in eAuction.pl is ... $config{'html_dir'} = 'auction'; $config{'get_path'} == 1 With the appropriate folders created and such it works just fine. Thanks for the motivation to look for myself. |
Title: Re: error: permission denied Post by akira on 10/26/04 at 03:12:19 idontno wrote:
Hi, same problem here. Almost like there is one setting missing or not apparent. I've got all my paths correct, permissions correct. Error now at least though is "No such file or directory", although html_dir does exist. This is not set as data directory, as I figure it is to look for images in the html_dir? If I run script from command, it works. Not in browser. Tim |
Title: Re: error: permission denied Post by sarak34 on 03/02/05 at 17:57:07 Thank-you,thank-you,thank-you.... *kisses idontno* Guess I'm on the same server type as you. I must have hit how many auction scripts (most of them were horrid looking) I'm very happy, found one that I very much like and I got it to work. All in an hour. Taking me three months trying to figure out the others. I'm new to cgi/perl. I just couldn't figure out why I could get a bulletin board and chat to work and couldn't get an auction to work. (gtchat/vbulletin) This script is fantastic! ...my site is off to the races now!! Sarak L M |
Title: Re: error: permission denied Post by paperlion on 06/03/05 at 19:08:12 This was very helpful. (The piece about money appreciated didn't go unnoticed either - would like to get this running first though.) Is it usual to include a cgi-bin folder in both the private AND public areas of a site FS? How would you get dump.pl to run, for instance, if it's not in the public_html area? [quote author=Forum Admin link=board=general;num=1083175702;start=0#4 date=04/29/04 at 00:47:31]A well configured server FS looks like this: /root | |--/non-web-area | |--/cgi-bin | |--/htdocs (web-area) You store 'sensitive data' into the 'non-web-area' A bad configured server FS looks like this: /root | |--/htdocs (web-area) | |--/cgi-bin |
Title: Re: error: permission denied Post by seraphina on 07/25/06 at 21:47:10 Im having the same problem. Here's my settings: # 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'} = 'auction'; # 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'} = '/srv/www/auctiondata'; From eAuction.pl: $config{'html_dir'} = 'auctiondata'; $config{'get_path'} == 1 Folder setup: srv/www/ /cgi-bin/ /cgi-bin/auction/ /auctiondata/ /htdocs/ Im at my wits end here.....HELP! Ive been using EveryAuction, and just found this and wanted to convert my auction to this! |
Title: Re: error: permission denied Post by Dieter Werner on 07/26/06 at 10:20:04 The html dir can't be a subdir of cgi-bin. The data dir shouldn't be a subdir of cgi-bin. Please, read the forums - you will find a lot of hints. |
Title: Re: error: permission denied Post by seraphina on 07/26/06 at 15:35:01 I have read the forums quite a bit actually. I may have displayed the folder layout in a way that you might have misunderstood... Hopefully this explains it better. srv/www/ srv/www/cgi-bin/ srv/www/cgi-bin/auction/ srv/www/auctiondata/ srv/www/htdocs/ |
Title: Re: error: permission denied Post by Dieter Werner on 07/26/06 at 16:10:39 The following will match the (security) requirements of the script: srv/www/eAuction161/ srv/www/cgi-bin/eAuction161/[TheProgramFiles] srv/www/htdocs/eAuction161/ But in order to give you a real advice, I would have to visit your server. |
Title: Re: error: permission denied Post by sabort on 08/08/06 at 20:52:29 i am getting the following error (the two paths following the 'Error' line i added): Quote:
the first path is what is returned as the basepath; the second, the html_path. the pathing information from my config file is as follows: Quote:
whether i set get_path to 0 or use the custom basepath listed above, i get the same basepath, /var/www/hosts/pdx.memebot.com/eAuction161, without an ending '/'. when i scan the code for basepath, however, i see references expecting an ending '/'. am i missing something? anyhow, my server configuration, with permissions in brackets, is as follows: /root | |--/eAuction161 [777] | |--/cgi-bin/eAuction161 [755] | ../eAuction.pl [755] | ../eConfig161.pl [644] lastly, the output from dump.pl is as follows: Quote:
my site, obviously, is pdx.memebot.com, if anyone interested in assisting would like to access it for themselves. please advise as to what settings may be amiss in my setup, or whether you require more information to make such an assessment. tia, daVe |
Title: Re: error: permission denied Post by Dieter Werner on 08/09/06 at 16:58:52 Sorry, but I can't do anything without having access to your server. Please, drop me an eMail. |
Title: Re: error: permission denied Post by dsims on 10/21/07 at 23:20:54 have you ever thought of incorperating a mysql database |
The eAuction Support Forums » Powered by YaBB 2.2! YaBB © 2000-2007. All Rights Reserved. |