Tags:
create new tag
, view all tags

Question

Some more information... My Apache log file says:

[Tue Jul 17 15:20:50 2001] [error] [client 24.189.12.79] (2)No such file or directory: script not found or unable to stat: d:/program files/apache group/apache/twiki/bin/view

Also: Each .pl file has as its first line: #!D:\Perl\bin\perl.exe

(where my Activestate Perl is located)


.

  • TWiki version: 01 Dec 2000
  • Web server: Apache 1.3.30 (Win32 Release)
  • Server OS: Windows 2000 Professional

I had UseMod Wiki running in about an hour and I was then asked to try Twiki because of its more complete feature set and popularity. I have been trying to install Twiki for a couple of days and have run into some fustration. I have been using the documentation found on this twiki site. I am not very web savy, but I would greatly appreciate anyone's help in getting the basics started for Twiki.

When I type in my host name, I get the initial "Welcome to Twiki" page, but I get a page not found error when clicking on the "get started" link. I also tried going to "http://myhost/twiki/" and I get the same welcome page and the link also produces the same error. Going to "http://myhost/twiki/bin/" gives my a forbidden error in my browser.

I just need help producing the first page from which to edit from. Thank you for your help,

MichaelPetrescu

Here are the steps that I have taken so far. .

  • I had Activestate Perl 5.6.1 installed on my cmputer for another application in "D:/perl". I haven't changed any paths for it or changed anything in the Twiki files related to Perl
  • I installed the Apache Server in "D:\Program Files\Apache Group\Apache" and started it successfully.
  • I installed the RCS tools and the GNU tools
  • I installed twiki in "D:\Program Files\Apache Group\Apache\twiki"
  • I changed all the endings of the files wihtout endings to .pl
  • I made the following changes to the "wikicfg.pm" file":

# variables that need to be changed when installing on a new server:

# ==================================================================

#                   %WIKIHOMEURL% : link of TWiki icon in upper left corner :

$wikiHomeUrl      = "http://kanga.bremer-inc.com/twiki";

#                   Host of TWiki URL :    (Example "http://myhost.com:123")

$defaultUrlHost   = "http://kanga.bremer-inc.com";

#                   %SCRIPTURLPATH% : cgi-bin path of TWiki URL:

$scriptUrlPath    = "/bin";

#                   %PUBURLPATH% : Public data path of TWiki URL (root of attachments) :

$pubUrlPath       = "/pub";

#                   Public data directory, must match $pubUrlPath :

$pubDir           = "/pub";

#                   Template directory :

$templateDir      = "/templates";

#                   Data (topic files) root directory :

$dataDir          = "/data";

# variables that might need to be changed:

# ==================================================================

#                   %SCRIPTSUFFIX% : Suffix of TWiki Perl scripts(i.e. ".pl") :

$scriptSuffix     = ".pl";

#                   set ENV{'PATH'} explicitly for taint checks ( #!perl -T option ) :

$envPath          = "/bin:/usr/bin";

#                   mail program :
----

  • I modified my httpd.conf file for Apache to the following:

#
# DocumentRoot: The directory out of which you will serve your

# documents. By default, all requests are taken from this directory, but

# symbolic links and aliases may be used to point to other locations.

#
#DocumentRoot "D:/Program Files/Apache Group/Apache/htdocs"
DocumentRoot "D:/Program Files/Apache Group/Apache/twiki

#
# Each directory to which Apache has access, can be configured with respect

# to which services and features are allowed and/or disabled in that

# directory (and its subdirectories). 

#

# First, we configure the "default" to be a very restrictive set of 

# permissions.  
#
#<Directory />
#    Options FollowSymLinks
#    AllowOverride None
#</Directory>

Alias /twiki/ "D:/Program Files/Apache Group/Apache/twiki/"
ScriptAlias /twiki/bin/ "D:/Program Files/Apache Group/Apache/twiki/bin/"
<Directory  "D:/Program Files/Apache Group/Apache/twiki/bin/">
    AllowOverride None
    Allow From All
    Options  ExecCGI
    SetHandler cgi-script 
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
#<Directory "D:/Program Files/Apache Group/Apache/htdocs">
<Directory "D:/Program Files/Apache Group/Apache/twiki>

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options Indexes FollowSymLinks MultiViews

#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo", 
# "AuthConfig", and "Limit"
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
</Directory>

-- MichaelPetrescu - 16 Jul 2001

Answer

Don't know if this is related or not, but $pubDir, $templateDir and $dataDir are NOT relative to the web server root - they are absolute. In other words, your $pubUrlPath might be "/pub", but your $pubDir would be "D:\Program Files\Apache Group\Apache\twiki\pub".

Hope this helps. smile

[edit: Corrected spelling.]

-- CiaranHamilton - 13 Nov 2001

Michael, if you are still working on this, have a look at WindowsInstallCookbook where I've got a complete installation procedure for Apache, Cygwin, RCS, etc. As Ciaran says, you need a full Windows pathname for the three variables he mentioned, which is probably the reason for the error.

-- RichardDonkin - 24 Feb 2002

Topic revision: r8 - 2002-05-21 - TWikiAdmin
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.