FosWiki is a powerful open-source wiki platform for collaboration and knowledge management. Installing FosWiki on a Linux server is straightforward if you follow this guide.
Table of Contents
Prerequisites
Before installing FosWiki, ensure you have:
-
A server running Debian 12/Ubuntu 22.04/CentOS 9
-
Root or sudo privileges
-
At least 1GB RAM (2GB recommended for production)
-
Apache, Perl, and MariaDB/MySQL installed
Step 1: Update Your System
Update your system packages:
Debian/Ubuntu:
CentOS:
Step 2: Install Apache Web Server
Debian/Ubuntu:
CentOS:
Step 3: Install Perl and Required Modules
FosWiki is written in Perl and requires several Perl modules.
Debian/Ubuntu:
CentOS:
Install additional modules using cpanminus:
Step 4: Install MariaDB or MySQL
Debian/Ubuntu:
CentOS:
Secure your installation:
Step 5: Configure Database for FosWiki
Log in to MariaDB/MySQL:
Create a database and user for FosWiki:
Step 6: Download FosWiki
Navigate to the web root and download FosWiki:
Step 7: Configure Apache for FosWiki
Create a virtual host configuration:
Apache Virtual Host Example:
Enable CGI and rewrite modules, then restart Apache:
Step 8: Set Proper Permissions
For CentOS, replace www-data with apache.
Step 9: Complete FosWiki Configuration
Open your browser and navigate to:
Follow the setup wizard:
-
Set database type to MySQL/MariaDB
-
Enter database credentials
-
Configure administrator account
FosWiki will verify Perl modules and file permissions during setup.
Step 10: Access FosWiki
Once installation is complete, access the FosWiki site and admin interface:
-
FosWiki site:
http://yourdomain.com/foswiki -
Admin interface:
http://yourdomain.com/foswiki/bin/configure
Conclusion
Congratulations! FosWiki is now installed on Debian, Ubuntu, or CentOS. You can now:
-
Create collaborative documentation
-
Manage projects efficiently
-
Customize FosWiki with extensions and themes
SEO Tips for FosWiki:
-
Enable clean URLs for better indexing
-
Use HTTPS for secure access
-
Optimize Apache for caching and speed
-
Keep FosWiki and Perl modules updated