SID-01062: set $TWIKI_LIBS environment variable where?
|| TWiki version:
|| Perl version:
|| Server OS:
|| ubuntu 10.4, kernel 2.6.32-26
|| Last update:
|| 6 years ago
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
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?
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
. This and other files that are specific to installs are not in SVN, hence you can safely do an
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
you change the ownership of all files below
to the webserver user so that you can update topics via browser.
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.