#foswiki 2016-10-06,Thu

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

WhoWhatWhen
foswiki_irc6Hi, I am having trouble with installing Foswiki on my centos 7 system
I believe I have all of the required packages and have done all of the configuration steps. However, when I got the the bootrap step, regardless of what I did, none of the link of the first page works at all. I am just wondering if anybody could give me some suggestion! I really appreciate it!
[01:29]
gac410hi foswiki_irc6 ... how did you generate your apache configuration ... or are you using a different web server? [01:33]
foswiki_irc6Hi, thank you! I use the first method, using the webpage to generate the apache configuration [01:34]
gac410Okay ... so ApacheConfigGenerator. What did you enter for "URL Path" Default is /foswiki, but most just change it to / for shortest URLs
If you look at the first couple of lines in the generated config see: # Generated at https:.... line. That will show you all the answers you gave.
[01:35]
foswiki_irc6yes, I used ApacheConfigGenerator. I put /foswiki for path because i already have a website running on my HomeDirectory, I want foswiki to run as myhost.com/foswiki [01:38]
gac410Looking for value for "pathurl=..."
okay. good. So if you go to "yoursite.com/foswiki/bin/view" what do you get?
[01:38]
foswiki_irc6it seems to give me the content of the view page, which seems to be perl language [01:40]
gac410Ah... okay. So your web server doesn't have cgi enabled. [01:40]
foswiki_irc6I was wondering if I missed any of the required package [01:41]
gac410hm I'm not sure what to do on centos. On debian/ubuntu, you'd enter "a2enmod cgid" but I'm pretty sure that is not applicable on centos. [01:41]
foswiki_irc6I don't know much at all about computer so I really appreciate all your help [01:41]
gac410Although. Did you reload apache after building the config file. [01:42]
foswiki_irc6on centos I tried "yum install ..."
hold on, you say enable, right? Maybe I have it installed but not enabled
I did tried to reload the apache everytime I change the conf. file
[01:42]
gac410okay good. Another centos question - do you have "selinux" enabled ... that can block execution of scripts.
I found this link with enabling CGI on centos: http://www.server-world.info/en/note?os=CentOS_7&p=httpd&f=2
Unfortunately I've never used centos.
[01:43]
foswiki_irc6No, I don't have selinux enable [01:45]
gac410okay good, That makes thing really difficult when enabled. [01:45]
foswiki_irc6the hosting server that we use did not have selinux install so I left it uninstalled. On our test server with selinux enable, it gave us some trouble for other software we were running too. Let me try to enable cig. Thank you very much
I will get back really soon
[01:46]
gac410Anyway, if you are seeing "Perl code" either your apache config is not right (didn't execute the set handler for cgi scripts) that's unlikely having used ApacheConfigGenerator
Or apache doesn't understand cgi scripts. That's an apache module, Some systems make it optional.
One of our developers is a big centos fan, but he's not around.
[01:46]
.... (idle for 17mn)
foswiki_irc6hi @gac410, I tried the link that you sent. And it seems to enable CGI because I can see the test page
I also tried to do it in here and the test page work great too: http://serverfault.com/questions/752272/run-perl-cgi-scripts-on-centos-7-with-apache-httpd
[02:05]
gac410okay. So other possibility... how did you actually install the generated config from ApacheConfigGenerator. [02:06]
foswiki_irc6However, mysite.com/foswiki/bin/view still show perl script. If i go to mysite.com/foswiki the webpage load but none of the links work at all
So i generated foswiki.conf in /etc/httpd/conf.d/ and copy the content of the autogenrate conf file in there
hold on, let me try 1 more thing, it seems that I have 4 different cgi mods and only 1 is enables. Let me try to enable all of them
[02:06]
gac410Named it 'foswiki.conf" ? (I think the .conf suffix is required)
4 different CGI modules? What are they? You shoulid only need mod_cgi or mod_cgid
If you are still getting perl code, then for some reason the Options +ExecCGI and SetHandler cgi-script are not being honored/recognzed in the config
[02:08]
foswiki_irc6yes, I named it "foswiki.conf"
the 4 are: 2 that you listed and mod_proxy_fcgi and mod_proxy_scgi
[02:13]
gac410you don't need the proxy versions. And mod_cgi vs. mod_cgid ... I think it depends upon other apache config which one is needed. On my ubuntu systems if I enable mod_-cgi, it complains that it's ignoring it and will enable mod_cgid [02:15]
foswiki_irc6i see, yeah, I enable 4 for and it did change anything
"it didn't change anything", I meant
[02:16]
gac410mod_cgid is used in multithreaded MPM is enabled. mod_cgi for non-multi-threaded. Anyway, if you are still getting perl code, then either the foswiki.conf is not being read, or it's not got the right path in it. [02:17]
foswiki_irc6ok, let me try messing with the conf a bit with the url path [02:18]
i tried with url path as "/" instaed of "/foswiki" and it did not help either [02:23]
gac410I'm really not sure. Can you please pastebin http://pastebin.com/ your foswiki apache configuration? (foswiki.conf file) Mark it for 1 hour expiration and I'll take a quick look at it. [02:25]
foswiki_irc6I have never used pastebin before. I did upload onto pastebin and set the experation to 1 h. Do I need to copy you an url link somwthing? [02:29]
gac410Yes just paste the url showing your paste [02:30]
foswiki_irc6http://pastebin.com/WV8cjDqi [02:30]
gac410okay looking [02:30]
foswiki_irc6Thank you very much for helping me. I really apprecaite you taking your time to help me out! [02:30]
gac410Never mind.... the url is public. [02:34]
foswiki_irc6yeah, it said not found
Not Found The requested URL /bin/view was not found on this server.
maybe I don't have enough dependancies? perl dependancies?
[02:34]
gac410right. I think your ScriptAlias needs to be /foswiki/bin and the Alias statements shoulid have /foswiki in there
It's not perl dependencies. It isn't even executing
[02:37]
er. I can't type "side it" should be "site is" [02:42]
foswiki_irc6I tried to add this "ScriptAlias /foswiki/bin "/var/www/html/danielromogroup.com/foswiki/bin" and "Alias /foswiki "/var/www/html/danielromogroup.com/foswiki"" in the conf file but that did not do it either
maybe I should not put the hostname in the conf file? How about ports? I have ssl enable for our site but not all pages are required
[02:43]
gac410I'm not really sure. Where is the other stuff on your site served from. that same vhost, or elsewhere in the apache configuraiton.
I'm guessing that you might not want the vhost statemnt or ports, etc.
[02:44]
foswiki_irc6so, if I tried leave the hostname blank, my httpd (apache) won't start
so yes, I have 2 other softwares (Open Enventory, Chemiscal inventory; and Booked, scheduling program) also served from the same vhost
[02:47]
gac410rerun the apache config but don't put in the hostname or port. That will completely omit the <virtualhost> configuraiton.
an apache "virtual host" is a very specific thing.... it causes apache to match the hostname with a config. ie wiki.foo.com booking.foo.com , foswiki.foo.com
[02:48]
foswiki_irc6yeah, if I leave the hostname blank, my apache won't start [02:49]
gac410you can't leave it blank. The lines starting with <VirtualHost ... down through serveralias, and probably all the SSL stuff too all needs to be eliminated.
not just left blank.
[02:50]
foswiki_irc6oh, I meant i use danielromogroup.com for the main webpage and then danielromogroup.com/oe for Open Enventory and then danielromogroup.com/booked for Booked Scheduling [02:51]
gac410right. Those are not virtual hosts. "danielromogroup.com" is a hostname. /oe /booked ... etc are all paths. but not hosts.
they are not in dns. not part of a host / domain name.
Best to go back to the ApacheConfigGenerator. do NOT put in the hostname or port. And make sure the ScriptUrlPath includes /foswiki.
[02:51]
foswiki_irc6Sorry, I basically learned these thing from the internet so I don't really know much, I hope i don't waste too much of your time [02:52]
gac410no problem. Just watching tv, waiting for news and bedtime. Almost 11pm here. [02:53]
foswiki_irc6ok, let me try again. Last time I said I left the hostname blank, I meant I used the ApacheConfGenerator
let me try it again though
[02:53]
gac410Oh... hm If apache is not starting then we need to look at your apache error log
Basically on your config. Line 6-38 should be eliminated. No SSL, no virtual host. All of that is configured elsewhere on your server
[02:54]
foswiki_irc6ok, I used the automactically generated conf with no hostname and I couldn't start apache. Here is the error log: "[Wed Oct 05 22:55:07.591597 2016] [mpm_prefork:notice] [pid 20305] AH00170: caught SIGWINCH, shutting down gracefully [Wed Oct 05 22:55:08.667641 2016] [suexec:notice] [pid 20561] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Oct 05 22:55:08.668726 2016] [ssl:warn] [pid 20561] AH01909: RSA certi
you might be right that the suEXEC mechanism is enable
[02:58]
gac410Nope... that's something different. That's not selinux
Could you pastebin those log messages ... got chopped off. No error shown
suexec just says that cgi scripts might be run as a differen user ... if the "SuexecUserGroup statement is in your configuratino.
Oh and if suexec is actually active, it enforces lots of security restrictions on the cgi scripts Can't be symlinks, can't be group or world writable.
Not a big deal though. I run suexec all the time here.
[02:58]
foswiki_irc6this is the error log when I have SSL enable: http://pastebin.com/j8SeB71g
However, I turned off the ssl enable in the AutoConfGenerator with blank hostname and apache works now. I can get on to danielromogroup.com/foswiki but it does seem to have an issue. COuld you have a look at the ppage please?
[03:04]
gac410Your scriptalias and aliases are still wrong.
But the perl is runinig. Can you please pastebin your latest foswiki.conf?
[03:07]
foswiki_irc6here it is: http://pastebin.com/p47hMxCs [03:08]
gac410Okay..... try this URL https://danielromogroup.com/foswiki/bin/view and "shift-reload" it
to clear the cache
And I have to say ... drats... I think we have a bug in short URL bootstrap, because https://..../foswiki should also be working but we are guessing the wrong pub path.
[03:10]
foswiki_irc6Ah ha, I tried to clear the cache earlier but it did not appeart correctly
anyway, I "shift-reload" and it looks good now. I guess I should go on with the installation according to the installation guide?
perhaps enabling ssl did not help in my case either. When I turned it off, the apache can restart just fine
[03:12]
gac410Right. Our docs need to be clearer. the SSL switch is only needed if your server is not already set up for SSL. So it was duplicating configuration.
Basically when adding /foswiki/... to an existing server all you are configuring are the paths.
The more I think about it, the issue with yoursite/foswiki not working (the links for all the CSS and Graphics are wrong) ... is probably fixed in the next release.
[03:14]
foswiki_irc6I see... [03:16]
gac410Anyway, once you save the configuration you should be on your way. [03:17]
foswiki_irc6I spent a couple hours last night and I could not get pass it. Thank you so much for your help! [03:17]
gac410yw. [03:17]
foswiki_irc6I really appreciate your help. I thought I have to give up already
had* to
[03:17]
gac410Apache can be a bit challenging. [03:18]
***ChanServ sets mode: +o Lynnwood [03:32]
gac410 has left [03:37]
.................................. (idle for 2h45mn)
ChanServ sets mode: +o MichaelDaum [06:22]
............. (idle for 1h4mn)
ChanServ sets mode: +o CDot [07:26]
.......................................................................... (idle for 6h9mn)
ChanServ sets mode: +o MichaelDaum
ChanServ sets mode: +o gac410
[13:35]
.... (idle for 18mn)
jmk0MichaelDaum, what would publishing my plugins on foswiki.org entail exactly? (re your comment on Item14196) [13:56]
FoswikiBothttps://foswiki.org/Tasks/Item14196 [ Item14196: add sponsor-requested readme file ] [13:56]
gac410jmk0: to publish on foswiki.org, you use "BuildContrib to build the tar/zip files and _installer. And then ask it to upload to the extensions web. [13:57]
jmk0ok [13:58]
gac410cd foswiki/distro/YourPlugin/lib/Foswiki/Plugins/YourPlugin then perl build.pl release and perl build.pl upload
The "upload" will create the Extensions web topic and attach the tar/zip etc. files.
[13:58]
jmk0so I'd have to do this from a foswiki install if for no other reason than to get the build.pl script and its dependencies. That's doable. :-0 [14:00]
gac410yeah. The flow kinda assumes you've used BuildContrib in a git checkout ... to test extensions before upload of course :D [14:01]
jmk0yeah, a lot of that is tricky because of the way our network is set up... I have no direct internet access, for example, and the host we do our web browsing on is completely disposable so anything I put on it can disappear at any time [14:02]
gac410Ah... yeah that makes it tricky. I'll do a quick pseudo-install of one of your exenstion and see if the build / release runs cleanly. [14:03]
jmk0... but still doable [14:03]
gac410build.pl release created the package files cleanly. But I noticed your README is not picked up. And probably must NOT be added to the MANIFEST. [14:06]
jmk0yeah i'm not bothered by that *cough* [14:06]
gac410At least in that location. It would end up in the root of the install, and each extension README would overwrite the other
Probably the cleanest thing to do is to put that paragraph into the System/YourPlugin.txt file ... leave the README for github purposes though
The boilerplate System .txt file has a place for attributions iirc.
[14:06]
......... (idle for 40mn)
It seems we need another type of Meta setting. You can put settings inside a %STARTSECTION{type="templateonly"}% but there is no way I can find to do the equivalent with meta settings. [14:48]
eg. WebTopicEditTemplate needs to be usable by anyone who can create a topic, even if the System web is locked down.
So adding a ALLOWTOPICVIEW = * as a Meta setting copies it into every new topic. So it has to be inside a templateonly section.
[14:53]
***SvenDowideit has quit IRC (Ping timeout: 265 seconds) [14:55]
........ (idle for 37mn)
ChanServ sets mode: +o SvenDowideit [15:32]
................... (idle for 1h32mn)
jmk0gac410 are you responsible for the foswiki vm image? I've spent a fair bit of time working with hashicorp's tools for managing VMs so I was curious [17:04]
gac410Yeah I've been updating it for a while now, [17:04]
jmk0mostly curious whether you used a manual process or scripted :) [17:05]
gac410Pretty much brute force. nothing scripted, [17:05]
jmk0well i can't promise anything but scripting that process has been something in the back of my mind for a while now [17:05]
gac410I just boot it, do an apt-get update / upgrade, install a new foswiki manually, then compress the disk and save a new versino.
JulianLevens is working on a fully automated process using vagrant. Not sure how that applies to VMs though,
[17:06]
jmk0ah, yes, vagrant is part of the hashicorp tool chain
building vagrant images typically involves using packer to make a VM either with virtualbox or vmware or both, and then converting that into a vagrant image
sounds like it's already being worked on then
[17:06]
gac410The only hard part for the manual updates is compressing the disk image. I work only with qemu, so I convert the disk images to a qcow2 image, boot it and cat /dev/zero to /wasteofspace, to fill all freespace with zeros, rm /wasteofspace [17:08]
jmk0vagrant + atlas has the advantage of being able to start from an already installed OS [17:08]
gac410and then convert the qcow2 image back to the vmdk [17:08]
jmk0yeah when i've built vagrant images, I've done the same [17:08]
gac410hm I do have a script which resets the foswiki install back to pristine. Removes work & log files, etc [17:09]
jmk0actually now that i think about it, there's no reason you couldn't post a foswiki vagrant image on atlas, making it far easier for people to stand up a vm
e.g. "vagrant init foswiki/v212" "vagrant up" "vagrant ssh" and you're in
[17:09]
gac410gac410 knows very little about vagrant, and never heard of atlas. I just brute force the vmdk images so that qemu, vmware and virtualbox can all boot it. [17:10]
jmk0that's the user side of course ;-)
yeah vagrant and packer and atlas simplify a lot of that
[17:10]
gac410Though someone reported issues booting on virtualbox, but I don't have that installed to test it. [17:11]
jmk0i haven't used the latest vm image so I don't know... I used an earlier one (1+yr old) when I developed my plugins, and it worked fine in virtual box [17:12]
gac410We only release a couple of foswiki's a year, It probably takes me only an hour or two to refresh the VM.
Foswiki:Support.Question1828 - re: How to run Virtual Machine Image on VirtualBox - - Asked (Main.AttilaHorvath)
[17:12]
FoswikiBothttps://foswiki.org/Support.Question1828 [ re: How to run Virtual Machine Image on VirtualBox - ] [17:12]
jmk0don't think it's an age issue, i'm running 4.3.36 [17:13]
gac410Getting the network stuff going can be a challenge. And latest systemd / udev made it harder with unusual interface names. [17:13]
jmk0dunno how to fix that with ubuntu, unfortunately, but I've done so with kickstart and rhel7
actually, hang on
that was a initrd option now that i think about it - it should work for any distro
[17:14]
gac410I did get it working fine on both qemu and vmware.
But that was many months ago and I have no recollection about what I did :D
[17:15]
jmk0that's what makes automation so appealing ;-) [17:16]
gac410Y, but once done, I never have to do it again. (At least I hope not) [17:17]
jmk0initrd options: net.ifnames=0 biosdevname=0 [17:18]
gac410I suppose I ought to install virtualbox and try it but just can't get the energy [17:18]
jmk0:D [17:18]
.............................................................................. (idle for 6h28mn)
***ChanServ sets mode: +o Lynnwood [23:46]

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