Question
- TWiki version: 01 Feb 2003
- Perl version:5.8.0
- Web server apache 2.0
- Server OS:Linux Redhat 8.0
- Web browser &mozilla version: 1.2
- Client OS: Linux RedHat 8.0
Hi, I've tried all the stuff in other topics about variables not evaluating to no avail, so here goes....
Everything installed nicely, but here's what
Main.WebHome
looks like:
%HTTP_EQUIV_ON_VIEW%
%WIKILOGOALT% TWiki > Main > WebHome TWiki webs:
%WIKIWEBLIST%
Main . { %WEBTOPICLIST% }
Topic WebHome . { Create | Attach | Ref-By | Printable | Diffs | r1.1 | More }
Revision %WEBCOPYRIGHT%
My testenv seems ok (see end of page)... thanks for any pointers.
Paul S
testenv results:
Test the environment for TWiki
Please read the TWikiInstallationNotes for more information on TWiki installation.
Environment variables:
DOCUMENT_ROOT /var/www/html
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
HTTP_ACCEPT_CHARSET ISO-8859-1, utf-8;q=0.66, *;q=0.66
HTTP_ACCEPT_ENCODING gzip, deflate, compress;q=0.9
HTTP_ACCEPT_LANGUAGE en-us, en;q=0.50
HTTP_CACHE_CONTROL max-age=0
HTTP_CONNECTION keep-alive
HTTP_HOST paradisedev
HTTP_KEEP_ALIVE 300
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
QUERY_STRING
REMOTE_ADDR 64.109.250.41
REMOTE_PORT 33251
REQUEST_METHOD GET
REQUEST_URI /twiki/bin/testenv
SCRIPT_FILENAME /var/www/cgi-bin/twiki/bin/testenv
SCRIPT_NAME /twiki/bin/testenv
SERVER_ADDR 207.251.154.3
SERVER_ADMIN root@localhost
SERVER_NAME paradisedev
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
Apache/2.0.40 Server at paradisedev Port 80
SERVER_SOFTWARE Apache/2.0.40 (Red Hat Linux)
UNIQUE_ID NHrZYn8AAAEAAA91KEMAAAAD
CGI Setup:
Operating system: Unix (linux)
Perl version: 5.8.0
@INC library path: /var/www/html/twiki/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.
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: 01 Feb 2003)
Required Perl modules:
CGI (2.81)
CGI::Carp (1.23)
File::Copy (2.05)
Optional Perl modules:
Algorithm::Diff (1.01)
MIME::Base64 (2.12)
POSIX (1.05)
PATH_INFO:
Note: For a URL such as http://paradisedev/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 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)
User: apache
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 apache. Otherwise, changes to topics will not be logged by RCS.
Group(s): apache apache
Test of TWiki.cfg Configuration:
$wikiHomeUrl: http://207.251.154.3/twiki
Note: This is the link of the TWiki icon in the upper left corner.
$defaultUrlHost: http://207.251.154.3
Note: This must be the protocol and host part (with optional port number) of the TWiki URL.
Warning: This does not match HTTP_HOST
$scriptUrlPath: /twiki/bin
Note: This must be the URI of the TWiki cgi-bin directory.
$pubUrlPath: /twiki/pub
Note: This must be the URI of the public directory.This is not set correctly if the /twiki/pub/wikiHome.gif image below is broken:
$pubDir: /var/www/html/twiki/pub
Note: This is the public directory, as seen from the file system. It must correspond to $pubUrlPath.
$templateDir: /var/www/html/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 apache user.
$dataDir: /var/www/html/twiki/data
Note: This is the data directory where TWiki stores all topics.
$mailProgram: /usr/sbin/sendmail -t -oi -oeq
Note: This is the mail program TWiki uses to send mail.
$rcsDir: /usr/bin
Note: This is the directory where RCS is located.
RCS Version: 5.7
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/egrep
Note: This is a program TWiki uses for search.
$fgrepCmd: /bin/fgrep
Note: This is a program TWiki uses for search.
$safeEnvPath: /bin:/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 Bourne shell or 'bash'.
Path and Shell Environment
Original PATH: /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/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: /bin:/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.
Internationalisation and Locale Setup
$useLocale: 0
Note: This TWiki.cfg setting controls whether locales are used by Perl and 'grep'.
$siteLocale: en_US.ISO-8859-1
Note: This TWiki.cfg parameter sets the site-wide locale - for example, de_AT.ISO-8859-1 where 'de' is the language code, 'AT' the country code and 'ISO-8859-1' is the character set. Use the locale -a command on your system to determine available locales.
--
TWikiGuest - 20 Feb 2003
Answer
Thanks for the testenv - had a look at
http://207.251.154.3/twiki
but that didn't really help. Please see
SupportGuidelines and post your TWiki.cfg etc, and be sure to check the Apache error log for any error messages, and post them here.
Also, see
Codev.KnownIssuesOfTWiki01Feb2003 and
Codev.TWikiOnRedHat - there are some known issues with Red Hat 8.0 and Perl 5.8, though they don't cover your problem.
--
RichardDonkin - 20 Feb 2003
Oops sorry about missing the config, it's now attached. I also attached the error_log as it contains some strange looking things that don't make a lot of sense to me - obviously there's a permission problem with creating files that I need to fix, not sure if that would cause the variables not to evaluate.
Paul S
--
TWikiGuest - 20 Feb 2003
Error log was interesting - TWiki can't write to files in data/Main, which could be another issue but wouldn't cause this.
Not sure about the variables not evaluating - worth re-checking the TWiki.cfg, was this based on the distributed .cfg file or an older one from before upgrade? If the latter, try a new file.
Also, location of data directory is under the www tree which is not good for security.
--
RichardDonkin - 21 Feb 2003
I turned on all the debug stuff, and didn't see anything. Any suggestions on where to look?
thanks again
Paul Sorensen
--
TWikiGuest - 21 Feb 2003
I had the same problem and 10 minutes ago I found out that I forgot to chmod 755 all the directories under the dataDir. Maybe that's your problem also.
Good luck,
Christoph Krüger
- That was it! Thanks....Paul Sorensen
--
ChristophKrueger - 24 Feb 2003