phpwcms is an exceptionally flexible, fast, robust, and customer- and developer-friendly web-based Content Management System (CMS) and CMS Framework. Crafted for high speed, customizable templating architectures, and ease of use, phpwcms runs smoothly under PHP and MySQL/MariaDB.
Created and actively maintained by Oliver Georgi.
- Highly Flexible Framework: Adaptive template system supporting standard web standards and custom semantic layouts.
- Rich Component Ecosystem: Ready-to-use core modules:
- ποΈ Shop Module (
mod_shop): Integrated lightweight e-commerce module. - π
Calendar Module (
mod_calendar): Event scheduling and management. - π§ Newsletter Module: Campaign management and subscriber list handling.
- π Glossary & Ads Managers: Built-in terminology indexation and banner advertising platforms.
- π₯ Address Manager: Store and query contacts/locations efficiently.
- ποΈ Shop Module (
- Modern Admin Toolkit: Powered by modern text processors (TinyMCE 8 default, legacy CKEditor 4.x optional), responsive upload managers, and sleek file archives.
- Enterprise-Ready Emailing: Standardized on PHPMailer 7.1+ supporting secure modern mail transports, including OAuth2 protocols.
This branch is fine-tuned and fully compatible with PHP 8.2+.
| Requirement | Minimum Version | Recommended Version | Note |
|---|---|---|---|
| PHP | 8.2 |
8.2+ or 8.3 |
Native type safety and memory optimizations |
| MySQL / MariaDB | 5.6 |
5.7+ / 10.2+ |
Support for transactional storage engines and strict modes |
| Web Server | Apache (with .htaccess), Nginx, or IIS |
Apache / Nginx | Configuration templates provided |
To support all features, the following PHP modules must be enabled in your environment:
intl(Internationalization)gd(Image scaling, WebP, and thumbnail generation)iconv&mbstring(Multi-byte character handling & conversion)mysqli(MySQL driver)fileinfo(Safe mime-type upload validation)xmlreader,libxml,dom,simplexml(XML/HTML parsing feeds & sitemaps)openssl(Secure SMTP & external API handshakes)zip(Archive extraction and asset uploads)curl(External API requests & payment gateway integrations)
/includeβ Core CMS logic, extensions (inc_ext), language packs (inc_lang), modular libraries, and Composer dependencies (include/vendor)./templateβ Visual templates, site assets, layouts, scripts, and library dependencies./setupβ Automatic browser installation and database schema creation wizard.phpwcms.php&index.phpβ Primary bootstrap controllers routing the administration backend and public frontends.
- Clone & Extract: Place the phpwcms files in your web server's document root.
- Install Dependencies: Run Composer to retrieve current dependency configurations:
composer install
- Run the Installer: Navigate to
http://your-domain.com/setup/in your web browser and follow the on-screen configuration wizard to link your database and set up administrator credentials. - Finalize: Secure your server by removing or protecting the
/setupfolder after successful deployment. Configure eithernginx.confor.htaccessdepending on your environment.
The shipped server configurations deny HTTP access to every path that must not be reachable. Only public assets are served:
template/,img/,picture/content/form/,content/images/,content/rss/,content/pages/,content/marketing/include/inc_css/,include/inc_js/,include/inc_ext/ckeditor/setup/(remove the folder after installation)- PHP entry scripts in the document root
Everything else is refused: content/tmp, content/cache, content/log,
content/backup, include/config, include/vendor, the internal include
directories, upload/, filearchive/, tests/, hidden files, SQL/log/backup
files and development files.
| Server | Configuration | Behaviour |
|---|---|---|
| Apache | .htaccess and _.htaccess (keep both in sync), plus .htaccess files inside private directories |
404 for blocked paths; per-directory Deny files return 403 |
| nginx | nginx.conf |
404; the file must be included before the PHP location, otherwise a .php request is handled by PHP first |
| IIS | web.config |
404; uses a default-deny allowlist and request filtering |
Notes:
.htaccessis ignored by nginx and IIS, and is inert on Apache withAllowOverride None. On such hosts only the nginx/IIS configuration or a server-level Apache snippet protects the paths.content/formstays readable on purpose: forms withattachment=0link the uploaded file. Directory listing is prevented byindex.html, and PHP execution is denied.filearchiveis private by default. To enable the direct-download option of file list content parts: on Apache remove or editfilearchive/.htaccess(the content part checks it fordeny); on nginx remove thelocation ~ /filearchiveblock and addfilearchiveto the allowlist; on IIS addfilearchiveto theAllow public pathsrule. Files are then reachable directly instead of throughdownload.phponly.
content, upload, filearchive and template are configurable in
include/config/conf.inc.php:
$phpwcms['content_path'] = 'content';
$phpwcms['ftp_path'] = 'upload';
$phpwcms['file_path'] = 'filearchive';
$phpwcms['templates'] = 'template';If you rename one of them:
- Update the configuration value.
- Update the server rules. Apache patterns are not anchored, but they still
match the literal names; nginx and IIS use explicit allowlists. For a renamed
content, replace the name in thecontent/...patterns ofnginx.confand inAllow public pathsofweb.config. The same applies toupload,filearchiveandtemplate. - Keep the per-directory
.htaccessfiles inside the private folders; on Apache they travel with a renamed directory and keep protecting it. - Verify with
curl, for examplecurl -I https://example.com/<new-name>/tmp/must not return200.
A Docker setup is included for testing the web server configurations:
docker compose up -d --build| Service | URL / port | Note |
|---|---|---|
| Apache + PHP | http://localhost:8090 | .htaccess enabled via AllowOverride All |
| nginx + PHP-FPM | http://localhost:8092 | loads nginx.conf before the PHP location |
| phpMyAdmin | http://localhost:8091 | database phpwcms |
| Mailpit | http://localhost:8036 | SMTP on port 1036 |
| MariaDB | localhost:3317 |
user phpwcms, password phpwcmspassword |
The installer is at http://localhost:8090/setup/ or http://localhost:8092/setup/.
Run the path protection test:
tests/web/path-protection.shIt starts the stack, places probe files in every protected and public path, checks the HTTP status on Apache and nginx, and removes the probes afterwards.
The PHP 8.2 images are multi-arch. IIS cannot run in Docker on macOS/Linux; its configuration is validated as XML only.
A native Makefile is provided to streamline development, static analysis, and code quality tasks:
Locally analyze code quality and type safety using PHPStan:
make phpstan-analyse PHP=/path/to/phpTo record current static analysis exceptions to the baseline file:
make phpstan-update PHP=/path/to/phpUpdate the system dependencies graph and documentation indexes:
make stacklit-updateYou can find the complete step-by-step setup guide for Microsoft Azure and XOAUTH2 integration in the PHPMailer Wiki Guide.
You can find the complete step-by-step setup guide for Google and XOAUTH2 in the PHPMailer Wiki Guide.
- Website: phpwcms.org
- Wiki: HowTo Wiki
- Support: phpwcms support forum
- Changelog: CHANGELOG.md β notable changes, security fixes and dependency updates
- Security: SECURITY.md β supported versions and how to report a vulnerability
Current release: 1.12.10 (revision 568, released 2026-11-26).
The version, release date and revision are defined in include/inc_lib/revision/revision.php. Database and setup
upgrades are shipped as numbered revision files in include/inc_lib/revision/ and applied automatically on upgrade.
Copyright 2002-2026 Oliver Georgi
Licensed under the GNU General Public License, Version 2 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
https://opensource.org/licenses/GPL-2.0
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.