I've checked with my web host (using a Windows server) on what the $serverRoot should be, and they tell me it is C:\Inetpub\vhosts\orangetext.com\httpdocs. So I switched the backslashes to forward slashes and I've tried this without the c:, without the \httpdocs, and without the \orangetext.com to go up the path to find where the .exe file is. But whenever I run souperfinder.html, it always tells me "You need to find out what $serverRoot is." I don't know what else to try.
The site is www.orangetext.com, I have the script files in a \cgi-bin folder there, and the site pages are in a \httpdocs folder (the \cgi-bin is not a subfolder of \httpdocs, but they are at the same level).
Ideas?
thanks,
Luann
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Luann,
I ran souperinstall on your server and in it it translates the path:
Path Translated C:\Inetpub\vhosts\orangetext.com\cgi-bin\souperinstall.pl
Install Script C:\Inetpub\vhosts\orangetext.com\cgi-bin\souperinstall.pl
so the path you have been given by your host should be correct, when you ftp into your web dir where are you? By rights if you are in httpdocs the full path you need should be C:\Inetpub\vhosts\orangetext.com\httpdocs. Check that you don't have any typos and once you have it running make sure you delete souperinstall.
Bob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. When I ftp in, I'm just above \httpdocs. I just tried this script again with C:\Inetpub\vhosts\orangetext.com\httpdocs and I still get "You need to find out what $ServerRoot is."
I've been playing with a different test script and discovered that event attempting to retrieve $ENV{'SCRIPT_FILENAME'} returns an empty string. It's very odd...and frustrating!
Luann
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have you tried just editing soupermail.pl and adding the path? You don't have to use souperinstall, you can edit the script itself to put in the path and other things such as mailserver and temp dir.
The install script is giving you everything but the root by the looks of it so try just adding what it gives you and the path manually, then FTP it in ascii mode into the cgi-bin.
Don't edit it in wordpad, notepad is OK but editpad lite is even better. http://editpadlite.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. Yes, that is *exactly* what I'm doing. I put in all the things that needed to be in soupermail.pl, editing with Notepad and uploading via FTP to the cgi-bin folder. I previously resolved other issues it was having with MIME and Net::SMTP, so I know I'm making progress. I just don't know why it keeps giving me the $serverRoot error when I've put it directly into the script file.
Luann
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just the serverroot part? Here it is (I've tried forward slashes and backslashes, and also tried just leaving it set to the $ENV variable, to no avail):
############################################################################
# ---CHANGE ME FOR YOUR SITE---
# This is where the webserver's document tree starts
# Do NOT include a trailing '/' character
#
# Some examples:
# $serverRoot = 'c:/inetpub/wwwroot'; # Default NT/IIS setup
# $serverRoot = $ENV{'DOCUMENT_ROOT'}; # May work on some webservers
# $serverRoot = '/home/www/html'; # A typical UNIX setting
############################################################################
$serverRoot = "C:\Inetpub\vhosts\orangetext.com\httpdocs";
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This looks like a cool tool. I did this, but it gives lots of errors. Is this intended to work on a Windows server? If you want to, you can see it at www.orangetext.com/cgi-bin/perldigger.cgi.
thanks,
Luann
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you change the path to perl at the first line of the script? I'm not sure if it is designed for Windows or not, I just assumed it would work as it is running via perl.
It doesn't give a serverroot either :( which is what I was hoping it might do.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks so much for your help. I think at this point, after wasting two days on three different "free" scripts that I'm just going to buy one specifically for Windows that comes with an installation service!
Thanks again :)
Luann
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've checked with my web host (using a Windows server) on what the $serverRoot should be, and they tell me it is C:\Inetpub\vhosts\orangetext.com\httpdocs. So I switched the backslashes to forward slashes and I've tried this without the c:, without the \httpdocs, and without the \orangetext.com to go up the path to find where the .exe file is. But whenever I run souperfinder.html, it always tells me "You need to find out what $serverRoot is." I don't know what else to try.
The site is www.orangetext.com, I have the script files in a \cgi-bin folder there, and the site pages are in a \httpdocs folder (the \cgi-bin is not a subfolder of \httpdocs, but they are at the same level).
Ideas?
thanks,
Luann
Hi Luann,
I ran souperinstall on your server and in it it translates the path:
Path Translated C:\Inetpub\vhosts\orangetext.com\cgi-bin\souperinstall.pl
Install Script C:\Inetpub\vhosts\orangetext.com\cgi-bin\souperinstall.pl
so the path you have been given by your host should be correct, when you ftp into your web dir where are you? By rights if you are in httpdocs the full path you need should be C:\Inetpub\vhosts\orangetext.com\httpdocs. Check that you don't have any typos and once you have it running make sure you delete souperinstall.
Bob
Thanks. When I ftp in, I'm just above \httpdocs. I just tried this script again with C:\Inetpub\vhosts\orangetext.com\httpdocs and I still get "You need to find out what $ServerRoot is."
I've been playing with a different test script and discovered that event attempting to retrieve $ENV{'SCRIPT_FILENAME'} returns an empty string. It's very odd...and frustrating!
Luann
Have you tried just editing soupermail.pl and adding the path? You don't have to use souperinstall, you can edit the script itself to put in the path and other things such as mailserver and temp dir.
The install script is giving you everything but the root by the looks of it so try just adding what it gives you and the path manually, then FTP it in ascii mode into the cgi-bin.
Don't edit it in wordpad, notepad is OK but editpad lite is even better. http://editpadlite.com
Thanks. Yes, that is *exactly* what I'm doing. I put in all the things that needed to be in soupermail.pl, editing with Notepad and uploading via FTP to the cgi-bin folder. I previously resolved other issues it was having with MIME and Net::SMTP, so I know I'm making progress. I just don't know why it keeps giving me the $serverRoot error when I've put it directly into the script file.
Luann
Can you paste the configuration part of soupermail here? It's been a long time since I worked on a Windows box and seeing it might help.
Just the serverroot part? Here it is (I've tried forward slashes and backslashes, and also tried just leaving it set to the $ENV variable, to no avail):
############################################################################
# ---CHANGE ME FOR YOUR SITE---
# This is where the webserver's document tree starts
# Do NOT include a trailing '/' character
#
# Some examples:
# $serverRoot = 'c:/inetpub/wwwroot'; # Default NT/IIS setup
# $serverRoot = $ENV{'DOCUMENT_ROOT'}; # May work on some webservers
# $serverRoot = '/home/www/html'; # A typical UNIX setting
############################################################################
$serverRoot = "C:\Inetpub\vhosts\orangetext.com\httpdocs";
Try running the script here: http://sniptools.com/perldigger just click the " Get Perl Code" link, maybe it will give some clues.
This looks like a cool tool. I did this, but it gives lots of errors. Is this intended to work on a Windows server? If you want to, you can see it at www.orangetext.com/cgi-bin/perldigger.cgi.
thanks,
Luann
Did you change the path to perl at the first line of the script? I'm not sure if it is designed for Windows or not, I just assumed it would work as it is running via perl.
It doesn't give a serverroot either :( which is what I was hoping it might do.
Thanks so much for your help. I think at this point, after wasting two days on three different "free" scripts that I'm just going to buy one specifically for Windows that comes with an installation service!
Thanks again :)
Luann
No problems, this is why I moved off Windows servers in the first place, give me a simple Linux environment any day!