when what it should say is: cgi-bin/script.cgi
This is the config part of the main script
___________________________________________________
local %config;
#-#############################################
# Configuration Section
# Edit these variables!
# The Base Directory. We need an
# absolute path for the base directory.
# Include the trailing slash. THIS SHOULD
# NOT BE WEB-ACCESSIBLE!
#- This is the folder path to your auction folder, NOT A URL
# Place a # at the beginning of the line that you are NOT using
# For UNIX Server
$config{'cgi-path'} = '/home/XXXXXXX/www/cgi-bin/';
# For Win Server
#$config{'cgi-path'} = 'c:/XXXX/wwwroot/cgi-bin/';
$config{'basepatha'} = '/home/XXXXXX/XXXXXX_Data'; # No trailing slash
$config{'basepath'} = '/home/XXXXXXX/XXXXXX_Data/'; # Same as above but with trailing slash
$config{'wwwpath'} = '/home/XXXXXXXX/www/'; # Path to your web folder(where index.html is)
________________________________________________________
Anyone have any ideas as to why this is happening and how I can fix the problem.
It is a UNIX server, all files were loaded in ASCII and chmod to 755 except the data file which was chmod 777
Thanks
Gina
[edited by: Ginaj at 10:52 am (utc) on April 25, 2003]
Please read the welcome post [webmasterworld.com] .
Anyway, to your question...
A bit of a catch 22, as you followed mat's instructions and removed some of the info, which makes it harder to figure out what the problem is. So just guessing here: Is there a $config{'auctionurl'} parameter that you should set? Check that you set it correctly. Make sure it doesn't have the superfluous '/directory' in it. If that doesn't help, post more info, such as:
- Which bit of shareware/opensource software you are using
- What you set the parameters to (all the params, not just the ones you listed in your first post) (just substitute your domain with 'www.mydomain.com').
Shawn
The only parameters I had to change were the ones in my first email and the $config{'auctionurl'}.
The rest of the script sets all needed directories and data.
Sorry it is not much help.
So what you get again is:
[mydomain.com...]
when it should only be:
[mydomain.com...]
[mydomain.com...]
to
[mydomain.com...]
and everything will work? Perhaps you may also need to change $config{'cgi-path'} to include the extra directory.
If that is not it, and you are still having problems, I don't think there is any problem with stating the name of the software, as long as you don't provide a url to it. Others might have had experience setting up the same software.
Shawn
I have just run envhtml.cgi and this is what I got when I ran this script and I think this is also wrong.
[SCRIPT_NAME] /cgi-bin/mydomain/envhtml.cgi
There is no "mydomain" directory in the cgi-bin.
I emailed the author of the script and he said everything looked to be set properly. This is why I am now thinking it is a server problem.
Matt: what is suexec? Is there someway I can check this out?
$ENV{'SCRIPT_NAME'}
in your cgi perl scripts to 'cgi-bin/<filename.cgi>'. A combination of other entries in the %ENV hash, or some of your script's configuration variables, might be used to do this.
On the one hand this might sound like a brute-force hack, and I am sure that if you reported the problem as a bug to your script's developer he would say "the script is fine, the ISP haven't configured the server properly". On the other hand, this might be a reasonable configuration, and the script might not be tolerant enough to cater for different server configurations.
Shawn
Does your webhost not have any instructions on running perl/cgi scripts on their servers? I really think you're coming at this the wrong way trying to bend the script to work - it will turn out to be a path/calling issue.
Just do a Google search on 'suexec and cgiwrap' and you'll learn all about the various ways of calling scripts on Apache. Again, I'd be very surprised if their isn't something on your host's help or FAQ pages. Again, this is a server, not a script issue. Talk to your hosts.