EditWrx Knowledge Base Home
 Search       Login   Register   Members   Help   Home 
Search by username


Windows Server Install Problems
 Moderated by: Keith  
 New Topic   Reply   Print 
AuthorPost
TheFrameGuy
Member


Joined: Sun Mar 26th, 2006
Location: Seattle, Washington USA
Posts: 16
 Posted: Mon Apr 24th, 2006 09:15 pm
 Quote  Reply 
1) I have installed editwrx manually tons of times on Linux servers, but I am having troubles with installing it on a Windows server.

2) My first attempt was to install editwrx.cgi without any changes. This did not work so I changed the extension to .pl since I had to do that to other scripts installed on the server. Running editwrx.pl produced 'D:\www$post_text39\cgi-bin\editwrx.pl' script produced no output.

3) Running editwrx.pl?environment produced Your server does not have a usable environment variable for determining your site's root path
/www/0039/editwrx/library/routines.txt does not exist
. This would be correct because the path to routines.txt should be D:\www$post_text39\public_html\editwrx\library\routines.txt.

4) Next, I modifed the editwrx.pl file from:

sub get_root{
 $path_to_domain = $ENV{'DOCUMENT_ROOT'} || $ENV{'SCRIPT_FILENAME'} || $ENV{'PATH_TRANSLATED'} ;
 $path_to_domain=~s-\-/-g;
 $script_uri = $ENV{'SCRIPT_NAME'} || $ENV{'PATH_INFO'};
 $path_to_domain =~ s-$script_uri$--;

to:

sub get_root{
 $path_to_domain = $ENV{'DOCUMENT_ROOT'} || $ENV{'SCRIPT_FILENAME'} || $ENV{'PATH_TRANSLATED'} ;
 $path_to_domain=~s-\-/-g;
 $script_uri = $ENV{'SCRIPT_NAME'} || $ENV{'PATH_INFO'};
 $path_to_domain = D:\www$post_text39\public_html;


Running editwrx.pl produced 'D:\www$post_text39\cgi-bin\editwrx.pl' script produced no output.

5) Running editwrx.pl?environment produced Your server does not have a usable environment variable for determining your site's root path
/www/0039/editwrx/library/routines.txt does not exist
. This would be correct because the path to routines.txt should be D:\www$post_text39\public_html\editwrx\library\routines.txt.

6) Next, I started with the original editwrx.pl file and edited:

sub get_root2{
 $path_to_domain = $ENV{'SCRIPT_FILENAME'} || $ENV{'PATH_TRANSLATED'} ;
 $path_to_domain=~s-\-/-g;
 $script_uri = $ENV{'SCRIPT_NAME'} || $ENV{'PATH_INFO'};
 $path_to_domain =~ s-$script_uri$--;

to:

sub get_root2{
 $path_to_domain = $ENV{'SCRIPT_FILENAME'} || $ENV{'PATH_TRANSLATED'} ;
 $path_to_domain=~s-\-/-g;
 $script_uri = $ENV{'SCRIPT_NAME'} || $ENV{'PATH_INFO'};
 $path_to_domain = D:\www$post_text39\public_html;


Running editwrx.pl produced 'D:\www$post_text39\cgi-bin\editwrx.pl' script produced no output.

7) Running editwrx.pl?environment produced Your server does not have a usable environment variable for determining your site's root path
/www/0039/editwrx/library/routines.txt does not exist
. This would be correct because the path to routines.txt should be D:\www$post_text39\public_html\editwrx\library\routines.txt.

8) Other info that shows up when editwrx.pl?environment is run:

ALLUSERSPROFILE=C:\Documents and Settings\All Users
COMMONPROGRAMFILES=C:\Program Files\Common Files
COMPUTERNAME=NS2
COMSPEC=C:\WINNT\system32\cmd.exe
HTTP_HOST=http://www.(domainname).com
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
OS2LIBPATH=C:\WINNT\system32\os2\dll;
PATH=D:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.VBS
PATH_TRANSLATED=D:\www$post_text39\cgi-bin\editwrx.pl
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0204
PROGRAMFILES=C:\Program Files
SCRIPT_NAME=/cgi-bin/editwrx.pl
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINNT
TEMP=C:\WINNT\TEMP
TMP=C:\WINNT\TEMP
USERPROFILE=C:\Documents and Settings\Default User
WINDIR=C:\WINNT

9) If BOTH lines (items 4 and 6) are modified, the same errors show up.

10) Is there another file that can be modified so the path is correct?

Keith
Moderator
 

Joined: Fri Apr 8th, 2005
Location:  
Posts: 603
 Posted: Tue Apr 25th, 2006 06:24 pm
 Quote  Reply 
Your server's path contains an illegal character for a path - the $ sign. A $ sign is a reserved character that turns the characters after it into the name of a variable.

Change your

 $path_to_domain = D:\www$post_text39\public_html;


in the get_root subroutine to

$path_to_domain = '/www$post_text39/public_html';


That is FORWARD slashes inside of SINGLE quotes

TheFrameGuy
Member


Joined: Sun Mar 26th, 2006
Location: Seattle, Washington USA
Posts: 16
 Posted: Tue Apr 25th, 2006 08:53 pm
 Quote  Reply 
THANK YOU!!!!

I just reviewed my original post, and this WYSIWYG editor on this message board actually changed my paths. This D:www$post_text39public_html is NOT what I typed in orginally. I had typed in D: \ www \ 039 \ public_html (no spaces) and the WYSIWYG editor changed it. However, your recommended coding gave me the clue to change the code to '/www/0039/public_html' which worked!!!!!

Last edited on Tue Apr 25th, 2006 09:07 pm by TheFrameGuy


 Current time is 10:37 pm




Powered by WowBB 1.62 - Copyright © 2003-2004 Aycan Gulez