#foswiki 2017-03-21,Tue

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
GithubBot[distro] vrurg pushed 1 new commit to Item14237: https://git.io/vyNxG
distro/Item14237 34082d8 Vadim Belman: Item14237: Extended tests & fixed some bugs....
[02:50]
***GithubBot has left [02:50]
FoswikiBothttps://foswiki.org/Tasks/Item14237 [ Item14237: Implement Development.OOConfigSpecsFormat proposal ] [02:50]
.............................................................................................................. (idle for 9h9mn)
AlexHarnhi there [11:59]
................. (idle for 1h21mn)
***ChanServ sets mode: +o gac410 [13:20]
ChanServ sets mode: +o Lynnwood [13:30]
........ (idle for 39mn)
foswiki_irc0Question. I know this is best designed for Linux, but is it possible to run via apache on Windows Server 2016? I'm having something issues getting Perl running, I've installed Apache and that's working [14:09]
jastit's *probably* possible but I don't have personal experience with it
I do know you can get Perl to run on Apache for Windows
[14:10]
gac410It's possible but not recommended. We don't do any testing at all on windows any more. There are a number of pitfalls along the way. [14:11]
jastbut I haven't set it up myself in a looong time [14:11]
foswiki_irc0I'm new to all of this, but it seems like as long as Apache is running successfully and you can point Foswiki to it via the configuration file that it should work? Or are there more things I'm not accounting for?
Maybe I can post my error and see if I can get that to work for now and go from there... We tried to set up an AWS linux system but it was command line only and none of us are good enough with Linux to utlilize that
[14:12]
gac410For one thing, Foswiki expects the file system to be case sensitive. Windows is not. So topic names can collide.
Also some of the required perl modules use non-perl system modules. Anything involving encryption or certificates, which includes many email connections will have troubles.
Here is a very old guide - no idea if it is still valid: http://foswiki.org/Support/FoswikiOnWindowsApacheAndActivePerl
[14:13]
foswiki_irc0Would I need encryption and certificate for just a basic IT related wiki where knowledge bases and instructions are held? [14:17]
jastif you're not interested in e-mail notifications, probably not. if you are, it depends on your e-mail setup. [14:18]
foswiki_irc0I will try that link, maybe start over and see where I get. I download strawberry Perl and got to the point of fixing the bins/rewriteshebang and that's where it gave me an error [14:19]
gac410Strawberry perl should work fine as welll.
Another option is to use the VMWare virtual machine we make available.
[14:19]
foswiki_irc0Yeah, I tried that before and had it functioning, the only issue is the lack of storage and such
That's limited right?
[14:20]
gac410There are ways to expand the disk sizes. But yes it has a fairly small vdisk. [14:21]
foswiki_irc0Hmm. Well, for now I will try to start over and see if I can get it going on the AWS server. I think part of my problem comes from not knowing what exactly to do with the ApacheConfigGenerator so I'll try that again. Looks like i missed some steps [14:23]
.... (idle for 17mn)
Ok, using that guide I'm at this step again and the command prompt is just sitting there, no errors but also no information. I typed c:\www\foswiki\bin>perl -I C:\www\foswiki\tools\rewriteshebang.pl, I'm guessing it should prompt me something? [14:40]
gac410Ah... the -I is supposed to be followed by a library path.
perl -I C:\www\foswiki\lib C:\www... Though really you should run it from the bin directory.
cd path\to\foswiki\bin perl ..\tools\rewriteshebang.pl I think the lates version should not need the -I lib..
[14:41]
foswiki_irc0Ok thanks. I did that and got a bunch of errors now, wondering if I should use a different version of Perl?
Perl lib version (5.12.3) doesn't match executable version (v5.24.1) at C:/Strawberry/perl/lib/Config.pm line 50. Compilation failed in require at C:/Strawberry/perl/lib/Pod/Usage.pm line 20. BEGIN failed--compilation aborted at C:/Strawberry/perl/lib/Pod/Usage.pm line 20. Compilation failed in require at ..\tools\rewriteshebang.pl line 10. BEGIN failed--compilation aborted at ..\tools\rewriteshebang.pl line 10.
[14:45]
gac410hm That seems like you might have multiple versions of perl installed somehow, and it's finding the wrong version for it's libraries. No idea how though as I don't have a windows system available to test on [14:47]
foswiki_irc0Could it be from another test I was doing where I copied the entire directory from perl into the C:\www\foswiki\tools directory? Looks like it's looking in the actual original install directory there [14:50]
gac410You should not have to copy perl into the foswiki tools directory. That would probably mess things up. [14:51]
foswiki_irc0Alrighty, I don't even remember why I did that but I'll try to get rid of those and try again [14:53]
Ugh. That didn't work. Might try reinstalling perl [15:06]
....... (idle for 33mn)
Ok, installed ActivePerl and get a new error now:
The following critical dependencies are missing from your installation: ... CGI::Session: Can't locate CGI/Session.pm in @INC ... Crypt::PasswdMD5: Can't locate Crypt/PasswdMD5.pm in @INC ... Error: Can't locate Error.pm in @INC
[15:39]
gac410You need to use the ActivePerl ppm libraries to install all the dependencies listed in Foswiki:System.SystemRequirements [15:41]
FoswikiBothttps://foswiki.org/System.SystemRequirements [ SystemRequirements ] [15:41]
foswiki_irc0Not seeing a Windows section there since it's not supported... should I just be looking for the ones listed in that error?
I think that's working, got rid of the Session one
[15:50]
gac410y the cpan section is about as close as we get
If you run tools/dependencies that should also give you a complete list of missing dependencies
[15:52]
foswiki_irc0Ok, now it's asking me this: Select Path ----------- Note: the path to the interpreter *must not* contain any spaces. Enter path to interpreter [hit enter to choose 'C:\Perl64\bin\perl.exe']: New Perl interpreter uses version 5.024001 "No" will only change "shebang" lines of scripts found in c:/www/foswiki/bin Are you sure you want to change scripts in the 2 directories: ../tools ../bin (y/n)?: [15:55]
gac410right, you can reply y ... that will cause it to update both directories, otherwise it only does the current directory [15:56]
foswiki_irc0Thanks, just making sure that's what I wanted to do [15:57]
........................................ (idle for 3h19mn)
gac410gac410 is trying to clarify some of the Nginx / FastCGI docs. I'm thinking that we should just delete the example apache configurations in Foswiki:System.FastCGIEngineContrib, and stick with the ApacheConfigGenerator. [19:16]
FoswikiBothttps://foswiki.org/System.FastCGIEngineContrib, [19:16]
......... (idle for 42mn)
***ChanServ sets mode: +o Lynnwood__ [19:58]
.... (idle for 17mn)
rick_sock1hello! [20:15]
rick_soc1Any active chatters in here? [20:16]
gac410Hi, do you need help? [20:17]
rick_soc1Quick question
When using modules within the wiki
[20:18]
gac410yes? [20:18]
rick_soc1Is it possible to change the content based on the authenticated user
Not just permissions, but actual changes to content
Such as dynamic queries to pull different data sets for that user for display
[20:19]
gac410Probably, yes. Foswiki content can be dynamic. Some even happens automatically based upon topic permissions.
For ex, SEARCH won't show results you don't have view authority on.
Foswiki:System.IfStatements can examine the identiy of the user
[20:20]
FoswikiBothttps://foswiki.org/System.IfStatements [ IfStatements ] [20:21]
gac410And certainly Plugins can access the user identity and use it when processing their macros. [20:21]
rick_soc1Okay thank you. Is there a good working example I can look at it? I'm digging through the FAQ now but haven't run across it yet. [20:22]
gac410looking...
Not a lot in the default foswiki source, as we don't know the user names people will be using
But even something simple, in Foswiki:System.WelcomeGuest
[20:22]
FoswikiBothttps://foswiki.org/System.WelcomeGuest [ WelcomeGuest ] [20:26]
gac410---+!! Welcome to %WIKITOOLNAME%%IF{ "$ WIKINAME='WikiGuest'" then="!" else=", %WIKIUSERNAME%!" }%
Will show you your name if you are not the guest user.
[20:26]
rick_soc1hmm
Is there a macro for user ID (numeric)?
[20:33]
gac410hm Foswiki uses WikiNames To use numeric identities you'd probably be using something external like LDAP for authentication. [20:34]
rick_soc1It's the backend queries I want to change per the logged in user, so it's okay if I don't have something available in the frontend
ok
[20:34]
gac410Internally code can map from WikiName to LoginName You can test whatever you want if you are writing your own queries.
But foswiki itself is implemented using plain text files. no backend database natively anyway. Some extensions can add db support.
[20:35]
rick_soc1Ah right. The queries I'm referring to would be for my own non-wiki db
Okay thank you for your help
I'll keep digging around and try it out
[20:37]
gac410See https://foswiki.org/System/PerlDoc?module=Foswiki::Func#User_Handling_and_Access_Control for the API for accessing user identity [20:39]
FoswikiBothttps://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Func [20:39]
rick_soc1thx [20:44]
gac410yw [20:45]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)