Question
trying to build add'l webs on my Main, which for now is a play site for showing TWiki to colleagues. Keep getting "Create Web Access Denied" error in TWiki with an Apache2 error_log error of "Use of unitialized value in pattern match (m//) at .../lib/tWiki/Plugins/ProjectPlannerPlugin.pm line 703. Do have Planner app on Main but get same error when i remove it and try again to creat new web. Presume this error is simply masking my real prob but I cannot figure it out from error log. Also tried with dissabling htaccess security and got exactly same results. Any ideas?
Environment
--
WilliamPReed - 16 May 2005
Answer
what are the permissions on the subdirs in your twiki install area, and specifically /data? What user/group is apache running as?
--
SteveRJones - 20 May 2005
--
WilliamPReed - 22 May 2005
totally opened all Dirs under TWiki and apache is running as same user as workstation and group is administrator.
--
WilliamPReed - 22 May 2005
Might be a good idea to post the output of 'testenv.cgi' here. Um, I assume you trying to do this by going through the
ManagingWebs topic, right?
--
SteveRJones - 22 May 2005
Steve,
appreciate ur help, im over my head and have very interested bus colleagues, but have to now show how it can be segregated (web) w/security. Yes - trying to add via
ManagingWebs, testenv follows -
Test the environment for TWiki
Please read the TWikiInstallationNotes for more information on TWiki installation.
Environment variables:
AUTH_TYPE Basic
DOCUMENT_ROOT /home/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_CONNECTION keep-alive
HTTP_HOST wmpreed.dynalias.net
HTTP_KEEP_ALIVE 300
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
QUERY_STRING
REMOTE_ADDR 68.46.169.65
REMOTE_HOST pcp01769935pcs.audubn01.nj.comcast.net
REMOTE_PORT 32936
REMOTE_USER bill
REQUEST_METHOD GET
REQUEST_URI /twiki/bin/testenv
SCRIPT_FILENAME /home/httpd/twiki/bin/testenv
SCRIPT_NAME /twiki/bin/testenv
SERVER_ADDR 192.168.0.5
SERVER_ADMIN wmpreed@aol.com
SERVER_NAME wmpreed.dynalias.net
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
Apache/2.0.50 (Unix) Server at wmpreed.dynalias.net Port 80
SERVER_SOFTWARE Apache/2.0.50 (Unix)
CGI Setup:
Operating system: Unix (linux)
Perl version: 5.8.3
@INC library path: ../lib
/usr/lib/perl5/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/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: 02 Sep 2004 $Rev: 1742 $)
Required Perl modules:
CGI (3.01)
CGI::Carp (1.27)
File::Copy (2.07)
File::Spec (3.06)
FileHandle (2.01)
Optional Perl modules:
Algorithm::Diff (1.02)
MIME::Base64 (2.21)
POSIX (1.07)
Encode (1.99)
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)
Note: Optional module 'Digest::SHA1' not installed - check TWiki documentation to see if your configuration needs this module.
MIME::Base64 (2.21)
Net::SMTP (2.29)
PATH_INFO:
Note: For a URL such as http://wmpreed.dynalias.net/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: nobody
Note: Your CGI scripts are executing as this user.
Fix: If needed, relock all the rcs files to user nobody
Group(s): nobody nobody
Test of TWiki.cfg Configuration:
$defaultUrlHost: http://your.domain.com
Note: This must match 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 match the 'cgi-bin' part of the URL used to access the TWiki cgi-bin directory.
$pubUrlPath: /twiki/pub
Note: This must be the URL of the public directory.This is not set correctly if the /twiki/pub/wikiHome.gif image below is broken:
$pubDir: /home/httpd/twiki/pub
Note: This is the public directory, as seen from the file system. It must correspond to $pubUrlPath.
$templateDir: /home/httpd/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 nobody user.
$dataDir: /home/httpd/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: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/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.
User Authentication
htpasswd Format Family: htpasswd
htpasswd Encoding: crypt
htpasswd Filename: /home/httpd/twiki/data/.htpasswd
Note: only some combinations of Format, Encoding and Filename are valid, and fewer are tested
--
WilliamPReed - 23 May 2005
Steve, looked over my reply after i rushed out and got back home - have no idea what some of that stuff is, so following is the 'testenv' c&p again. many thanx - bill reed
Test the environment for TWiki
Please read the TWikiInstallationNotes for more information on TWiki installation.
Environment variables:
AUTH_TYPE Basic
DOCUMENT_ROOT /home/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_CONNECTION keep-alive
HTTP_HOST wmpreed.dynalias.net
HTTP_KEEP_ALIVE 300
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
QUERY_STRING
REMOTE_ADDR 68.46.169.65
REMOTE_HOST pcp01769935pcs.audubn01.nj.comcast.net
REMOTE_PORT 32936
REMOTE_USER bill
REQUEST_METHOD GET
REQUEST_URI /twiki/bin/testenv
SCRIPT_FILENAME /home/httpd/twiki/bin/testenv
SCRIPT_NAME /twiki/bin/testenv
SERVER_ADDR 192.168.0.5
SERVER_ADMIN wmpreed@aol.com
SERVER_NAME wmpreed.dynalias.net
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
Apache/2.0.50 (Unix) Server at wmpreed.dynalias.net Port 80
SERVER_SOFTWARE Apache/2.0.50 (Unix)
CGI Setup:
Operating system: Unix (linux)
Perl version: 5.8.3
@INC library path: ../lib
/usr/lib/perl5/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/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: 02 Sep 2004 $Rev: 1742 $)
Required Perl modules:
CGI (3.01)
CGI::Carp (1.27)
File::Copy (2.07)
File::Spec (3.06)
FileHandle (2.01)
Optional Perl modules:
Algorithm::Diff (1.02)
MIME::Base64 (2.21)
POSIX (1.07)
Encode (1.99)
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)
Note: Optional module 'Digest::SHA1' not installed - check TWiki documentation to see if your configuration needs this module.
MIME::Base64 (2.21)
Net::SMTP (2.29)
PATH_INFO:
Note: For a URL such as http://wmpreed.dynalias.net/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: nobody
Note: Your CGI scripts are executing as this user.
Fix: If needed, relock all the rcs files to user nobody
Group(s): nobody nobody
Test of TWiki.cfg Configuration:
$defaultUrlHost: http://your.domain.com
Note: This must match 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 match the 'cgi-bin' part of the URL used to access the TWiki cgi-bin directory.
$pubUrlPath: /twiki/pub
Note: This must be the URL of the public directory.This is not set correctly if the /twiki/pub/wikiHome.gif image below is broken:
$pubDir: /home/httpd/twiki/pub
Note: This is the public directory, as seen from the file system. It must correspond to $pubUrlPath.
$templateDir: /home/httpd/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 nobody user.
$dataDir: /home/httpd/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: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/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.
User Authentication
htpasswd Format Family: htpasswd
htpasswd Encoding: crypt
htpasswd Filename: /home/httpd/twiki/data/.htpasswd
Note: only some combinations of Format, Encoding and Filename are valid, and fewer are tested
--
WilliamPReed - 23 May 2005
Bill, in
AdminGroup, did you list yourself? Make sure you list both yourself and your
TwikiName.
As for the output, note the following issues:
User: nobody
Note: Your CGI scripts are executing as this user.
Fix: If needed, relock all the rcs files to user nobody
Group(s): nobody nobody
- Your TWiki is actually running as nobody nobody, not the workstation user and admin group. This could cause problems even with wide open directories (I think) as "nobody" really has no priviledges at all. Try changing directory ownerships to nobody nobody.
$defaultUrlHost: http://your.domain.com
Note: This must match the protocol and host part (with optional port number) of the TWiki URL.
Warning: This does not match HTTP_HOST
- Note that your defaultURL is not set. You need to edit TWiki.cfg to correct this.
Try correcting the above settings (plus adding yourself to the admin group) and give things a try.
--
SteveRJones - 24 May 2005
Steve, many thanx, that did the trick, u made my day/week/month. again - many thanx
--
WilliamPReed - 24 May 2005
Good to hear. Pass it on
--
SteveRJones - 25 May 2005