Installation - edmozley/freeitsm GitHub Wiki
There are two supported installation paths: Docker (recommended for quick evaluation) and manual (for production with WAMP/XAMPP/LAMP).
The fastest way to get FreeITSM running β no PHP, MySQL, or web server setup required.
git clone https://github.com/edmozley/freeitsm.git
cd freeitsm
docker compose up -dThen open http://localhost:8080/setup/ to verify the installation and create your admin account.
Requires Docker Desktop (Windows/Mac) or Docker Engine (Linux).
β οΈ Already running FreeITSM in Docker? Copy your files out before updating to 5.4.0. Until 5.4.0 the compose file kept only some of the folders FreeITSM stores files in on a volume, so a rebuild deleted the rest - and the update to 5.4.0 is itself a rebuild. See Updating a Docker install to 5.4.0.
What the image includes. Since 4.0.0 the image has every PHP extension FreeITSM uses: ldap (LDAP / Active Directory), zip (LMS course upload, Word files in the RFP Builder, searching inside .docx and .xlsx) and intl (international domain names), on top of the ones PHP builds in. Before 4.0.0 it had none of the three (#207), so if you built your own image to add ldap, you can go back to the official one. The build refuses to finish if any of them fails to load.
Basic IMAP mailboxes work in the container from the release after 4.10.0 - they no longer need PHP's imap extension, which the image cannot include. On 4.10.0 and earlier they did not work there. See Basic IMAP without the PHP extension.
A container is thrown away and made again on every docker compose up -d --build (and on every update of a pinned image). Anything stored inside it and not on a volume goes with it. Since 5.4.0 (PR #350) docker-compose.yml puts a named volume on every folder FreeITSM stores files in:
| Volume | Folder in the container | What is in it |
|---|---|---|
attachments |
/var/www/html/tickets/attachments |
Ticket attachments |
cm-attachments |
/var/www/html/change-management/attachments |
Change attachments |
files |
/var/www/html/uploads/files |
Everything shared in the Files module |
uploads |
/var/www/html/uploads |
Documents attached to tickets, notes, assets and articles; asset imports; API log archives; emailed-report downloads (5.4.0) |
recordings |
/var/www/html/recordings |
Screen recordings (5.4.0) |
lms-content |
/var/www/html/lms/content |
Course content (5.4.0) |
contracts-rfp-builder-uploads |
/var/www/html/contracts/rfp-builder/uploads |
Files uploaded to an RFP (5.4.0) |
system-uploads-branding |
/var/www/html/system/uploads/branding |
Your logo and other branding images (5.4.0) |
system-uploads-label-fonts |
/var/www/html/system/uploads/label-fonts |
Fonts uploaded for asset label designs (5.4.0) |
war-room-attachments |
/var/www/html/war-room/attachments |
Files shared in a war room (5.4.0) |
forms-images |
/var/www/html/forms/images |
Pictures placed on forms, and the pictures of catalogue items (5.4.0) |
encryption-keys |
/var/www/encryption_keys |
The encryption key - mailbox passwords and integration credentials are unreadable without it |
tls |
/var/www/tls |
The HTTPS certificate and the authority that signed it |
db-data (the db service) |
/var/lib/mysql |
The database |
The names are the ones System -> Setup gives in the docker-compose.override.yml it suggests, so an install that already followed that advice keeps the same volumes - Compose merges the two files. Do not edit docker-compose.yml itself to add a volume: it is tracked in git, so the next git pull refuses to run. Anything extra goes in docker-compose.override.yml, which no update touches.
System -> Setup warns, and the D013 debug tool explains, when a folder that holds files is not on a volume.
If nginx, a load balancer or a Cloudflare Tunnel sits in front of the container, every request reaches FreeITSM from the proxy, so the sign-in log (Reporting β Logs), the audit trails and API key address checks all see the proxy's address. Name the proxy in docker-compose.yml and run docker compose up -d:
- TRUSTED_PROXIES=192.0.2.10For a Cloudflare Tunnel, also set TRUSTED_PROXY_HEADER=CF-Connecting-IP.
β οΈ List the proxy's own address, nothing wider. FreeITSM believes the address the proxy passes on only for requests from the addresses you list, because anyone can write it. A range such as10.0.0.0/8lets every machine in it fake any address - in the sign-in log, the audit trails, and past an API key's address restriction.
System β Docker β Behind a reverse proxy shows whether it is on, explains what a wrong value does, and has a Test button: it shows the address FreeITSM recorded for you and what it means - and, when you are behind a proxy and it is off, the exact line to add. Review and how it was tested: Behind a reverse proxy - review (#410); how it works: Trusted proxies - Developer Guide.
π΄ Read this before updating a Docker install from 5.3.0 or earlier. Docker fills a new volume from the image, not from the container it replaces. So the rebuild that adds the new volumes still discards whatever is in those folders now. Copy them out first, update, then copy them back. This is only needed once: from 5.4.0 on, updates keep them.
Which installs need it
-
A Docker install with no
docker-compose.override.yml- copy all eight folders below. A folder that does not exist yet (nobody ever uploaded an RFP file, say) gives an error on its copy line; skip it. -
An install whose
docker-compose.override.ymlwas made from System -> Setup - the folders it lists are already on volumes with the same names, so there is nothing to do for those.forms/imagesandsystem/uploads/label-fontswere never in Setup's list before 5.4.0, so copy those two if the install has pictures on forms or catalogue items, or uploaded label fonts. Copying a folder that is already on a volume does no harm, so if in doubt, copy all eight. - A manual install (WAMP, LAMP, IIS, nginx) - nothing to do. The files are on the server's own disk.
The service is called app in docker-compose.yml. Run these from the folder that holds docker-compose.yml, while the current container is still running, into a backup folder that does not exist yet (if ./backup/<name> already exists, docker compose cp puts the copy inside it):
1. Copy the files out
docker compose cp app:/var/www/html/uploads ./backup/uploads
docker compose cp app:/var/www/html/recordings ./backup/recordings
docker compose cp app:/var/www/html/lms/content ./backup/lms-content
docker compose cp app:/var/www/html/contracts/rfp-builder/uploads ./backup/contracts-rfp-builder-uploads
docker compose cp app:/var/www/html/system/uploads/branding ./backup/system-uploads-branding
docker compose cp app:/var/www/html/system/uploads/label-fonts ./backup/system-uploads-label-fonts
docker compose cp app:/var/www/html/war-room/attachments ./backup/war-room-attachments
docker compose cp app:/var/www/html/forms/images ./backup/forms-imagesuploads includes uploads/files, which already had its own volume and is safe either way; copying it back does no harm. Check the backup folder holds what you expect before going on.
2. Update as usual
git pull
docker compose up -d --build(With a pinned image, change the version number in image: and run docker compose up -d.)
3. Copy the files back in, and give them to the web server
docker compose cp ./backup/uploads/. app:/var/www/html/uploads
docker compose cp ./backup/recordings/. app:/var/www/html/recordings
docker compose cp ./backup/lms-content/. app:/var/www/html/lms/content
docker compose cp ./backup/contracts-rfp-builder-uploads/. app:/var/www/html/contracts/rfp-builder/uploads
docker compose cp ./backup/system-uploads-branding/. app:/var/www/html/system/uploads/branding
docker compose cp ./backup/system-uploads-label-fonts/. app:/var/www/html/system/uploads/label-fonts
docker compose cp ./backup/war-room-attachments/. app:/var/www/html/war-room/attachments
docker compose cp ./backup/forms-images/. app:/var/www/html/forms/images
docker compose exec app chown -R www-data:www-data /var/www/html/uploads /var/www/html/recordings /var/www/html/lms/content /var/www/html/contracts/rfp-builder/uploads /var/www/html/system/uploads/branding /var/www/html/system/uploads/label-fonts /var/www/html/war-room/attachments /var/www/html/forms/imagesThe /. at the end of each source copies the folder's contents into the folder, rather than a folder inside it. docker compose cp writes files as root, and PHP runs as www-data, so without the chown FreeITSM can read the files back but not change or delete them.
Then check a few: a document attached to an asset or an article, your logo, a form with a picture, and keep the backup folder until you are happy.
-
Web server: Apache (WAMP, XAMPP, LAMP) works out of the box. nginx is supported but needs a config file β the security rules Apache picks up from
.htaccessdo not exist on nginx until you install it. See Running on nginx before going live. Apache with PHP-FPM works too. Up to 3.1.0 an uploaded logo and LMS courses did not load on it (why); after updating, run System β Verify database - PHP: 8.1 or higher (tested up to 8.4). PHP 8.3 or 8.4 recommended. From 4.0.0 an older PHP gets a page saying so, rather than errors - see Upgrading PHP
- Database: MySQL 8.0 or higher (included with WAMP/XAMPP)
-
Extensions: PHP
pdo,pdo_mysql,curl,openssl,mbstring -
Optional extensions - each is needed only for the features after it, and the setup page reports which you have:
-
ldap- LDAP / Active Directory sign-in and directory sync -
zip- LMS course upload (SCORM), Word files in the RFP Builder, searching inside .docx and .xlsx attachments -
intl- international domain names (such as mΓΌnchen.de) in Domains -
- no longer needed from the release after 4.10.0: Basic IMAP mailboxes read through FreeITSM's own client (why). On 4.10.0 and earlier it was needed for basic IMAP/SMTP mailboxes, and PHP 8.4 no longer bundles itimap
-
-
Database credentials file: A
db_config.phpfile stored outside your web root (e.g.C:\wamp64\db_config.php) β the path is configured inconfig.php(see step 2 below)
β οΈ Note for early adopters: If you downloaded FreeITSM before 18 February 2026, the project required Microsoft SQL Server Express and ODBC drivers. FreeITSM now runs on MySQL with no extra drivers needed. Existing SQL Server installs will need a data migration, plus an update todb_config.phpfor MySQL.
-
Clone the repository
git clone https://github.com/edmozley/freeitsm.git cd freeitsm -
Configure database credentials Copy
db_config.sample.phpto a secure location outside your web root:C:\wamp64\db_config.php (recommended on Windows)Edit the copied file with your MySQL credentials:
define('DB_SERVER', 'localhost'); define('DB_NAME', 'freeitsm'); define('DB_USERNAME', 'your_username'); define('DB_PASSWORD', 'your_password');
Update
config.phpline 10 if you chose a different location. -
Create the database Create a database named
freeitsmin MySQL. Rundatabase/freeitsm.sqlto create all tables, or use the Setup page's DB Verify to auto-create them. -
Set up encryption key (for sensitive settings)
mkdir C:\wamp64\encryption_keys # Generate a random 256-bit key (64 hex characters) php -r "echo bin2hex(random_bytes(32));" > C:\wamp64\encryption_keys\sdtickets.key
The key file defaults to
C:\wamp64\encryption_keys\sdtickets.key(Windows) or/var/www/encryption_keys/freeitsm.key(Linux). To keep it elsewhere β e.g. your web root isn't/var/wwwβ set its path inconfig.php(define('ENCRYPTION_KEY_PATH', '/your/path/...')) or via theENCRYPTION_KEY_PATHenvironment variable (used by the Docker image). -
Configure web server
- Point your web server to the application root
- Ensure PHP extensions are enabled:
pdo_mysql,curl,openssl,mbstring - Restart your web server
-
Verify setup Navigate to
http://your-server/setup/to run the verification checks (config files, database connection, PHP extensions, security settings). Delete the/setupfolder once your system is in production. -
First login Navigate to
http://your-server/login.php. A default admin account is created by the SQL script:- Username:
admin - Password:
freeitsm
Change this password immediately after first login via the account menu.
- Username:
-
Import demo data (optional) Navigate to System β Demo Data to populate modules with realistic sample data. Import Core first (creates analysts, departments, teams, end users), then choose which modules to populate.
- Includes tickets, assets, knowledge articles, changes, calendar events, morning checks, contracts, service status, software licences, forms, tasks, process flowcharts, and CMDB objects
- Demo analysts use password
demo1234 - Designed for fresh installations only β each module can be imported once
| File | Location | Purpose | Commit to Git? |
|---|---|---|---|
config.php |
Web root | Main config (references external DB config) | β Yes |
db_config.php |
Outside web root | Database credentials | β No |
db_config.sample.php |
Web root | Template for db_config.php | β Yes |
sdtickets.key |
Outside web root | AES-256-GCM encryption key | β No |
FreeITSM always logs PHP errors and never shows them in a web page, because a warning printed into a page names server paths - and before sign-in that is shown to anybody. Scripts run from the command line (cron, tests) always show them.
To see them in the browser while developing, add this to db_config.php - not config.php, which is replaced every time you pull an upgrade:
define('FREEITSM_DISPLAY_ERRORS', true);In Docker, set FREEITSM_DISPLAY_ERRORS=1 in the app's environment: in docker-compose.yml instead (errors also go to docker logs either way). Never turn it on for an install people use.
| Component | Technology |
|---|---|
| Backend | PHP 8.1β8.4 |
| Database | MySQL 8.0+ (PDO MySQL) |
| Frontend | Vanilla JavaScript, HTML5, CSS3 (no frameworks) |
| Rich Text Editor | TinyMCE 6+ |
| Email integration | Microsoft Graph API + Gmail API (OAuth 2.0) |
| Encryption | AES-256-GCM (sensitive data at rest) |
| Web server | Apache (WAMP/XAMPP/LAMP), or nginx with its config file |