Install Landing CMS on AlmaLinux 8 with Apache and PHP 8.2 in about 15 minutes. You will get a database-free landing-page editor at your domain, protected by HTTPS and permissions that let the CMS write only to its data directories.
Prerequisites
- AlmaLinux 8.10 or a fully updated AlmaLinux 8 VPS with at least 1 GB of RAM and 5 GB of free disk space.
- SSH access as
root, or a normal account with workingsudoprivileges. - A public domain such as
YOUR_DOMAIN, with its DNS A record pointing to the VPS before you request TLS. - Ports 22, 80, and 443 reachable from your workstation. Do not expose MariaDB for this application; Landing CMS stores content in files.
- A VPSLake Linux VPS with a public IPv4 address if you need a server for the LAMP stack.
- A long, unique password for the Landing CMS administrator account.
The project’s official Landing CMS repository identifies version 0.0.6 as an alpha release and is no longer maintained. Pinning that release makes this installation reproducible; review it before using the CMS for sensitive or business-critical content.
The commands assume a non-root SSH account. If you are logged in as root, remove sudo from the commands.
Step 1: Install Apache, PHP, and the AlmaLinux tools
Landing CMS needs a web server and PHP, while DNF modules provide the current PHP stream available for AlmaLinux 8.
sudo dnf upgrade -y
sudo dnf module reset php -y
sudo dnf module enable php:8.2 -y
sudo dnf install -y httpd php php-cli php-fpm php-gd php-curl php-mbstring php-xml php-zip unzip curl firewalld policycoreutils-python-utils mod_ssl
sudo systemctl enable --now firewalld httpd php-fpm
sudo firewall-cmd --permanent --zone=public --add-service=ssh
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
php -v
sudo systemctl is-active httpd php-fpm firewalld
PHP-FPM executes PHP through Apache without making the PHP source files directly downloadable. The last two checks should show PHP 8.2 and three active lines.
PHP 8.2.x (cli) (built: ...)
active
active
active
Landing CMS does not use a database, so installing MariaDB only to satisfy the word “LAMP” adds an unused network service. You can install MariaDB separately for another application, but leave its port closed for this deployment.
Step 2: Download the pinned Landing CMS release
Using the tagged archive avoids silently changing application code when the project’s default branch changes.
cd /tmp
curl -fL -o landing-cms-0.0.6.zip https://github.com/Elias-Black/Landing-CMS/archive/refs/tags/0.0.6.zip
unzip -q landing-cms-0.0.6.zip
sudo install -d -o root -g apache -m 0750 /var/www/landing
sudo cp -a /tmp/Landing-CMS-0.0.6/. /var/www/landing/
sudo test -f /var/www/landing/install.php
sudo test -d /var/www/landing/cms/_db
The two tests produce no output when they pass. Landing CMS includes install.php for its first-run checks and cms/ for the administrative area; _db is a folder of application files, not a MariaDB database.
Set root ownership on the application code, then give Apache ownership only of the folders that must accept uploads or content files. This keeps a compromised PHP process from rewriting the application itself.
sudo chown -R root:apache /var/www/landing
sudo find /var/www/landing -type d -exec chmod 0750 {} +
sudo find /var/www/landing -type f -exec chmod 0640 {} +
sudo chown -R apache:apache /var/www/landing/assets/_cms/uploads/tinymce/source
sudo chown -R apache:apache /var/www/landing/assets/_cms/uploads/tinymce/thumbs
sudo chown -R apache:apache /var/www/landing/cms/_db
sudo find /var/www/landing/assets/_cms/uploads/tinymce/source -type d -exec chmod 0700 {} +
sudo find /var/www/landing/assets/_cms/uploads/tinymce/source -type f -exec chmod 0600 {} +
sudo find /var/www/landing/assets/_cms/uploads/tinymce/thumbs -type d -exec chmod 0700 {} +
sudo find /var/www/landing/assets/_cms/uploads/tinymce/thumbs -type f -exec chmod 0600 {} +
sudo find /var/www/landing/cms/_db -type d -exec chmod 0700 {} +
sudo find /var/www/landing/cms/_db -type f -exec chmod 0600 {} +
Tell SELinux that the application is readable, while the three data paths are intentionally writable by Apache. Persistent file-context rules survive a relabel or reboot.
sudo semanage fcontext -a -t httpd_sys_content_t '/var/www/landing(/.*)?'
sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/landing/assets/_cms/uploads/tinymce/source(/.*)?'
sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/landing/assets/_cms/uploads/tinymce/thumbs(/.*)?'
sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/landing/cms/_db(/.*)?'
sudo restorecon -Rv /var/www/landing
Step 3: Create the Apache virtual host
A named virtual host sends only YOUR_DOMAIN to Landing CMS and permits the project’s local .htaccess rules without enabling directory listings.
Replace every YOUR_DOMAIN token in the block before running it.
sudo tee /etc/httpd/conf.d/YOUR_DOMAIN.conf > /dev/null <<'APACHE'
<VirtualHost *:80>
ServerName YOUR_DOMAIN
DocumentRoot /var/www/landing
<Directory /var/www/landing>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
DirectoryIndex index.php index.html
ErrorLog /var/log/httpd/YOUR_DOMAIN-error.log
CustomLog /var/log/httpd/YOUR_DOMAIN-access.log combined
</VirtualHost>
APACHE
sudo apachectl configtest
sudo systemctl reload httpd
Syntax OK
The web root is separate from Apache’s default document directory, which makes future backups and migrations easier. Keeping the hostname in its own configuration file also prevents a later site on the same VPS from accidentally serving Landing CMS files or receiving its requests.
Check that the hostname resolves to this server before continuing. A local configuration test cannot prove that DNS or an outside firewall is correct.
Step 4: Enable HTTPS with Let’s Encrypt
TLS protects the admin password and uploaded content, and Certbot can update this Apache virtual host for you.
Run these commands only after YOUR_DOMAIN resolves to the VPS and port 80 is reachable from the Internet. Replace ADMIN_EMAIL with an address that receives certificate notices.
sudo dnf install -y epel-release
sudo dnf install -y certbot python3-certbot-apache
sudo certbot --apache --redirect --agree-tos --no-eff-email --email ADMIN_EMAIL -d YOUR_DOMAIN
sudo certbot renew --dry-run
Certbot should report a successful simulated renewal. Its official Apache instructions explain the renewal timer and options if you later add aliases or additional domains.
Step 5: Complete the Landing CMS setup
The web helper checks the required file paths, then the admin panel creates its password and lets you define fields.
- Open
https://YOUR_DOMAIN/install.phpin a browser. The helper should confirm that the application can read its files and write the three data directories. - Open
https://YOUR_DOMAIN/cms/and create a strong administrator password when prompted. Do not reuse the VPS, SSH, or email password. - Sign in, create a first field such as a page title or hero message, and save it. The public controller can then read that field from your landing-page PHP template.
- Remove the setup helper after the administrator password works. This prevents an old diagnostic endpoint from remaining on the public site.
sudo rm -f /var/www/landing/install.php
sudo restorecon -v /var/www/landing
Do not remove cms/_db or the TinyMCE upload folders. They hold the file-based settings, fields, uploaded originals, and thumbnails that the CMS needs after installation.
Verify the installation
These checks confirm that the services start, HTTPS responds, the admin path is reachable, and firewalld exposes only the expected web services.
sudo systemctl is-active httpd php-fpm firewalld
curl -fsSI https://YOUR_DOMAIN/
curl -fsSI https://YOUR_DOMAIN/cms/
sudo firewall-cmd --zone=public --list-services
active
active
active
HTTP/2 200
HTTP/2 200
ssh http https
The admin request may instead return a redirect to its login page, which is also normal. The important result is that it stays on HTTPS and does not return a 403 or 5xx response.
Troubleshooting
The installer says a directory is not writable
Apache must own the three data directories, and SELinux must label them httpd_sys_rw_content_t. Reapply the ownership and labels without making the whole web root writable.
sudo chown -R apache:apache /var/www/landing/assets/_cms/uploads/tinymce/source /var/www/landing/assets/_cms/uploads/tinymce/thumbs /var/www/landing/cms/_db
sudo restorecon -Rv /var/www/landing/assets/_cms/uploads/tinymce/source /var/www/landing/assets/_cms/uploads/tinymce/thumbs /var/www/landing/cms/_db
sudo systemctl restart php-fpm httpd
503 Service Unavailable or PHP code appears in the response
PHP-FPM may be stopped, or Apache may have a syntax error in the generated virtual host. Check both the service log and the configuration test before restarting.
sudo systemctl status php-fpm --no-pager
sudo journalctl -u php-fpm -n 40 --no-pager
sudo apachectl configtest
sudo systemctl restart php-fpm httpd
Apache returns 403 Forbidden
The usual causes are a wrong DocumentRoot, a missing Require all granted, or an SELinux label that was lost after copying the files. Inspect the active vhost and restore the contexts.
sudo apachectl -S
sudo restorecon -Rv /var/www/landing
sudo tail -n 40 /var/log/httpd/YOUR_DOMAIN-error.log
Certbot reports a failed HTTP-01 challenge
The domain may still point to an old address, or port 80 may be blocked upstream. Confirm the public DNS result and firewall services, then retry only after the hostname reaches this VPS.
sudo firewall-cmd --zone=public --list-services
curl -I http://YOUR_DOMAIN/.well-known/acme-challenge/test
A 404 from this server is acceptable for the dummy challenge path; a timeout or response from another site means DNS or an upstream firewall still needs correction.
Hardening
- Back up
/var/www/landing/cms/_dband both TinyMCE upload directories before changing the application or PHP packages. - Keep port 3306 closed; this CMS has no database listener to serve.
- Apply AlmaLinux security updates regularly and review
/var/log/httpd/YOUR_DOMAIN-error.logafter updates. - Treat the project as legacy software: test PHP or CMS upgrades on a copy before changing the production files.
FAQ
Does Landing CMS need MariaDB or MySQL?
No. Landing CMS stores its settings and fields in files under cms/_db, while TinyMCE assets use the upload directories. MariaDB is not part of the application’s request path and does not need to be installed for this guide.
Where is the Landing CMS admin panel?
Use https://YOUR_DOMAIN/cms/ after the first-run helper has passed. The helper itself is at https://YOUR_DOMAIN/install.php and should be removed after the admin password is created.
Why does this guide not use chmod 777?
World-writable permissions allow any local process to alter application data and code. Apache owns only the three directories that need writes, while root owns the rest of the release; SELinux adds another access-control layer.
Can I run Landing CMS on an IP address instead of a domain?
You can test Apache over the VPS IP, but a domain is strongly recommended for the virtual host and required for a normal Let’s Encrypt certificate. Point the domain to the server before completing the HTTPS step.