Tags:
create new tag
view all tags

Question

After installing the Twiki software in Window Vista and finishing the webpage design in my laptop computer, I uploaded the folder (twiki) stored in C:\Program Files\Twiki\ to the internet server (say, www.abc.com/internal/).

However, I cannot open the WebHome which has been uploaded on the internet server as normal as opened in my computer harddisk. I am wondering if there is something setup needed before uploading the folder or opening the webpage. Or I have uploaded the wrong folder?

Basically, with respect to the situation in my computer harddisk, i've checked the WebHome is in txt format.

Is it the problem due to the http host? I found that the http host is http://xavier-pc. And when I click the twiki shortcut file in my Window Vista "START" Menu, a browser is opened and its linke is http://xavier-pc/twiki/bin/view/Main/WebHome

It seems that the translation for WebHome between txt to html works in my local harddisk, but not work on internet server.

Please help. Please advise how to do it. Thanks so much

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: MS Windows Vista
Web Browser:  
Categories: Platform

-- XavierLo - 10 Jul 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Xavier you will need to change the paths in lib/LocalSite.cfg. i.e. all these (these example values are from mine):

$TWiki::cfg{DefaultUrlHost} = 'http://it-js-moorej-6b';
$TWiki::cfg{PubDir} = 'C:/websites/twiki/pub';
$TWiki::cfg{TemplateDir} = 'C:/websites/twiki/templates';
$TWiki::cfg{DataDir} = 'C:/websites/twiki/data';
$TWiki::cfg{LocalesDir} = 'C:/websites/twiki/locale';
$TWiki::cfg{WorkingDir} = 'C:/websites/twiki/working';

and in bin/LocalLib.cfg change the following parameter to the new path on the webserver:

$twikiLibPath = "C:/websites/twiki/lib";

You may also need to change #! line at the top of every file in the bin folder to the correct path to the perl interpreter. You can find the path to the perl interpreter from your ISP/sysadmin.

You will also need to ensure that the webserver configuration permits scripts in your bin directory to be executed. Again ask your sysadmin to do that if you are not the sysadmin.

Regards

-- JamesGMoore - 10 Jul 2008

Has the TWiki software been installed and configured on your web server?

-- DavidWolfe - 10 Jul 2008

Hi JamesGMoore,

After changing the paths in lib/LocalSite.cfg and bin/LocalLib.cfg as below:

$TWiki::cfg{DefaultUrlHost} = 'http://web.domain.com/abc/'; $TWiki::cfg{PubDir} = 'http://web.domain.com/abc/Internal/twiki/pub';'; $TWiki::cfg{TemplateDir} = 'http://web.domain.com/abc/Internal/twiki/templates'; $TWiki::cfg{DataDir} = 'http://web.domain.com/abc/Internal/twiki/data'; $TWiki::cfg{LocalesDir} = 'http://web.domain.com/abc/Internal/twiki/locale'; $TWiki::cfg{WorkingDir} = 'http://web.domain.com/abc/Internal/twiki/working';

$twikiLibPath = "http://web.domain.com/abc/Internal/twiki/lib";

I have also change the #! line of every file in the bin folder

Please note that the twiki folder and the perl folder was uploaded to http://web.domain.com/abc/ via FTP software

However, it still doesn't work

-- XavierLo - 11 Jul 2008

-- XavierLo - 11 Jul 2008

Hi DavidWolfe,

How can I install TWiki on web server? I just installed it on my laptop harddisk and uploaded the folder stored in the harddisk to the web server. Please advise. Thank you.

-- XavierLo - 11 Jul 2008

Xavier those paths are not paths, they are urls. Only the DefaultUrlHost looks right.

If the variable contains Dir then you must enter a path. See my paths above for an example on a Windows server. For Linux its like this:

/home/websites/web.domain.com

If you dont know the path then you can find out from your ISP.

Ask your ISP/find out from your ISP control panel the following:

  • What is the Operating System the webserver is installed on? Windows 2003, Red Hat Enterprise Linux etc
  • What flavour and version of Perl is installed on it? ActiveState Perl v5.8.8 build 822, Cygwin, CPAN, Indigo Perl etc
  • What is your website home directory?
  • What is your flavour of webserver? Apache, IIS 6, IBM Websphere etc
  • Can you specify the scripts directory? i.e. you will need to ensure the bin directory is enabled for executing scripts within that directory.

-- JamesGMoore - 11 Jul 2008

Closing this question after more than 30 days of inactivity. Feel free to re-open if needed.

-- PeterThoeny - 02 Sep 2008

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2008-09-02 - PeterThoeny
 
  • 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.