This question about Installation of Foswiki: Asked
installation on centos8
I am trying to install Foswiki on Centos8 and am having a little difficulty resolving the perl dependencies. I've gone through the foswiki page on resolving perl dependencies, and that was enough to sort out most everything.
But there are two dependencies I still can't seem to work out:
... CGI::Session: Can't locate CGI/Session.pm in @INC
... File::Copy::Recursive: Can't locate File/Copy/Recursive.pm in @INC
The packages perl-CGI-Session and perl-File-Copy-Recursive seem to have been removed in Centos8. Have these been replaced with something else?
-- JamesStrother - 30 Apr 2020
I feel your pain. I tried it on RHEL and I do not recommend. I moved to docker timlegge/docker-foswiki see
https://blog.foswiki.org/Blog/DockerFoswikiAndSolr
--
TimothyLegge - 30 Apr 2020
Another option is alpine linux as all perl modules are available as native packages
--
TimothyLegge - 30 Apr 2020
At least I'm not alone in having difficulty with it!
I spent a little time on it and I currently have it up and running. It required installing the following packages via a combination of dnf and cpan (not entirely sure I got the order right).
> dnf install perl-Email-Address-XS
> perl -MCPAN -e shell
install CGI:Session
install File:Copy:Recursive
install Email::Address
install HTML::Tree
install Email::MIME
install Apache::Test
install
ExtUtils::XSBuilder
install Apache2::Request
> dnf install perl-Authen-SASL perl-Email-Address perl-Email-Simple perl-FCGI mod_
fcgid
It also required getting selinux configured by adding the following contexts:
/usr/local/wiki/Foswiki-2.1.6(/.*)? all files system_u:object_r:httpd_sys_content_t:s0
/usr/local/wiki/Foswiki-2.1.6/bin/.* all files system_u:object_r:httpd_sys_script_exec_t:s0
/usr/local/wiki/Foswiki-2.1.6/data(/.*)? all files system_u:object_r:httpd_sys_rw_content_t:s0
/usr/local/wiki/Foswiki-2.1.6/lib/.* all files system_u:object_r:httpd_sys_script_exec_t:s0
/usr/local/wiki/Foswiki-2.1.6/lib/LocalSite\.cfg.* all files system_u:object_r:httpd_sys_rw_content_t:s0
/usr/local/wiki/Foswiki-2.1.6/working(/.*)? all files system_u:object_r:httpd_sys_rw_content_t:s0
Also, enabling CGI scripts and sendmail with
semanage boolean -m --on httpd_can_sendmail
semanage boolean -m --on httpd_enable_cgi
Still not sure everything works, but so far basic features work.
~
--
JamesStrother - 02 May 2020