Tags:
create new tag
view all tags

Question

Followed WindowsInstallCookbook, testenv script runs as shown. However, testenv is the ONLY script that works.

Test the environment for TWiki
Please read the TWikiInstallationNotes for more information on TWiki installation. 
Environment variables:
COMSPEC C:\WINDOWS\system32\cmd.exe 
DOCUMENT_ROOT c:/twiki 
GATEWAY_INTERFACE CGI/1.1 
HOME /twiki 
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* 
HTTP_ACCEPT_ENCODING gzip, deflate 
HTTP_ACCEPT_LANGUAGE en-us 
HTTP_CONNECTION Keep-Alive 
HTTP_HOST twiki 
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) 
LOGNAME system 
PATH /c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program Files/ATI Technologies/ATI Control Panel:/c/Documents and Settings/richarc/My Documents/Stuff/Putty:/c/MSSQL7/BINN:/c/Program Files/Common Files/Adaptec Shared/System:/twiki/bin 
QUERY_STRING  
RCSINIT -x,v/ 
REMOTE_ADDR 127.0.0.1 
REMOTE_PORT 4450 
REQUEST_METHOD GET 
REQUEST_URI /bin/testenv 
SCRIPT_FILENAME c:/twiki/bin/testenv 
SCRIPT_NAME /bin/testenv 
SERVER_ADDR 127.0.0.1 
SERVER_ADMIN clayrichards@suntelservices.com 
SERVER_NAME twiki.suntelservices.com 
SERVER_PORT 80 
SERVER_PROTOCOL HTTP/1.1 
SERVER_SIGNATURE Apache/1.3.33 Server at twiki.suntelservices.com Port 80 
SERVER_SOFTWARE Apache/1.3.33 (Win32) 
SYSTEMROOT C:\WINDOWS 
TEMP /c/temp 
TERM cygwin 
TMP /c/temp 
TZ GMT0BST 
WINDIR C:\WINDOWS 

CGI Setup:
Operating system: Windows (cygwin) 
Perl version: 5.8.6-4 (Cygwin) 
@INC library path: ../lib
/usr/lib/perl5/5.8/cygwin
/usr/lib/perl5/5.8
/usr/lib/perl5/site_perl/5.8/cygwin
/usr/lib/perl5/site_perl/5.8
/usr/lib/perl5/site_perl/5.8
/usr/lib/perl5/vendor_perl/5.8/cygwin
/usr/lib/perl5/vendor_perl/5.8
/usr/lib/perl5/vendor_perl/5.8 
 Note: This is the Perl library path, used to load TWiki modules, third-party modules used by some plugins, and Perl built-in modules. 
TWiki module in @INC path:  
 OK, TWiki.pm found (TWiki version: 02 Sep 2004 $Rev: 1742 $) 
Required Perl modules:  
 CGI (3.05) 
 CGI::Carp (1.28) 
 File::Copy (2.08) 
 File::Spec (3.01) 
 FileHandle (2.01) 
 Digest::SHA1 (2.10) 
 MIME::Base64 (3.05) 
 Net::SMTP (2.29) 
Optional Perl modules:  
 Algorithm::Diff (1.02) 
 MIME::Base64 (3.05) 
 POSIX (1.08) 
 Encode (2.08) 
 Note: Optional module 'Unicode::MapUTF8' not installed - check TWiki documentation to see if your configuration needs this module.  
 Note: Optional module 'Unicode::Map' not installed - check TWiki documentation to see if your configuration needs this module.  
 Note: Optional module 'Unicode::Map8' not installed - check TWiki documentation to see if your configuration needs this module.  
 Note: Optional module 'Jcode' not installed - check TWiki documentation to see if your configuration needs this module.  
 Digest::MD5 (2.33) 
PATH_INFO:  
 Note: For a URL such as http://twiki/bin/testenv/foo/bar, the correct PATH_INFO is /foo/bar, without any prefixed path components. Test this now - particularly if you are using mod_perl, Apache or IIS, or are using a web hosting provider. The page resulting from the test link should have a PATH_INFO of /foo/bar.  
mod_perl: Not used for this script (mod_perl not loaded into Apache)  
User: system  
 Note: Your CGI scripts are executing as this user. 
 Warning: Since your CGI script is not running as user nobody, you need to change the locks in the *,v RCS files of the TWiki distribution from nobody to system. Otherwise, changes to topics will not be logged by RCS.  
 Fix: If needed, relock all the rcs files to user system 
Group(s): administrators administrators root 

Test of TWiki.cfg Configuration:
$defaultUrlHost: http://twiki.suntelservices.com 
 Note: This must match the protocol and host part (with optional port number) of the TWiki URL. 
$scriptUrlPath: /twiki/bin 
 Note: This must match the 'cgi-bin' part of the URL used to access the TWiki cgi-bin directory. 
 Warning: This does not match REQUEST_URI 
$pubUrlPath: /pub 
 Note: This must be the URL of the public directory.This is not set correctly if the /pub/wikiHome.gif image below is broken:
 
$pubDir: c:/twiki/pub 
 Note: This is the public directory, as seen from the file system. It must correspond to $pubUrlPath. 
$templateDir: c:/twiki/templates 
 Note: This is the TWiki template directory, as seen from the file system.  
 Warning: Security issue: This directory should not be writable by the system user. 
