| Resource | Required Server Environment |
|---|---|
| Perl | 5.8.8 or higher. A minimum of perl 5.12 is recommended. |
| External programs | GNU diff 2.7 or higher, fgrep, and egrep (not required on Windows) |
| Web server | Apache, Nginx and Lighttpd are all well supported; Apache sample configs are provided. For information on other servers, see Foswiki:Support.InstallingOnSpecificPlatforms. |
configure script is run, but start from your expected default "view" URL, so that Foswiki can figure out your URL scheme.
Prior versions of Foswiki shipped with the important CPAN modules. Foswiki 2.0 does not, and you must ensure that the perl dependencies listed below are installed before attempting to use Foswiki. For a detailed report, System.PerlDependencyReport (admin access only!) or the shell script tools/dependencies.
If you are unable to install CPAN modules, see Foswiki:Extensions.CpanContrib. Install this extension into your Foswiki installation directory if you cannot install Perl modules otherwise.
You can check the dependencies before Foswiki is fully operational with the following command. It will list all potentially missing dependencies. Not all listed dependences are required on all installations, Refer to the usage message that accompanies each missing dependency in the report.
cd /path/to/foswiki perl tools/dependencies
apt-get install apache2 rcs
| Perl Module | Package to install | Notes |
|---|---|---|
| Algorithm::Diff | libalgorithm-diff-perl |
|
| Archive::Tar | libarchive-tar-perl |
|
| Authen::SASL | libauthen-sasl-perl |
|
| CGI | libcgi-pm-perl |
|
| CGI::Session | libcgi-session-perl |
|
| Crypt::PasswdMD5 | libcrypt-passwdmd5-perl |
|
| Digest::SHA | libdigest-sha-perl |
*First shipped in perl 5.9.3 |
| Email::Address::XS | libemail-address-xs-perl |
|
| Email::MIME | libemail-mime-perl |
|
| Encode | libencode-perl |
|
| Error | liberror-perl |
|
| File::Copy::Recursive | libfile-copy-recursive-perl |
|
| HTML::Parser | libhtml-parser-perl |
|
| HTML::Tree | libhtml-tree-perl |
|
| IO::Socket::IP | libio-socket-ip-perl |
First shipped perl 5.19.8 |
| IO::Socket::SSL | libio-socket-ssl-perl |
|
| JSON | libjson-perl |
|
| Locale::Codes | liblocale-codes-perl |
|
| Locale::Maketext | liblocale-maketext-perl |
|
| Locale::Maketext::Lexicon | liblocale-maketext-lexicon-perl |
Optional, needed for internationalization |
| Locale::Msgfmt | liblocale-msgfmt-perl |
Optional, needed for internationalization |
| LWP | libwww-perl |
|
| LWP::Protocol::https | liblwp-protocol-https-perl |
|
| URI | liburi-perl |
|
| version | libversion-perl |
Must be version 0.77 or newer, included with perl 5.10.1 and newer. |
apt-get installlibalgorithm-diff-perllibarchive-tar-perllibauthen-sasl-perllibcgi-pm-perllibcgi-session-perllibcrypt-passwdmd5-perllibdigest-sha-perllibemail-address-xs-perllibemail-mime-perllibencode-perlliberror-perllibfile-copy-recursive-perllibhtml-parser-perllibhtml-tree-perllibio-socket-ip-perllibio-socket-ssl-perllibjson-perlliblocale-codes-perlliblocale-maketext-perlliblocale-maketext-lexicon-perlliblocale-msgfmt-perllibwww-perlliblwp-protocol-https-perlliburi-perllibversion-perl
| Perl Module | Package to install | Notes |
|---|---|---|
| mod_perl2 | libapache2-mod-perl2 |
Required if using Apache 2 and mod_perl |
| Apache2::Request | libapache2-request-perl |
Required if using Apache 2 and mod_perl |
| DBI | libdbi-perl |
Used for the Foswiki Page cache |
| DBD::mysql | libdbd-mysql-perl |
Used for MySQL based Page Cache |
| DBD::Pg | libdbd-pg-perl |
Used for PostgreSQL based Page Cache |
| DBD::SQLite | libdbd-sqlite3-perl |
Used for SQLite based Page Cache |
| FCGI | libfcgi-perl |
Optional, needed for fastcgi / fcgi apache modules |
| FCGI::ProcManager | libfcgi-procmanager-perl |
Optional, needed for fastcgi / fcgi process management on nginx |
| Crypt::SMIME | libcrypt-smime-perl |
Optional, used for S/MIME email signing |
| Crypt::X509 | libcrypt-x509-perl |
Optional, used for S/MIME email signing |
| Convert::PEM | libconvert-pem-perl |
Optional, used for S/MIME email signing |
chown -R www-data:www-data /path/to/foswiki
a2enmod rewrite a2enmod cgi OR a2enmod cgid a2enmod access_compat | Perl Module | Package to install | Notes |
|---|---|---|
| Algorithm::Diff | perl-Algorithm-Diff |
|
| Archive::Tar | perl-Archive-Tar |
*First shipped in perl 5.9.3 |
| Authen::SASL | perl-Authen-SASL |
|
| CGI | perl-CGI |
|
| CGI::Session | perl-CGI-Session |
|
| Crypt::PasswdMD5 | perl-Crypt-PasswdMD5 |
|
| Digest::SHA | perl-Digest-SHA |
*First shipped in perl 5.9.3 |
| Email::Address::XS | perl-Email-Address-XS |
|
| Email::MIME | perl-Email-MIME |
|
| Encode | perl-Encode |
|
| Error | perl-Error |
|
| File::Copy::Recursive | perl-File-Copy-Recursive |
|
| HTML::Parser | perl-HTML-Parser |
|
| HTML::Tree | perl-HTML-Tree |
|
| IO::Socket::IP | perl-IO-Socket-IP |
First shipped perl 5.19.8 |
| IO::Socket::SSL | perl-IO-Socket-SSL |
|
| JSON | perl-JSON |
|
| Locale::Language | perl-Locale-Codes |
|
| Locale::Maketext | perl-Locale-Maketext |
|
| Locale::Maketext::Lexicon | perl-Locale-Maketext-Lexicon |
Optional, needed for internationalization ** |
| Locale::Msgfmt | perl-Locale-Msgfmt |
Optional, needed for internationalization ** |
| LWP | perl-libwww-perl |
|
| LWP::Protocol::https | perl-LWP-Protocol-https |
|
| URI | perl-URI |
|
| version | perl-version |
Must be version 0.77 or newer, included with perl 5.10.1 and newer. |
Locale::Maketext::Lexicon and Locale::Msgfmt are not available on
Centos. Install using CPAN if Internationalization is required.
First add the appropriate perl module repository, and then install the packages.
yum install -y epel-release
yum installperl-Algorithm-Diffperl-Archive-Tarperl-Authen-SASLperl-CGIperl-CGI-Sessionperl-Crypt-PasswdMD5perl-Digest-SHAperl-Email-Address-XSperl-Email-MIMEperl-Encodeperl-Errorperl-File-Copy-Recursiveperl-HTML-Parserperl-HTML-Treeperl-IO-Socket-IPperl-IO-Socket-SSLperl-JSONperl-Locale-Codesperl-Locale-Maketextperl-Locale-Maketext-Lexiconperl-Locale-Msgfmtperl-libwww-perlperl-LWP-Protocol-httpsperl-URIperl-version
zypper ar -f -n perl-modules http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_13.1 perl-modules
zypper installperl-Algorithm-Diffperl-Archive-Tarperl-Authen-SASLperl-CGIperl-CGI-Sessionperl-Crypt-PasswdMD5perl-Digest-SHAperl-Email-Address-XSperl-Email-MIMEperl-Encodeperl-Errorperl-File-Copy-Recursiveperl-HTML-Parserperl-HTML-Treeperl-IO-Socket-IPperl-IO-Socket-SSLperl-JSONperl-Locale-Codesperl-Locale-Maketextperl-Locale-Maketext-Lexiconperl-Locale-Msgfmtperl-libwww-perlperl-LWP-Protocol-httpsperl-URIperl-version
| Perl Module | Package to install | Notes |
|---|---|---|
| mod_perl2 | mod_perl |
Required if using Apache2 and mod_perl |
| Apache2::Request | perl-libapreq2 |
Required if using Apache 2 and mod_perl |
| DBI | perl-DBI |
Used for the Foswiki Page cache |
| DBD::mysql | perl-DBD-mysql |
Used for MySQL based Page Cache |
| DBD::Pg | perl-DBD-Pg |
Used for PostgreSQL based Page Cache |
| DBD::SQLite | perl-DBD-SQLite |
Used for SQLite based Page Cache |
| FCGI | perl-FCGI |
Optional, needed for fastcgi / fcgi apache modules |
| FCGI::ProcManager | perl-FCGI-ProcManager |
Optional, needed for fastcgi / fcgi process management on nginx |
| Crypt::SMIME | perl-Crypt-SMIME |
Optional, used for S/MIME email signing (Not available in default repositories) |
| Crypt::X509 | perl-Crypt-X509 |
Optional, used for S/MIME email signing |
| Convert::PEM | perl-Convert-PEM |
Optional, used for S/MIME email signing |
chown -R wwwrun:www /path/to/foswiki
www-servers/apache, dev-vcs/rcs, and dev-lang/perl
| Perl Module | Package to install | Notes |
|---|---|---|
| Algorithm::Diff | dev-perl/Algorithm-Diff |
|
| Archive::Tar | perl-Archive-Tar |
*First shipped in perl 5.9.3 |
| Authen::SASL | dev-perl/Authen-SASL |
Optional, needed for authenticated SMTP |
| CGI | dev-perl/CGI |
|
| CGI::Session | dev-perl/CGI-Session |
|
| Crypt::PasswdMD5 | dev-perl/Crypt-PasswdMD5 |
|
| Digest::SHA | Included with perl | |
| Email::Address::XS | dev-perl/Email-Address-XS |
|
| Email::MIME | dev-perl/Email-MIME |
|
| Error | dev-perl/Error |
|
| Encode | Included with perl | |
| File::Copy::Recursive | dev-perl/File-Copy-Recursive |
|
| HTML::Parser | dev-perl/HTML-Parser |
|
| HTML::Tree | dev-perl/HTML-Tree |
|
| IO::Socket::IP | Ebuild not avaiable. Install with g-cpan if IPv6 is needed. | |
| IO::Socket::SSL | dev-perl/IO-Socket-SSL |
Optional, support encrypted email connection: STARTTLS or SSL |
| JSON | dev-perl/JSON |
|
| Locale::Maketext | Included with perl | |
| Locale::Maketext::Lexicon | dev-perl/Locale-Maketext-Lexicon |
Optional, needed for internationalization |
| Locale::Msgfmt | dev-perl/Locale-Msgfmt |
Optional, needed for internationalization |
| LWP | dev-perl/libwww-perl |
|
| LWP::Protocol::https | dev-perl/LWP-Protocol-https |
|
| URI | dev-perl/URI |
|
| version | Must be version 0.77 or newer, included with perl 5.10.1 and newer. |
emergedev-perl/Algorithm-Diffperl-Archive-Tardev-perl/Authen-SASLdev-perl/CGIdev-perl/CGI-Sessiondev-perl/Crypt-PasswdMD5dev-perl/Email-Address-XSdev-perl/Email-MIMEdev-perl/Errordev-perl/File-Copy-Recursivedev-perl/HTML-Parserdev-perl/HTML-Treedev-perl/IO-Socket-SSLdev-perl/JSONdev-perl/Locale-Maketext-Lexicondev-perl/Locale-Msgfmtdev-perl/libwww-perldev-perl/LWP-Protocol-httpsdev-perl/URI
| Perl Module | Package to install | Notes |
|---|---|---|
| mod_perl2 | www-apache/mod_perl |
Required if using Apache 2 and mod_perl |
| Apache2::Request | libapache2-request-perl |
Required if using Apache 2 and mod_perl |
| DBI | dev-perl/DBI |
Optional - Used for the Foswiki Page cache |
| DBD::mysql | dev-perl/DBD-mysql |
Optional - Used for MySQL based Page Cache |
| DBD::Pg | dev-perl/DBD-Pg |
Optional - Used for PostgreSQL based Page Cache |
| DBD::SQLite | dev-perl/DBD-SQLite |
Optional - Used for SQLite based Page Cache |
| FCGI | dev-perl/FCGI |
Optional, needed for fastcgi / fcgi apache modules |
| FCGI::ProcManager | dev-perl/FCGI-ProcManager |
Optional, needed for fastcgi / fcgi process management on nginx |
| Crypt::SMIME | dev-perl/Crypt-SMIME |
Optional, used for S/MIME email signing |
| Crypt::X509 | dev-perl/Crypt-X509 |
Optional, used for S/MIME email signing |
| Convert::PEM | dev-perl/convert-pem |
Optional, used for S/MIME email signing |
chown -R apache:apache /var/www/path-to-foswiki
apache24, rcs, and perl5
| Perl Module | Package to install | Notes |
|---|---|---|
| Algorithm::Diff | p5-Algorithm-Diff |
|
| Archive::Tar | p5-Archive-Tar |
|
| Authen::SASL | p5-Authen-SASL |
|
| CGI | p5-CGI |
|
| CGI::Session | p5-CGI-Session |
|
| Crypt::PasswdMD5 | p5-Crypt-PasswdMD5 |
|
| Digest::SHA | p5-Digest-SHA |
*First shipped in perl 5.9.3 |
| Email::Address::XS | p5-Email-Address-XS |
|
| Email::MIME | p5-Email-MIME |
|
| Encode | p5-Encode |
|
| Error | p5-Error |
|
| File::Copy::Recursive | p5-File-Copy-Recursive |
|
| HTML::Parser | p5-HTML-Parser |
|
| HTML::Tree | p5-HTML-Tree |
|
| IO::Socket::IP | p5-IO-Socket-IP |
First shipped perl 5.19.8 |
| IO::Socket::SSL | p5-IO-Socket-SSL |
|
| JSON | p5-JSON |
|
| Locale::Maketext | p5-Locale-Maketext |
|
| Locale::Maketext::Lexicon | p5-Locale-Maketext-Lexicon |
Optional, needed for internationalization |
| Locale::Msgfmt | p5-Locale-Msgfmt |
Optional, needed for internationalization |
| LWP | p5-libwww |
|
| LWP::Protocol::https | p5-LWP-Protocol-https |
|
| URI | p5-URI |
|
| version | p5-version |
Must be version 0.77 or newer, included with perl 5.10.1 and newer. |
After expanding the Foswiki archive, change the ownership of the files:pkg installp5-Algorithm-Diffp5-Archive-Tarp5-Authen-SASLp5-CGIp5-CGI-Sessionp5-Crypt-PasswdMD5p5-Digest-SHAp5-Email-Address-XSp5-Email-MIMEp5-Encodep5-Errorp5-File-Copy-Recursivep5-HTML-Parserp5-HTML-Treep5-IO-Socket-IPp5-IO-Socket-SSLp5-JSONp5-Locale-Maketextp5-Locale-Maketext-Lexiconp5-Locale-Msgfmtp5-libwwwp5-LWP-Protocol-httpsp5-URIp5-version
chown -R www:wwwadmin /var/www/path-to-foswiki
| Perl Module | Package to install | Notes |
|---|---|---|
| mod_perl2 | ap24-mod_perl2 |
Required if using Apache 2 and mod_perl |
| Apache2::Request | libapreq2 |
Required if using Apache 2 and mod_perl |
| BSD-Resource | p5-BSD-Resource |
Optional - used for FCGI process handler resource limits |
| DBI | p5-DBI |
Optional - Used for the Foswiki Page cache |
| DBD::mysql | p5-DBD-mysql |
Optional - Used for MySQL based Page Cache |
| DBD::Pg | p5-DBD-Pg |
Optional - Used for PostgreSQL based Page Cache |
| DBD::SQLite | p5-DBD-SQLite |
Optional - Used for SQLite based Page Cache |
| FCGI | p5-FCGI |
Optional, needed for fastcgi / fcgi apache modules |
| FCGI::ProcManager | p5-FCGI-ProcManager |
Optional, needed for fastcgi / fcgi process management on nginx |
| Crypt::SMIME | p5-Crypt-SMIME |
Optional, used for S/MIME email signing |
| Crypt::X509 | p5-Crypt-X509 |
Optional, used for S/MIME email signing |
| Convert::PEM | p5-Convert-PEM |
Optional, used for S/MIME email signing |
cpanm, aka App::cpanminus. On most unix* systems, cpanminus can bootstrap itself using curl or wget.
If run as root, the modules will be installed in the System perl. Otherwise they are installed into the users local environment.
| Perl Module | Notes |
|---|---|
| Algorithm::Diff | |
| Archive::Tar | *First shipped in perl 5.9.3 |
| Authen::SASL | Optional, needed for authenticated SMTP |
| CGI | |
| CGI::Session | |
| Crypt::PasswdMD5 | |
| Digest::SHA | Included with perl |
| Error | |
| Email::Address::XS | |
| Email::MIME | |
| Encode | |
| File::Copy::Recursive | |
| HTML::Parser | |
| HTML::Tree | |
| IO::Socket::IP | |
| IO::Socket::SSL | Optional, support encrypted email connection: STARTTLS or SSL |
| JSON | |
| Locale::Maketext | |
| Locale::Maketext::Lexicon | Optional, needed for internationalization |
| Locale::Msgfmt | Optional, needed for internationalization |
| LWP | |
| LWP::Protocol::https | |
| URI | |
| version | Must be version 0.77 or newer, included with perl 5.10.1 and newer. |
cpanm curl -L http://cpanmin.us | perl - App::cpanminus (optional - install cpanminus if not available )
cpanm Algorithm::Diff Archive::Tar Authen::SASL CGI CGI::Session Crypt::PasswdMD5 Digest::SHA Error Email::Address::XS Email::MIME Encode File::Copy::Recursive HTML::Parser HTML::Tree IO::Socket::IP IO::Socket::SSL JSON Locale::Maketext Locale::Maketext::Lexicon Locale::Msgfmt LWP LWP::Protocol::https URI version
| Perl Module | Package to install | Notes |
|---|---|---|
| Apache2::Request | Required if using Apache 2 and mod_perl | |
| DBI | Optional - Used for the Foswiki Page cache | |
| DBD::mysql | Optional - Used for MySQL based Page Cache | |
| DBD::Pg | Optional - Used for PostgreSQL based Page Cache | |
| DBD::SQLite | Optional - Used for SQLite based Page Cache | |
| FCGI | Optional, needed for fastcgi / fcgi apache modules | |
| FCGI::ProcManager | Optional, needed for fastcgi / fcgi process management on nginx | |
| Crypt::SMIME | Optional, used for S/MIME email signing | |
| Crypt::X509 | Optional, used for S/MIME email signing | |
| Convert::PEM | Optional, used for S/MIME email signing | |
| Locale::Language | Optional, Locale::Language will be removed from the Perl core distribution in 5.28. |
cpanminus "-l" option to cpanm, and add the lib path to bin/LocalLib.cfg. The dependencies will be installed under the specified location, in the lib/perl5 subdirectory.
Example: User "foswiki" logs in and installs the libraries locally under the foswikideps directory:
cpanm -l foswikideps Algorithm::Diff Archive::Tar ... (install libraries into =/home/foswiki/foswikideps=)
/path/to/foswiki/bin/LocalLib.txt is then edited, and the commented line is modified:
# @localPerlLibPath = ( '/path/to/dir', '/path/to/another/dir', ); @localPerlLibPath = ( '/home/foswiki/foswikideps/lib/perl5', );Foswiki will now run using the libraries installed by cpanm.