#foswiki 2015-08-07,Fri

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

WhoWhatWhen
gac410And .. configure kicks my butt yet again. Changes to {Plugin}{}{Module} by a wizard don't get picked up as changes by the UI and are not saved. [00:17]
............................... (idle for 2h31mn)
GithubBot[distro] gac410 pushed 2 new commits to master: http://git.io/vOFBi
distro/master 00c9e73 George Clark: Item13560: Add Plugins wizard to repair config...
distro/master 921ed8f George Clark: Item13560: Don't add plugins to BOOTSTRAP...
[02:48]
***GithubBot has left [02:48]
FoswikiBothttp://foswiki.org/Tasks/Item13560 [ Item13560: configure does not set initial values when extensions are installed with an external package manager ] [02:48]
............................. (idle for 2h22mn)
***gac410 has left [05:10]
.................................................................... (idle for 5h39mn)
card.freenode.net sets mode: +ov Lavr FoswikiBot [10:49]
eike_52nHi. I have an outdated TWiki steup (TWiki-5.0.0) and would like to migrate to foswiki. Do you have any good tutorial? What are the pitfalls? I have several template adjustments in-place and use LDAP authentication. Thank you in advance for your time! [10:54]
steup := setup [11:02]
......... (idle for 43mn)
FlashDelhi! i am using foswiki 2.0 with LDAP plugin and everything is working fine so far. Now i got a question: if a user logs in he is automatically in the group "unkown", can i adjust that, so that if a new user logs in is added to a group WikiUserGroup? [11:45]
eike_52nanyone: I have an outdated TWiki set-up (TWiki-5.0.0) and would like to migrate to foswiki. Do you have any good tutorial? What are the pitfalls? I have several template adjustments in-place and use LDAP authentication. Thank you in advance for your time! [11:53]
.... (idle for 18mn)
ColasBasically, the recommended solution is to install a new Foswiki v2, and just copy your TWiki data
The tricky parts are specific references to system pages that have changed
eg hardcoded URLs in your pages
The guide is http://foswiki.org/System/UpgradeGuide
FAQ: http://foswiki.org/Support/Question805
[12:11]
***ChanServ sets mode: +o gac410 [12:26]
LavrI am trying to find out how Foswiki::Func::query works. The docu says that it returns an iterator to a result set. What is an iterator to a result set? Where do I find that? [12:40]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Func [12:40]
gac410Try Foswiki::Iterator and Foswiki::ListIterator [12:42]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Iterator http://trunk.foswiki.org/System/PerlDoc?module=Foswiki::ListIterator [12:42]
LavrI can see that I can do ->hasNext and ->next But I cannot see what it is that ->next returns [12:44]
gac410I think the query returns Meta objects. but not sure. [12:44]
LavrI have tried just to print it like a string. All I get is NOTHING except the last record found where it returns the last topic name [12:45]
gac410There is sample code in Foswiki::Func showing how to iterate over the results. [12:45]
LavrThe example in Func.pm does not work [12:45]
gac410gac410 has no idea ... he has never used that function. Sorry. [12:46]
LavrI always suffer from not really understanding object perl.
I am working on a new plugin I need.
It calls return Foswiki::Meta::query
[12:47]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Meta [12:48]
LavrAnd it again says that it outputs a -> $outputTopicSet [12:49]
gac410take a look at the code in test/unit/FuncTests.pm .... it has a test for query, sub test_query [12:50]
LavrI just cannot make it work. I can get the Func::query to find and iterate many topics. But the -> next returns nada except the last topic
OK will do.
[12:50]
gac410Unfortunately the test case is for a single topic. And btw, the test seems to show that it returns topic names, not meta objects. :( [12:51]
LavrYes. That is a unit test that returns one topic name it seems. That is all I get too. But it finds 76 topics.
Either that function is broken or the example is bad.
[12:54]
gac410I changed the search to search for '*web*' I added duplicated the code to repeat the next() and asserts. And it returns a 2nd topic - ACRONM ad then AccessControl ...
And it's returning the topic name, not an object.
[12:55]
LavrHmmm. It works when I just print the $topic after a my ($web, $topic) = Foswiki::Func::normalizeWebTopicName('', $webtopic);
But $webtopic (per example) is not a normal string. I don't understand what is going on
[12:57]
gac410gac410 is trying to follow and undersand the code and ends up down in the infocache yet again and has no idea wtf this is all about. [13:04]
LavrAh!
F**K
I am testing by using my macro in a topic.
When it returns something like Station/Track.HwSR00000698Station/Track.HwSR00000856Station/Track.HwSR00000915Station/Track.HwSR00000939Station/Track.HwSR00000959Station/Track.HwSR00000960Station/Track.HwSR00000981Station/Track.HwSR00000982Station/Track.HwSR00000985Station/Track.HwSR00001017
Then Foswiki renders it as HwSR00001017
So it does actually work. And it returns a simple iterator of web/topic names
I tried to put a prefix text and it disappeared. Then I put <pre> </pre> around the macro and bingo!
I am trying to make a plugin where I can search for something and output the result in a way that a normal formatted search cannot do.
This way I can replace those 84 searches from the speed test the other day by 1 or 2 macros that process the data in one chunk
[13:08]
....... (idle for 30mn)
I have a crash on foswiki.org when I view http://foswiki.org/Tasks/WebNotify
And I am NOT authenticated
Assert::ASSERT("") called at /usr/home/foswiki.org/public_html/lib/Foswiki/Meta.pm line 1219
Foswiki::Meta::put(Foswiki::Meta=HASH(0x818707408), "TOPICINFO", undef) called at /usr/home/foswiki.org/public_html/lib/Foswiki/Store/Rcs/Store.pm line 362
[13:44]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Meta [13:45]
LavrFoswiki::Store::Rcs::Store::getVersionInfo(Foswiki::Store::RcsWrap=HASH(0x819693618), Foswiki::Meta=HASH(0x818707408)) called at /usr/home/foswiki.org/public_html/lib/Foswiki/Meta.pm line 1603
Foswiki::Meta::getRevisionInfo(Foswiki::Meta=HASH(0x818707408)) called at /usr/home/foswiki.org/public_html/lib/Foswiki/Render.pm line 802
[13:45]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Store::Rcs::Store http://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Store::RcsWrap [13:45]
eike_52nColas, thank you. Is there a list of plugins, that were available in twiki and how they are named in foswiki? [13:48]
ColasNormally they have the smae name
if they changed names it menas they also changed functionally
[13:56]
Lavreike_52n. This is probably out of date but this used to be the list when we converted many plugins after the fork
http://foswiki.org/Development/StatusOfPortingExtensionsToFoswiki
[13:56]
Colasthe main one I guess is EDITTABLE that has been superseded in 2.0 by EDITROW [13:57]
LavrSituation may be that even more are ported now. A lot was never ported because it was garbage or unfinished work.
EditRowPlugin does not work at all if you have TABLE macros on same page.
[13:57]
Colasthe best advice is just to look at the plugin page, it says if it is deprecated in favor of another [13:58]
LavrIf I was to change over to 2.0 now I would disable EditRowPlugin and install good old EditTablePlugin. it works as great in 2.0 as it does in 1.1 [13:58]
Colason the other hand, I switched to Editrow for some time (2 years?) now so it depends on your use [13:59]
LavrI cannot remember an EDITTABLE on one of our pages that does not go with a TABLE macro
It may actually work better on 1.1 Colas. On 2.0 if you have a TABLE tag on the page EditRow is toast!
And it can be somewhere else on the page. Does not matter
[13:59]
ColasAh OK (I never uesed TABLE) [14:01]
LavrI wonder how anyone can avoid it. At least to adjust columnwidths
In 80% of the cases I think my users use it to set column widths. Otherwise all tables will look like garbage the minute any column contains long text strings from a formfield
It is rare that anyone use it to change how the table looks. it is always columnwidths and alignment. typically to center
[14:02]
Colasah ok. When a textarea is too small I just resize it by hand [14:05]
LavrYou cannot in view mode. We are talking how the table looks like when you view the table [14:06]
I just did a count of topics on our production site. I have 11701 topics with a TABLE macro (the word TABLE in the topic as whole word) [14:11]
gac410the foswiki.org webnotify crash is because that topic is generated external to foswiki by a script and does not contain a META:TOPICINFO line
I just disabled asserts - ought to display now.
[14:16]
Lavryeah. Asserts should not be on on f.o. Only on t.f.o
I just did full stats. Number of topics on our production site 48513
Number of topics with TABLE 11701
Number of topics with EDITTABLE 11006
Number of topics with BOTH TABLE AND EDITTABLE on same page 9168
[14:18]
ColasI realise I tended to use css and/or jquery for this [14:21]
LavrSo if I upgraded from 1.1 to 2.0 with EditRowPlugin - around 20% of all pages would be buggy
How do you expect normal users to use css and jquery to set columnswidths on tables in their documents? Oh yeah. You are in a place where most of the users are probably software geeks
unless you changed job ;-)
But with my 9168/48513 topics affected I guess you can all understand why I see the EditRowPlugin bug as a major showstopper.
[14:21]
ColasOK, I checked. I never use TABLE in the wikis I migrated to 2.0 (personal). but the work wiki used by other people still in 1.0.9 uses them
257 pages out of 93523
[14:24]
gac4101.0.9 ... that will be a painful upgrade eventually I suspect. [14:24]
Colasyup, it is on my TODO this month, as 1.0.9 do not work anymore in Debian stable [14:25]
Lavrit depends how much you have tailored - skins - etc. The topic content is not a big issue
I was nervous that my own view template edits would be a problem from 1.1.9 to 2.0 but that is not the case. Only issue I have seen was caused by FindElswherePlugin and I fixed that already.
I have still to test some of the more strange plugins on 2.0 that the software devs use. And I have an open issue with the MultiTopicSavePlugin which I know now how to work around I think.
But EditRowPlugin Should never have been in a released version of Foswiki IMHO. But I am not the RM any longer. I can just talk with one little voice
[14:25]
gac410:P [14:32]
LavrThe new NatEdit skin. Very user friendly. I was wondering. One of the view template changes I often do in subwebs with a dedicated application is to move the form from bottom to top because that is where all the info goes. Sometimes I even remove the topic text so you only see the form.
Is there a feature for NatEdit that puts the form on the default tab? And can you hide the topic tab?
[14:35]
gac410Just edit the form directly and the topic text tab is not rendered.
I don't know if there is any way to make that the default though.
[14:36]
Lavrwell. I can always just do a skin setting in WebPreference and disable it and have what I have today. But it could be nice to have a bit of both worlds. The tool bar in geek edit mode is really a nice feature [14:38]
gac410It's just a regular edit link, but with action=form url param [14:40]
Lavryes. But I am talking about what a regular user is met with when they view and when they click edit.
And when a regular user sees an empty topic they get confused.
[14:41]
***Rich_Morin has left [14:42]
gac410Right. I'm just suggesting that the templates for that web could be overridden to make form edit the default. [14:42]
LavrOh yes. Sure. I was just thinking if Micha had built in some features in the NatEdit to easily change the default or enable and disable tabs
Some pref setting
[14:43]
FlashDelhi! i am using foswiki 2.0 with LDAP plugin and everything is working fine so far. Now i got a question: if a user logs in he is automatically in the group "unkown", can i adjust that, so that if a new user logs in is added to a group WikiUserGroup? [14:45]
LavrI only use naked LDAP auth directly in the Apache config. So I have no mapping to groups. So I cannot help [14:46]
FlashDel=( [14:48]
LavrMichaelDaum would be the one to look for when he is around. Usually on working days at day time (Germany) [14:49]
........ (idle for 37mn)
jmk0well I'll be damned, I can at least do a git clone. Multi-step process to get it somewhere useful and not sure about pushing changes up, but that's something at least [15:26]
Lavrjmk0 I am behind a firewall here at Motorola Solutions and I can pull and push using https through the proxy
github supports push on https it seems
[15:30]
jmk0k [15:32]
Lavrgit config --global http.proxy proxyURL
that was all I needed
it took me a day to find out :-P
[15:32]
jmk0we're not using a proxy, too dangerous apparently :) dmz host :P [15:34]
Lavrthe proxy URL is in the format http://domain:portnumber [15:34]
jmk0so, when I follow the directions, I get $ perl -T pseudo-install.pl developer
Can't locate Error.pm in @INC (you may need to install the Error module) (@INC contains: /etc/perl blahblahblah
[15:34]
LavrIf the machine can pull webpages then it should work. [15:35]
jmk0yeah it seems to work
the git clone i mean
did I miss a step in setting up the pseudo install?
[15:35]
LavrIt seems you miss a CPAN lib [15:36]
jmk0same happens with the default option [15:36]
LavrYou need the CPAN lib Error
In Redhat-land it is in an RPM called perl-Error
[15:36]
jmk0i just use cpan directly... is there a list of all the dependencies? pseudo-install.pl gives messages about missing dependencies but they're all kind of interwoven with all the other messages [15:39]
LavrAll the errors where one Foswiki extension depends on another you can ignore. [15:40]
jmk0no tidy package for ubuntu :-P [15:42]
LavrIn RH land yum whatprovides "perl(Perl::Tidy)"
yum whatprovides splendid function
[15:43]
jmk0the perl module isn't the issue, the issue is that the perl module depends on a library that I have to build myself [15:44]
Lavrit searches online in your active repos and returns the name of the rpm that contains it.
That is why I install from rpms and not with CPAN whenever I can
It used to be a pain to find CPAN rpms for Redhat. There were 2-3 unofficial libs with a lot of conflicts luring
[15:44]
jmk0i don't use redhat [15:45]
LavrNow they are all in the "epel" repository
Debian based distros always had everything in the repositories. I would be very surprised if perltidy and Error are not there
[15:45]
jmk0they are not. [15:46]
Lavrhttps://packages.debian.org/search?keywords=perltidy [15:47]
jmk0weird, muon couldn't find it [15:48]
Lavrapt-get install perltidy should just work
I used to run a production server at home on a Ubuntu. But I returned to Centos. Ubuntu was too unstable.
[15:50]
jmk0I tried that but still needed to do "cpan HTML::Tidy" which is apparently a separate package [15:51]
gac410I have it installed here. Did a search for tidy. I have perltidy, libtidy-0.99-0 and libhtml-tidy-perl [15:52]
LavrAh. So Debian package the binary and the pure perl separately [15:52]
gac410HTML::Tidy and perltidy are separate things [15:52]
LavrYes. HTML Tidy is called perl-HTML-Tidy in RH RPM land [15:53]
jmk0muon is pretty crap, actually [15:55]
gac410dpkg -l *tidy* [15:56]
LavrTime to leave the office and go home and open a COLD BEER. May check in later. it is cool to use ZNC for IRC. When you see Lavr here it is my webserver at home. And I then connect to my webserver from any IRC client. it even plays back what was said here the past day or so.
highly recommended! CU
[15:56]
jmk0l8r [15:56]
gac410bye
jmk0: The list of dependencies for foswiki (not developer packages) is in Foswiki:System.SystemRequirements ... includes an apt-get that installs everything, including stuff you probably don't want ;)
[15:57]
FoswikiBothttp://foswiki.org/System.SystemRequirements [ SystemRequirements ] [15:58]
gac410Developers also need libdevel-symdump-perl probably some others too. [15:59]
jmk0if it saves me time it's worth it
still getting an error about missing mod_perl... I was able to get mod_perl2 installed, but can't find a mod_perl package... suggestions? there seem to be packages that claim to be wrappers for mod_perl, but not the module itself
the wrappers seem to be for apache 1... maybe it's a false dependency?
[16:00]
............ (idle for 56mn)
***ChanServ sets mode: +o Lynnwood [17:00]
..... (idle for 20mn)
jmk0I still can't get build.pl to work.... Unable to use RCSStore: ,pfv files were found in data or pub, which indicates this installation is already configured for PlainFileStore e.g. Search failed: Directory open of /var/www/foswiki/AutoSubPlugin/lib/Foswiki/Plugins/data failed. Check permissions.
1) the directory doesn't exist, it's not a permissions issue
2) why is it trying to open that directory anyway? wrong location, it should be /var/www/foswiki/AutoSubPlugin/data
3) the message about ,pfv files seems wrong given that it can't even open the directory
[17:20]
gac410jmk0: Dependency file says that it's optional dependency, only needed if you decide to configure apache for mod_perl [17:23]
jmk0message says: **** mod_perl is a required dependency, but it is not installed [17:24]
gac410hm. lib/Foswiki/Plugins/data ... something very strange going on there. And y, i noticed it the other day, that the checker is claiming it found a pfv if it can't open the directory.
is this message from pseudo-install?
The dependency file states: mod_perl,>=1.24,cpan,Required if you're using Apache 1.3 and plan to enable mod_perl
mod_perl2,>=2.0,cpan,Required if you're using Apache 2.x and plan to enable mod_perl
pseudo-install does some very cursory checking of dependencies. It doesn't use the core dependency code.
[17:24]
jmk0mod_perl message is from pseudo_install, yes [17:27]
gac410yeah. just ignore errors from pseudo-install.
It really needs to be rewritten someday. It's not something we "release" with foswiki, so it gets less effort
So quick questions... What exactly are you trying to do. Install using the master.zip download from github ??? or some other approach
Could you describe your steps, I'll try to recreate and figure out what's going on with the unusual paths.
What directory are you in when you get the error.... OH I know what's wrong.
[17:27]
jmk0What I've done is: install apache2 ubuntu package; git clone to our DMZ host which I copied to /var/www/foswiki on apache server, then pseudo_install developer [17:30]
gac410Your foswiki si not configured. [17:30]
jmk0then create_extension thing, then build.pl
si?
[17:30]
gac410is [17:30]
jmk0oh :)
that is likely, yeah
[17:30]
gac410you can get a config by cd to core and ./pseudo-install -A
That will give you a config that the tools can live with.
not web usable, but the paths, etc are set.
[17:31]
jmk0I could be wrong but I don't think that's mentioned in the "how to" topics :) [17:32]
gac410What is happening is without a LocalSite.cfg, when you run build.pl down in the extension, it ends up triggering bootstrap and it gets lost in that directory. [17:32]
jmk0wait there's a mention of "call configure" but it's not clear what that means
also I think i munged the apache config - set it up as a normal install rather than dev install
[17:32]
gac410hm not much different normal vs. dev apache... other than a path to the files.
Okay so pseudo-install -A will not make your setup usable by Apache. If you want it web usable, then do a conventional web configuration.
or use tools/configure -save
that will prompt you for the url related settings.
[17:34]
jmk0developer install won't be usable by apache? at all? [17:37]
gac410in Foswiki:Development.HowToStartExtensionDevelopmentInGit there is unfortunately a very cryptic statement. [17:37]
FoswikiBothttp://foswiki.org/Development.HowToStartExtensionDevelopmentInGit [ HowToStartExtensionDevelopmentInGit ] [17:37]
gac410Now call configure to make sure you have your new installation running (standard configuration should be enough - do not waste too much time on customizing your setup) before you go on with the next step. [17:37]
jmk0yeah i've been reading that [17:38]
gac410which is about all it says about making your config usable. Needs to be much bigger font. :(
And no... your developer install WILL be usable by apache. but only if you configure it that way.
[17:38]
jmk0yeah i saw the "call configure" thing but... does that mean run bin/configure? access //host/bin/configure? [17:38]
gac410pseudo-install -A builds a very basic config that is generally good for running unit tests, build.pl, etc.
But for web access, configure with bin/configure or tools/configure like any other web accessible foswiki.
The web config will generally work okay for the scripts. Though sometimes tests get confused by short urls and other site specific configurations
[17:39]
jmk0: I updated Foswiki:Development/HowToStartExtensionDevelopmentInGit some to add more details on configuring Foswiki ... sorry about that. [17:49]
FoswikiBothttp://foswiki.org/Development/HowToStartExtensionDevelopmentInGit [ HowToStartExtensionDevelopmentInGit ] [17:49]
jmk0build.pl seems to need FOSWIKI_HOME but that's not mentioned in Extensions.BuildContrib
I did get the script to work, though, so there's that at least :)
[17:52]
gac410Hm I'll add that one as well.
Foswiki:Development/BuildContribCookbook has more details on the environment ... but nobody ever reviewed / validated my edits. There was a LOT of stuff to fix during the git migration
[17:53]
FoswikiBothttp://foswiki.org/Development/BuildContribCookbook [ BuildContribCookbook ] [17:55]
jmk0"OBSOLETE INSTRUCTIONS" :D [18:00]
gac410y. I know. I ran out of gas updating documentation for github. :(
One more you should set btw: PERL5LIB="/var/www/foswiki/distro/BuildContrib/lib
So that perltidy runs from the same set of tidy rules.
[18:03]
GithubBot[distro] gac410 pushed 1 new commit to master: http://git.io/vOpn8
distro/master 6dbfd9c George Clark: Item13504: Update BuildContrib docs
[18:08]
***GithubBot has left [18:08]
FoswikiBothttp://foswiki.org/Tasks/Item13504 [ Item13504: Documentation changes Foswiki 2.0.x / 2.1.0 ] [18:08]
jmk0I've been using Support.ApacheConfigGenerator and found a difference between the config that was in the VM image and the newly generated config - the FilesMatch rule for restricting access to configure is missing from the new config... is that expected?
I think the config generator is ignoring the confighost/configip settings - used to be allowconf apparently
[18:16]
gac410If you specify Foswiki 2.0, then bin/configure is not treated with special configuraiton [18:18]
jmk0ok.. is access restricted in some other way? [18:18]
gac410And vm image, it depends on when you downloaded it. The new image for Foswiki 2.0 should not need bin/configure controsl [18:18]
jmk0my VM is 1.1.9 [18:18]
gac410yes. 2.0 protects configure using special settings, or defaults to AdminGroup membership [18:19]
jmk0k [18:19]
still can't get apache to do foswiki.... always just get a directory listing. Might have fcgi misconfigured or not installed. libfcgi-perl package is installed at least [18:24]
gac410don't need fcgi. I wouldn't use it for development.
ubuntu? Did you a2enmod cgid
I think that's the magic incantation for ubuntu apache to run perl
[18:25]
jmk0still not working, but would you recommend using CGI or mod_perl?
for dev
[18:26]
gac410(quite annoying that the same web server on the same OS would have so many different incantations ) [18:26]
jmk0yep. [18:26]
gac410plain old cgi, unless you intend to actually test on fastcgi or mod_perl [18:27]
jmk0k [18:27]
gac410If you get perl scripts then usually it's apache configuration. I assume you restarted apache after a2enmod? [18:27]
jmk0yeah. not getting the perl scripts, just directory listings
also have updated config to use plain old cgi :)
[18:28]
gac410just directory listings? hm that should not be possible if apache config generator config is active. [18:28]
jmk0ok I got to it by going to /foswiki/core [18:28]
gac410Okay. So the config isn't quite right then hm Probalby alias and home directory. [18:29]
jmk0ew. did /foswiki/core/bin/configure and got perl script text.
the /foswiki/core page had a bunch of broken links to boot-strapping docs
[18:30]
gac410Y. lots of links hoping that one will work. :)
Your DocumentRoot should be pointing to /var/www/the/path/to/core and ScriptAlias /bin point to /var/www/the/path/to/core/bin
[18:31]
jmk0DocumentRoot "/var/www/foswiki/core" ScriptAlias /bin "/var/www/foswiki/core/bin"
Alias / "/var/www/foswiki/core/bin/view/"
[18:33]
gac410so you shuld be able to browse to yoursite.com/bin/view and either get a perl script, or a foswiki homepage [18:34]
jmk0perl script [18:34]
gac410okay so if it's a perlscript, then perl cgi is not active.
something external to the foswiki configuration
[18:35]
jmk0should it be cgi or cgid or both?
cgid.conf and cgid.load are in /etc/apache2/mods-enabled
[18:36]
gac410it depends :( cgid is needed for mpm - threaded handling. cgi for non-threaded. I think [18:37]
jmk0ok i tried a2enmod cgi and it said "mpm seems to be threaded. selecting cgid" so you're right and they're apparently mutually exclusive [18:38]
gac410It's been a while since I set up apache. I think that's all I had to do.
And of course restart apache
[18:39]
jmk0not yet but the process is defined and it's just a matter of ... jumping through the hoops, as you say
I don't anticipate any roadblocks
[18:41]
still working on it but one thing I found was that the rewrite module wasn't not enabled by default [18:55]
gac410yeah need that for short urls. [18:55]
jmk0the apache config was using IncludeOptional for configs, which looks like it might be ignoring configuration errors like that. I'm now using Include and getting fatal errors like that; they weren't showing up before
now it's breaking on php_admin_flag
but I gotta go to a meeting so i'll have to put this on pause for a bit.
[18:56]
gac410yeah. Unless your site uses php you should have disabled that in apache config generator [18:56]
.... (idle for 19mn)
foswiki_irc7GuilainC? Are you back?
I'm still working on installing Foswiki. Ran the Apache configurator, put it in the foswiki.conf file
as you suggested in the sandbox file
when I run apache2ctl configtest and get an error "Invalid command 'RewriteEngine'"
restarting apache complains likewise (not really a surprise.)
[19:15]
gac410a2enmod mod_rewrite
er. sorry a2enmod rewrite
[19:19]
foswiki_irc7so a2enmod rewrite will fix the file? Or fix the environment? [19:22]
gac410the environment. It enables the apache mod_rewrite module. [19:22]
foswiki_irc7ok [19:22]
gac410need to sudo or be root to enable it. [19:22]
foswiki_irc7it worked!
I hope too understand what I'm actually doing some day... :)
ok, now I see the Welcome to Foswiki page. What is this telling me? Something is not quite right and it is displaying different possibilities?
[19:23]
gac410Okay that's a starter page if not set up for a default landing page. Try going to bin/view url [19:27]
foswiki_irc7i get "software error" above a message on /bin/view. same thing on "/foswiki" and "/foswiki/bin/view [19:30]
gac410What's the error? [19:30]
foswiki_irc7Can't locate Error.pm in @INC (you may need to install the Error module) (@INC contains: /var/www/html/foswiki/lib /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl . /var/www/html/foswiki/lib/CPAN/lib) at /var/www/html/foswiki/lib/Foswiki.pm line 48. at /var/www/html/foswiki/lib/Foswiki.pm line 48. [19:30]
gac410You might need to check your Apache logs. Did you install the dependencies listed in Foswiki:System.SystemRequirements? Nope, I guess not ;) [19:31]
FoswikiBothttp://foswiki.org/System.SystemRequirements? [ SystemRequirements ] [19:31]
foswiki_irc7The version of PERL should be good: it's a recent build [19:32]
gac410Yeay. You need to install the cpan modules listed in SystemRequirements. [19:33]
foswiki_irc7it's perl 5.18.2
running apt-get install apache2 rcs
[19:35]
gac410That's fine. But you need to install the dependencies. Are you on a ubuntu / debian system? [19:37]
foswiki_irc7yes. [19:37]
gac410So on the SystemRequirements page is a list of perl packages for Ubuntu / debian. You can omit the "DBI" and "DBD" packages. but you need the "required" ones [19:38]
foswiki_irc7there is an apt string at the bottom of that table. running it now [19:39]
gac410Yeah Though that pulls in a bunch of stuff you really don't need. I need to split up that table :( [19:39]
foswiki_irc7I have a page now displaying the headline (in the middle) "Welcome to the Main web" Is that it? [19:40]
gac410Yes. From there, click the link to get to configure to save your configuration.
Review any errors / warnings in the configuration then click save
[19:41]
foswiki_irc7the configure link goes nowhere...
I guess making an admin account is important...
that goes nowhere as well
[19:42]
gac410No, configure link should work
Someting else is wrong.
What do you mean by "goes nowhere"
[19:44]
foswiki_irc7it was looking for http://192.168.111.245/bin/configure?VIEWPATH= I edited the url to go to http://192.168.111.245/foswiki/bin/configure?VIEWPATH=
I've clicked "SAVE" but I don't see it doing anything
I've entered my own admin id, but it appears to be moving nowhere...
[19:49]
gac410If you are editing URLs, then something is wrong. [19:51]
foswiki_irc7ok
is there a way to redefine the root location?
[19:51]
gac410Depends on what you entered into the ApacheConfigGenerator
or your manually edited apache config
[19:53]
foswiki_irc7I reran apache config generator after renaming the root from Foswiki.2.0.1 to foswiki [19:53]
gac410What do you want your URL to look like? for your default homepage? [19:54]
foswiki_irc7and it was in place when I restarted apache [19:54]
gac410There are two aspects of the configuration. 1) File system paths. That's Foswiki-2.0.1, ... etc. and 2) URL paths, That's what you enter into the browser [19:55]
foswiki_irc7if the url was http://192.168.111.245/foswiki, that would be good.
I don't have a Domain name server to re-direct the browser to something simpler
[19:55]
gac410All DNS does is replace the 192.168.111.245 part. redirect is part of apache, not dns [19:56]
foswiki_irc7ok [19:56]
gac410So you want default page to be http://192.168.111.245/foswiki and edit would be 192.168.111.245/foswiki/bin/edit for ex. [19:56]
foswiki_irc7so I manually edit the foswiki.conf file? [19:57]
gac410No. Several things to change. Better to put what you want into the ApacheConfigGenerator.
So "URL Path" would be set to /foswiki which is the default. And Short URL's enabled, (meaning you don't need the bin/view to view
you can at least use apacheconfiggen to see what changes, and use that for your edits if you don't want to replace the whole file.
Oh... and in the ApacheConfigGenerator, leave the hostname and port blank, since you are not using a hostname.
[19:57]
foswiki_irc7The url is foswiki... file system paths is /var/www/html/foswiki... Symbolic links to pub/ or bin/?
runtime engine to CGI?
new file gen'd and placed in the foswiki.conf file
[20:02]
gac410yes, runtime cgi, and you probably don't need symbolic links [20:06]
foswiki_irc7Tested ok and apache restarted [20:07]
gac410then after you restart apache, browse to http://19.168.111.245/foswiki. You should get the Welcome to the Main web
And click to the configure link should hopefuly take you to http://192.168.111.245/foswiki/bin/configure?VIEWPATH=/foswiki
[20:07]
foswiki_irc7the one page did not refresh to something as you described. I used the link you showed and it has useful things displayed. I guess default settings are the best for now? [20:13]
gac410Y. defaults should be good
If http://192.168.111.245/foswiki didn't take to the Main/WebHome page then something still isn't right. hm... I'll have to build a server without vhosts and try this Can't easily test this on my current system.
[20:16]
foswiki_irc7I've saved the config file out of configuration pages and popped the url http://192.168.111.245/foswiki/ into an empty tab and it works.
SO I should make some users?
[20:31]
Thank you GAC410. It is working. Now I need to get moving on my content. But I need to get the kids for the weekend. thank you for your help! [20:41]
.............................. (idle for 2h27mn)
gac410Hey GuilainC_away - I updated ApacheConfigGenerator to eliminate all the PHP version stuff, it's just a checkbox now. And uses IfModule statements to pick the right statement.
That should be simpler
And safer too
Also added an ApacheConfigGeneratorHelp that attempts to explain the Short URL stuff.
[23:08]

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