$dataDir: c:/twiki/data 
 Note: This is the data directory where TWiki stores all topics. 
$mailProgram: /usr/sbin/sendmail -t -oi -oeq 
 Note: This is not typically used on Windows - the Perl Net::SMTP module is used instead. 
$rcsDir: c:/cygwin/bin 
 Note: This is the directory where RCS is located. 
RCS Version: 5.7  (Cygwin package rcs-5.7-3) 
 Note: This is the version of RCS which will be used. 
$lsCmd: /bin/ls 
 Note: This is the file list program TWiki uses to list topics. 
$egrepCmd: /bin/grep -E 
 Note: This is a program TWiki uses for search. 
$fgrepCmd: /bin/grep -F 
 Note: This is a program TWiki uses for search. 
$safeEnvPath: /usr/bin 
 Note: This is used to initialise the PATH variable, and is used to run the 'diff' program used by RCS, as well as to run shell programs such as cmd.exe or Cygwin's 'bash'. 
Since you are using Cygwin Perl, 'bash' will be used without any special setup. 
 

Path and Shell Environment
Original PATH: /c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program Files/ATI Technologies/ATI Control Panel:/c/Documents and Settings/richarc/My Documents/Stuff/Putty:/c/MSSQL7/BINN:/c/Program Files/Common Files/Adaptec Shared/System:/twiki/bin 
 Note: This is the PATH value passed in from the web server to this script - it is reset by TWiki scripts to the PATH below, and is provided here for comparison purposes only.  
Current PATH: /usr/bin 
 Note: This is the actual PATH setting that will be used by Perl to run programs. It is normally identical to $safeEnvPath, unless that variable is empty.  
diff: GNU diff was found on the PATH - this is the recommended diff tool. 
 Note: The 'diff' command is used by RCS to compare files.  

User Authentication
htpasswd Format Family: htpasswd 
htpasswd Encoding: sha1 
htpasswd Filename: c:/twiki/data/.htpasswd 
 Note: only some combinations of Format, Encoding and Filename are valid, and fewer are tested 
 


Apache Error.log:

[Mon Mar 28 16:54:03 2005] [error] [client 127.0.0.1] c:/twiki/bin/view is not executable; ensure interpreted scripts have "#!" first line
[Mon Mar 28 16:54:03 2005] [error] [client 127.0.0.1] (2)No such file or directory: couldn't spawn child process: c:/twiki/bin/view
[Mon Mar 28 16:59:23 2005] [error] [client 127.0.0.1] c:/twiki/bin/manage is not executable; ensure interpreted scripts have "#!" first line
[Mon Mar 28 16:59:23 2005] [error] [client 127.0.0.1] (2)No such file or directory: couldn't spawn child process: c:/twiki/bin/manage
[Mon Mar 28 16:59:26 2005] [error] [client 127.0.0.1] c:/twiki/bin/edit is not executable; ensure interpreted scripts have "#!" first line
[Mon Mar 28 16:59:26 2005] [error] [client 127.0.0.1] (2)No such file or directory: couldn't spawn child process: c:/twiki/bin/edit

The shebang lines in the scripts are correct. I don't know if this is relevant, but when I go into cygwin and manually enter perl -wT, then paste in the contents of the script, they don't report any errors.

It seems to me that there is a path statement somewhere that is incorrect, but I can't find it. Any ideas where I should look?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: WinXP
Web server: Apache 1.3.33
Perl version: 5.8.6
Client OS: WinXP
Web Browser: IE6
Categories: Installation

-- ClayRichards - 28 Mar 2005

Answer

Which Apache flavour are you using (Cygwin or Windows) and which Perl are you using, Cygwin or ActivePerl? If using Cygwin Perl with Apache for Windows, which is recommended, the shebang lines should look like c:/twiki/bin/view if you used the WindowsInstallCookbook.

It could also be a permissions issue, Google:TWiki+windows+permissions should help.

BTW it's much easier to read the testenv output if you save it to a .html file and attach it here.

-- RichardDonkin - 29 Mar 2005

It was a permissions issue. The local SYSTEM account did not have access to the script files. It did have access to the testenv script because I had downloaded the new version from the website during testing.

-- ClayRichards - 29 Mar 2005

I had a similar problem - testenv worked, but pages weren't showing up.

I used CPAN to request installation of all the modules shown in the "required" Perl modlues of the results of testenv ... a couple of them weren't installed. After that, pages would appear.

-- TsuDhoNimh - 29 Sep 2005

I have the same problem too. Testenv is the only page that works. When i tried to view the others page such as http://ws06.testnet.com/bin/view i got

" Software error: Can't locate TWiki/Prefs.pm in @INC (@INC contains: /twiki/lib/ . /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8) at /twiki/lib//TWiki.pm line 188. BEGIN failed--compilation aborted at /twiki/lib//TWiki.pm line 188. Compilation failed in require at /twiki/lib//TWiki/UI/View.pm line 31. BEGIN failed--compilation aborted at /twiki/lib//TWiki/UI/View.pm line 31. Compilation failed in require at c:\twiki\bin\view line 36. BEGIN failed--compilation aborted at c:\twiki\bin\view line 36.

For help, please send mail to the webmaster (admin@testnetPLEASENOSPAM.com), giving this error message and the time and date of the error. "

Any help much appreciated.

-- AnhPhan - 02 Dec 2005

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2005-12-02 - AnhPhan
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.