Skip to main content

Batoi navigation

Batoi Press Docs

Installation

Install Batoi Press on standard PHP hosting and understand the directory model.

Version 4.0.10 Active public source Reviewed Jul 21, 2026 Next review Oct 21, 2026

Owner: Batoi Engineering Reviewed by: Batoi Press Maintainers Source revision: 72bd58f

Browse Batoi Press Documentation Installation

Installation

Hosting Checks

After installation, owners/admins should open **Hosting Health** at /admin/health. Review required PHP extensions, Sodium for signed updates, ZIP operations, writable paths, and optional GD encoders. OPcache is a recommendation, not a substitute for correct runtime configuration.

Press streams PHP-served public assets in bounded memory with conditional requests and byte-range support. Cookie or authenticated requests remain private and non-stored. Only verified theme fingerprints receive immutable caching. Direct static files and reverse proxies can use different policies; inspect actual Cache-Control, Content-Encoding, and Vary headers on your host.

No rendered-page cache is introduced. Verify compression on the deployed host; Hosting Health does not certify it. Have the host merge any required changes into existing rewrite rules rather than replacing .htaccess.

Batoi Press is packaged for standard PHP hosting. The browser-facing files live in public_html/; the private CMS engine lives in radpress/.

Batoi Press installation layout A diagram showing browser traffic to public_html and private application files in radpress. Browser public_html/ index.php install.php admin.php assets/ radpress/ private CMS engine Keep radpress outside the web root when hosting allows it.

In 4.0.8, PHP-served mutable public assets default to 3,600 seconds of freshness with revalidation. Existing asset_cache_max_age settings still apply; set it to 0 to revalidate on each use. Hosts and CDNs can apply separate policies to direct static files.

Press negotiates gzip for eligible public HTML and XML when PHP zlib is available. Admin, private and authenticated responses, forms, and streamed files are excluded. Set public_compression to false in site.json if the host or CDN manages compression.

Native carousels keep explicit image loading settings, prioritize an eligible first content image, and defer inactive slides. With GD WebP support, public requests can prepare responsive variants of existing local JPEG and PNG images for later requests. Originals remain available when media storage is read-only.

The configured site URL supplies canonical links and sitemap entries. Public GET and HEAD requests on the matching www or non-www alias redirect to the configured host, and the configured homepage redirects from its page URL to the site root. Check both host variants and the homepage after deployment.

The generated robots file advertises the sitemap. An existing static robots file on Apache takes precedence. For subdirectory installations, advertise the sitemap in the host's root robots file. Press fills missing search metadata from the page and site settings while retaining authored metadata and custom theme tags.

Requirements

  • PHP 8.3 or newer for both web requests and any optional CLI worker.
  • Apache rewrite support for clean URLs, or query-string fallback.
  • Writable radpress/config/, radpress/content/, and radpress/data/.
  • ZIP and Sodium for signed update/package handling; these are not prerequisites for basic local publishing.
  • No database, Composer, Node.js, Docker, Git, or CLI access is required for runtime use.

Install Flow

File Permissions

The 4.0.6 ZIP declares 0644 for files and 0755 for directories. After extraction or FTP upload, verify ownership and modes. On cPanel suPHP, group- or world-writable PHP entry points can return HTTP 500 before the application starts. Correct the hosting account ownership and entry-point permissions through the host before opening the installer or updater.

The PHP account needs write access to configuration, content, and data. It also needs access to the theme store for theme editing and to managed release paths for in-app updates. For a separate PHP account, use ownership, a dedicated trusted group, or an ACL. Keep public PHP entry points free of group and world write access. Deploy through the host if PHP has read-only code access.

The installer and updater repair eligible legacy 0777 entries under the standard radpress/ tree. Linked files and intentional group-writable runtime modes are excluded; check custom storage separately. The updater stages packages privately and checks configured runtime paths for write access.

Core and Optional Capabilities

Basic local publishing uses native JSON, sessions, hashing, filters, password hashing, secure randomness, and reliable local locks/atomic rename. Network access, cron, and external identity services are not required.

  • DOM enables rich HTML editing; without it new content is stored as escaped plain text with an editor notice.
  • Fileinfo is needed for new uploads. GD image derivatives and mbstring multilingual case folding are optional enhancements.
  • Encrypted secrets and queued form deliveries require Sodium or OpenSSL AES-256-GCM. Existing Sodium-encrypted secrets still require Sodium.
  • cURL supports remote adapters and update checks with allow_url_fopen disabled. Verify outbound HTTPS and certificate trust on the actual web runtime.
  • ZIP enables package/archive features. Sodium verifies signed updates; missing support is not permission to install unsigned code.

Custom forms and webhook delivery start disabled. Enable them only after reviewing Plugins and Forms.

First Installation

  • Upload the package contents to the host.
  • Point the web root to public_html/ when possible.
  • Keep radpress/ outside the public web root when the host allows it.
  • Open /install.php.
  • Create the first owner account.
  • Confirm radpress/config/installed.lock was created.

The installer creates or updates:

radpress/config/site.json
radpress/config/users.json
radpress/config/security.json
radpress/config/installed.lock

Web Root Notes

On cPanel-style hosting, public_html/ is usually the web root. If the host does not allow radpress/ outside the web root, keep the included .htaccess files in place so private directories are denied direct access.

Release Package Contents

A release ZIP should contain:

public_html/
radpress/
README.md
LICENSE

Generated runtime state should not be included, especially:

radpress/config/installed.lock
radpress/data/backups/*.zip
radpress/data/cache/*
radpress/data/export/*.zip
radpress/data/log/*.jsonl
radpress/data/sessions/*
radpress/data/tmp/*
radpress/data/versions/*

Get the signed installation package from Batoi Press Downloads. For an existing installation, use Admin Updates to stage and apply the package while preserving site data.