create new tag
, view all tags

SID-01062: set $TWIKI_LIBS environment variable where?

Status: Answered Answered TWiki version: 5.0.1 Perl version: v5.10.1
Category: BuildContrib Server OS: ubuntu 10.4, kernel 2.6.32-26 Last update: 7 years ago

The BuildContrib topic indicates: "The approach we recommend is to set TWIKI_LIBS in your login script (e.g. .login, .csh, .profile depending on what shell you prefer). "

When I installed my (dev) twiki, I set the ownership to "chown -R www-data:www-data /path/to/twiki" per the instructions from the TWikiInstallGuide, (www-data is the ubuntu webserver user)

www-data now owns my twiki install directory and (dev) TWiki site is up and running as expected. I assume I must run the build.pl under the www-data user since it requires access to my twiki install directories via the TWIKI_LIBS environment variable. However, it seems strange to me to set up a .profile for a system user. Its home directory is /var/www. Is it really recommended to set up a .profile for the webserver user?

I'm most likely misunderstanding something basic here in the BuildContrib setup topic. Thanks in advance for the helps

-- GeorgeTrubisky - 2010-12-18

Discussion and Answer

My assumption that the build script must run under the webserver user (www-data) is where I got myself confused. Most likely run the build script only requires read access to the twiki installation directory tree and can run under my usual userid, so I update its .profile to set the TWIKI_LIBS to the twiki installation path. I'm still unclear about the instructions in the BuildContrib, Setting up for Development section however:

The first thing to do is to either

* check out a TWiki development environment from subversion, or * create a separate TWiki install. Configure this install so it's a running TWiki; we'll refer to this as your development TWiki

Does the first of these options (checkout) also required configuration so its a running TWiki? Or do you get all the files you need for the build from the svn checkout? What's the difference between the two?

-- GeorgeTrubisky - 2010-12-18

Your dev TWiki is an SVN checkout. You can configure Apache to have two dev TWikis on the same server, one for trunk, one for 5.0 branch. Run TWiki's configure after Apache config, it will create a LocalSite.cfg in twiki/lib. This and other files that are specific to installs are not in SVN, hence you can safely do an svn up and svn ci.

My server has a user per virtual domain, that user is the webserver user. That is, in my dev environment login user and webserver user are identical. It can be different. If different you need to watch out that after an svn up you change the ownership of all files below twiki/data and twiki/pub to the webserver user so that you can update topics via browser.

-- PeterThoeny - 2010-12-19

      Change status to:
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.
Status Answered
Title set $TWIKI_LIBS environment variable where?
SupportCategory BuildContrib
TWiki version 5.0.1
Server OS ubuntu 10.4, kernel 2.6.32-26
Web server Apache/2.2.14
Perl version v5.10.1
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2010-12-21 - GeorgeTrubisky
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.