This question about Installation of Foswiki: Answered

Apache won't parse bin/configure

Hi

I'm trying to install foswiki 1.0.9 on a fresh slackware 13 install with apache2.
I have gone through the basic install instructions couple times making sure all was well.
Did follow the permissions, used the apache config generator, even installed mod_perl to try troubleshoot this, without results.

Apache won't parse the configure script.

I've already seen the Question363, which is my problem, but I do have those lines in my foswiki.conf file.
I'm kind out of resources right now.
Any help/pointers greatly appreciated.

Thanks

PS when setting the permissions could not find .htaccess nor LocalSite.cfg, but they are not in the tar either...

-- MakimotoMarakatti - 04 Feb 2010

Don't try to use mod_perl at this stage. This will only make it more complicated. Please post your Apache config and any errors that are shown in Apache's error.log.

-- MartinKaufmann - 04 Feb 2010

Thanks for looking into this. I have attached /etc/httpd/httpd.conf.

About the mod_perl, it is installed:

[Fri Feb 05 06:35:42 2010] [notice] Apache/2.2.14 (Unix) DAV/2 PHP/5.2.12 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations

but I thought that unless you specifically call the module, you can safely use CGI. Should I unload the module??

Thanks Again

MakimotoMarakatti - 05 Feb 2010

hi again, just tried again with the mod_perl unloaded, and it doesn't make any difference...

-- -- MakimotoMarakatti - 05 Feb 2010

You might have to give us more information about your setup. Could you post the file /etc/httpd/foswiki_cgi_httpd.conf as well as relevant parts of Apache's error.log?

-- MartinKaufmann - 05 Feb 2010

Hi, sorry I should have thought of that earlier. This thing is driving me up the walls smile The foswiki conf file is now attached.

Anyway, about the errors, there's none, when I restart I get:

[Fri Feb 05 09:44:37 2010] [notice] SIGHUP received. Attempting to restart
[Fri Feb 05 09:44:37 2010] [notice] Digest: generating secret for digest authentication ...
[Fri Feb 05 09:44:37 2010] [notice] Digest: done
[Fri Feb 05 09:44:38 2010] [notice] Apache/2.2.14 (Unix) DAV/2 PHP/5.2.12 configured -- resuming normal operations

As you can see, I unloaded mod_perl from earlier.

So my problem is basically I get the source of bin/configure instead of the output of the script; but no errors.

Thanks for your time

-- MakimotoMarakatti - 05 Feb 2010

Hi I received a notification that the question status has been changed after I had actually posted the file requested.

Anything else I can provide?

Thanks

-- MakimotoMarakatti - 05 Feb 2010

Just a few random ideas/questions:
  • You don't get any errors in Apache's error.log when you try to load configure? Nothing after resuming normal operations?
  • What does which perl tell you on your system (on the shell/command line)?
  • In your config, you've got a lot of RedirectRules which are not from the original ApacheConfigGenerator. Just try a clean config to start with. Ideally, with short URLs disabled.
  • What are the permissions and ownership of your bin/ directory as well as the configure script.
  • Which Foswiki package do you use?
-- MartinKaufmann - 05 Feb 2010

Just for the sake of clarity, I'm going to answer these with the question quoted:

# You don't get any errors in Apache's error.log when you try to load configure? Nothing after resuming normal operations?

Nope. Just the source on screen. No errors because nothing happens. Up to here it's just logic I guess.

# What does which perl tell you on your system (on the shell/command line)?

root@blackbox:/etc/httpd# /usr/bin/perl -v

This is perl, v5.10.0 built for i486-linux-thread-multi

# In your config, you've got a lot of RedirectRules which are not from the original ApacheConfigGenerator. Just try a clean config to start with. Ideally, with short URLs disabled.

Those were on by default, trying with a cleaner one then:
no short urls
no blocking .html? attchs
no blocking access to trash
no attchs access
no blocks from spiders

