[04:00] i'm installing twiki on ubuntu server [04:00] and got an error [04:00] mkdir NOT SET: Permission denied at /opt/lampp/htdocs/twiki/lib/CPAN/lib//CGI/Session/Driver/file.pm line 34 [04:00] i have made chown -R to twiki directory [04:00] please help? [04:08] hi junjiemu [04:09] peter [04:09] good evening? [04:09] what user is your apache server running under? [04:09] i think it's www-data but not shure [04:09] www-data [04:09] i got apache2 from xampp [04:10] everything below twiki root should be owned by that user [04:10] i already did [04:10] chown -R twiki [04:10] chown -R www-data:www-data twiki [04:10] when do you get this message? [04:11] after configuration it asked where to go [04:11] could you save the configuration properly? [04:11] twiki/bin/configure [04:11] if so check the ownership of twiki/lib/LocatSite.cfg [04:11] when i click to go to twiki front page [04:12] sorry, LocalSite.cfg [04:12] also www-data [04:12] i even made it 777 [04:13] what do you see in twiki/working/tmp ? [04:14] do you mean user for tmp? [04:14] just README there [04:15] the session handling should create a session file there [04:15] not sure why it fails [04:15] my cgi-bin is at /opt/lampp/ [04:16] i also copy those under twiki/bin to that folder [04:19] seeems cgi error/ [04:19] ? [04:20] i am wondering why you use the twiki supplied session module and not the default one of the system [04:21] i think there's no default cgi enabled so i used xampp provided cgi [04:21] there's a /usr/bin/perl there [04:22] then i installed some cpan [04:22] according to the guide [04:24] try this: [04:24] perl -e 'use CGI::Session; print "$CGI::Session::VERSION\n"' [04:25] xampp might be overkill [04:25] you could install missing cpan modules with the cpan shell [04:26] see http://twiki.org/cgi-bin/view/TWiki/HowToInstallCpanModules [04:27] can't locate CGI::Session.pm in @INC [04:28] i already installed cpan modules [04:28] according to the guide [04:30] now i re-install CGI::Session [04:31] now it's 4.48 [04:31] version for CGI::Session::VERSION [04:31] ok, that looks good [04:32] but still sam eerror [04:32] :( [04:32] Software error: mkdir NOT SET: Permission denied at /opt/lampp/htdocs/twiki/lib/CPAN/lib//CGI/Session/Driver/file.pm line 34 For help, please send mail to the webmaster (you@example.com), giving this error message and the time and date of the error. [04:33] what do you have in twiki/bin/LocaLib.cfg? [04:34] $CPANBASE should be commented out [04:34] still only README under working/tmp [04:34] let me check [04:36] to debug, set the working/tmp to 777 [04:36] okay [04:37] mkdir NOT SET: Permission denied at /usr/local/share/perl/5.14.2/CGI/Session/Driver/file.pm line 34 [04:37] different error now [04:38] it uses ubuntu cgi [04:38] hmm, not sure [04:38] is secure linux enabled? [04:39] disable for now if it is [04:39] no [04:41] it's not secure linux [04:41] it's ubuntu 12.04 [04:41] server [04:44] what is your $TWiki::cfg{WorkingDir} in twiki/lib/LocalSite.cfg ? [04:49] it's [04:49] "/opt/lampp/htdocs/twiki/working" [04:50] i unzip twiki under /opt/lampp/htdocs [04:51] first of all, it is not good to run twiki under an htdoc enabled dir [04:51] this is a security hole [04:51] only twiki/pub should be htdoc enabled [04:52] and twiki/bin cgi enabled [04:52] i can move it out and put htdoc/pub there [04:52] all other dirs must not be exposed [04:53] run http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator to generate the apache conf file [04:55] sorry but how to make twiki/bin cgi enabled? [04:55] see apache config nenerator [04:55] "generator" [05:07] hello peter [05:08] should have the index.html etc to twiki folder under htdocs [05:08] right? [05:08] now it goes to folder directory of pub directly [05:09] ignore the index.html in the twiki root, it should not be visible enternally [05:10] only twiki/pub should be an htdocs dir [16:00] *** hardcore_ is now known as hardcore [18:23] *** ChanServ sets mode: +o PeterThoeny