that put in place, apache error log shows:
[Fri Feb 05 20:17:49 2010] [notice] SIGHUP received. Attempting to restart
[Fri Feb 05 20:17:49 2010] [notice] Digest: generating secret for digest authentication ...
[Fri Feb 05 20:17:49 2010] [notice] Digest: done
[Fri Feb 05 20:17:50 2010] [notice] Apache/2.2.14 (Unix) DAV/2 PHP/5.2.12 configured -- resuming normal operations

Browser still spits perl code.

# What are the permissions and ownership of your bin/ directory as well as the configure script.

root@blackbox:/var/www/htdocs/wiki# ll
.
.
drwxr-xr-x 3 apache apache 4096 2010-02-04 14:54 bin/
.
.
root@blackbox:/var/www/htdocs/wiki# cd bin
root@blackbox:/var/www/htdocs/wiki/bin# ll configure
-r-xr-xr-x 1 apache apache 26525 2010-02-04 14:48 configure*

# Which Foswiki package do you use?

downloaded the tarball.

Just to set some background here, lets go through the requirements:

Perl 5.6.1 or higher (5.8.4 or higher is recommended)
root@blackbox:/# perl -v
This is perl, v5.10.0 built for i486-linux-thread-multi

RCS 5.7 or higher (including GNU diff)
root@blackbox:/# rcs -V
RCS version 5.7

GNU diff 2.7
root@blackbox:/# diff -v
diff (GNU diffutils) 2.8.1

GNU patch
root@blackbox:/# patch -v
patch 2.5.4

GNU fgrep, egrep
root@blackbox:/# grep -V
GNU grep 2.5.4

Unix: cron
root@blackbox:/# ps -ef | grep cron
root 3388 1 0 Feb04 ? 00:00:00 /usr/sbin/crond -l10

Perl dependencies:

root@blackbox:/# perl -e 'use FileHandle; print $FileHandle::VERSION."\n"'
2.01

Of the *required* Libs, only 3 of them are *not* there, but at this stage I don't think it has anything to do with apache not parsing the perl in the first place

Apache::Htpasswd no
Config no
Errorki no

Archive::Tar 1.38
B::Deparse 0.83
CGI 3.29
Carp 1.08
Cwd 3.2501
Data::Dumper 2.121_14
Digest::MD5 2.36_01
Exporter 5.62
File::Basename 2.76
File::Glob 1.06
File::Path 2.04
File::Spec 3.2501
File::Temp 0.18
FileHandle 2.01
HTML::Entities 3.64
HTML::Parser 3.64
IO::File 1.14
MIME::Base64 3.07_01
POSIX 1.13
Socket 1.80

Sorry if I had been little sparse before, but I just imagined I would be given a canned and proven response as I saw that this question was the most asked on IRC.

Any other thing I could provide, I will gladly do.

Of course I'm investigating on my side as well. Got a couple of links that show some promise, but they will have to wait until tomorrow, because I need to go bed today.

Thank you so much for the effort. Much appreciated.

-- MakimotoMarakatti - 05 Feb 2010

Sorry, I've ran out of ideas. I set the status back to Asked hoping that someone else will look into your problem. You could also try to ask your question on IRC referring back to this topic.

-- MartinKaufmann - 08 Feb 2010

Well, I've ran out of ideas too. And sincerely am a little tired of troubleshooting the obvious. Tried to clear my head by doing a install of gregarious and it's giving me a host of problems with php. I did install slackware trying to get a clean and somewhat secure base install from where to improve. But seeing this much problems in these quite straightforward installs with pain I've decided to part with slackware (I do love slack). Trying a freebsd and hoping to get a little bit more Dharma there.

Thank you for all the time and effort you put into this. Really appreciated.

Question can set to solved/answered or simply deleted.

-- MakimotoMarakatti - 08 Feb 2010

I know now why apache wouldn't parse perl btw.

Got a router setup with redirection through ports. And would put those ports in the foswiki config. Of course that does not work because the host still uses port 80. Apache listens at the usual place...

Just thought to put it here so it may be useful to someone.

-- MakimotoMarakatti - 11 Feb 2010

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 1.0.9
Status Answered
Topic revision: r11 - 11 Feb 2010, MakimotoMarakatti - This page was cached on 09 Jan 2018 - 08:43.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License