{"id":1199,"date":"2026-11-29T03:00:00","date_gmt":"2026-11-29T03:00:00","guid":{"rendered":"https:\/\/vpslake.com\/blog\/?p=1199"},"modified":"2026-11-29T03:00:00","modified_gmt":"2026-11-29T03:00:00","slug":"install-landing-cms-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/vpslake.com\/blog\/2026\/11\/29\/install-landing-cms-rocky-linux-8\/","title":{"rendered":"How to Install Landing CMS on Rocky Linux 8"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Install Landing CMS on Rocky Linux 8 with Apache and PHP 8.2 in about 15 minutes. You will finish with a database-free landing-page editor at your domain, HTTPS enabled, and file permissions that let the CMS write only where it needs to.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>Rocky Linux 8.10, fully updated, with at least 1 GB of RAM and 5 GB of free disk space.<\/li>\n\n\n<li>SSH access as <code>root<\/code>, or a normal account with working <code>sudo<\/code> privileges.<\/li>\n\n\n<li>A public domain such as <code>YOUR_DOMAIN<\/code>, with its DNS A record already pointing to the VPS.<\/li>\n\n\n<li>Ports 22, 80, and 443 reachable from your workstation and the public Internet.<\/li>\n\n\n<li>A <a href=\"https:\/\/vpslake.com\/buy-vps\">VPSLake Linux VPS<\/a> with a public IPv4 address if you need a server for this stack.<\/li>\n\n\n<li>A long, unique password for the Landing CMS administrator account.<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Landing CMS is an old, database-free alpha project. Its <a href=\"https:\/\/github.com\/Elias-Black\/Landing-CMS\" target=\"_blank\" rel=\"noopener\">official repository<\/a> documents release 0.0.6 and the file directories it must be able to write, so this guide pins that release rather than downloading an ever-changing branch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The commands assume a non-root SSH account. If you are logged in as <code>root<\/code>, remove <code>sudo<\/code> from each command. Replace every uppercase placeholder before running a command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Install Apache, PHP, and firewalld<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Apache serves the landing page, while Rocky Linux 8\u2019s PHP 8.2 AppStream supplies the runtime and its common extensions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf upgrade -y\nsudo dnf module reset php -y\nsudo dnf module enable php:8.2 -y\nsudo dnf install -y httpd php php-cli php-gd php-curl php-mbstring php-xml php-zip unzip curl firewalld policycoreutils-python-utils mod_ssl\nsudo systemctl enable --now firewalld httpd\nsudo firewall-cmd --permanent --zone=public --add-service=ssh\nsudo firewall-cmd --permanent --zone=public --add-service=http\nsudo firewall-cmd --permanent --zone=public --add-service=https\nsudo firewall-cmd --reload\nphp -v\nsudo apachectl configtest\nsudo systemctl is-active httpd firewalld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should see PHP 8.2, <code>Syntax OK<\/code>, and two <code>active<\/code> lines. Rocky\u2019s <a href=\"https:\/\/docs.rockylinux.org\/8\/guides\/web\/php\/\" target=\"_blank\" rel=\"noopener\">PHP documentation<\/a> uses the same AppStream selection. This installation uses Apache\u2019s packaged PHP module; PHP-FPM is not needed for this small application.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Landing CMS does not query a database. MariaDB is therefore deliberately not installed or exposed: adding an unused database service would increase maintenance and the attack surface without helping this application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Download Landing CMS 0.0.6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Pinning the tagged archive makes a later repository change less likely to alter your production files unexpectedly.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\ncurl -fL -o landing-cms-0.0.6.zip https:\/\/github.com\/Elias-Black\/Landing-CMS\/archive\/refs\/tags\/0.0.6.zip\nunzip -q landing-cms-0.0.6.zip\nsudo install -d -o root -g apache -m 0750 \/var\/www\/landing\nsudo cp -a \/tmp\/Landing-CMS-0.0.6\/. \/var\/www\/landing\/\nsudo test -f \/var\/www\/landing\/install.php\nsudo test -d \/var\/www\/landing\/cms\/_db<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The two tests print nothing when they pass. The first file is the project\u2019s setup checker; <code>cms\/_db<\/code> is a directory of plain-text application data, not a MariaDB database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set root ownership on the application code, then give Apache ownership only of the directories that accept CMS data or uploaded images. This prevents a PHP process from rewriting the application files themselves.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R root:apache \/var\/www\/landing\nsudo find \/var\/www\/landing -type d -exec chmod 0750 {} +\nsudo find \/var\/www\/landing -type f -exec chmod 0640 {} +\nsudo 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\nsudo find \/var\/www\/landing\/assets\/_cms\/uploads\/tinymce\/source -type d -exec chmod 0700 {} +\nsudo find \/var\/www\/landing\/assets\/_cms\/uploads\/tinymce\/source -type f -exec chmod 0600 {} +\nsudo find \/var\/www\/landing\/assets\/_cms\/uploads\/tinymce\/thumbs -type d -exec chmod 0700 {} +\nsudo find \/var\/www\/landing\/assets\/_cms\/uploads\/tinymce\/thumbs -type f -exec chmod 0600 {} +\nsudo find \/var\/www\/landing\/cms\/_db -type d -exec chmod 0700 {} +\nsudo find \/var\/www\/landing\/cms\/_db -type f -exec chmod 0600 {} +<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">SELinux must allow Apache to read the site and write only those three data paths. Persistent file-context rules are safer than changing SELinux to permissive mode.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo semanage fcontext -a -t httpd_sys_content_t '\/var\/www\/landing(\/.*)?'\nsudo semanage fcontext -a -t httpd_sys_rw_content_t '\/var\/www\/landing\/assets\/_cms\/uploads\/tinymce\/source(\/.*)?'\nsudo semanage fcontext -a -t httpd_sys_rw_content_t '\/var\/www\/landing\/assets\/_cms\/uploads\/tinymce\/thumbs(\/.*)?'\nsudo semanage fcontext -a -t httpd_sys_rw_content_t '\/var\/www\/landing\/cms\/_db(\/.*)?'\nsudo restorecon -Rv \/var\/www\/landing<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Create the Apache virtual host<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A dedicated virtual host sends requests for your domain to the CMS and disables directory listings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>YOUR_DOMAIN<\/code> in the block with the real hostname before you paste it. The file is named <code>landing.conf<\/code>, so the placeholder does not become part of a filename.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo tee \/etc\/httpd\/conf.d\/landing.conf &gt; \/dev\/null &lt;&lt;'APACHE'\n&lt;VirtualHost *:80&gt;\n    ServerName YOUR_DOMAIN\n    DocumentRoot \/var\/www\/landing\n\n    &lt;Directory \/var\/www\/landing&gt;\n        Options -Indexes +FollowSymLinks\n        AllowOverride All\n        Require all granted\n    &lt;\/Directory&gt;\n\n    DirectoryIndex index.php index.html\n    ErrorLog \/var\/log\/httpd\/landing-error.log\n    CustomLog \/var\/log\/httpd\/landing-access.log combined\n&lt;\/VirtualHost&gt;\nAPACHE\nsudo apachectl configtest\nsudo systemctl reload httpd<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Syntax OK<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check that the hostname resolves to this VPS before requesting a certificate. Apache can pass its local syntax test even when public DNS still points somewhere else.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Enable HTTPS with Let\u2019s Encrypt<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TLS protects the administrator password and uploaded content while it travels between the browser and Apache.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run this only after <code>YOUR_DOMAIN<\/code> resolves to the VPS and port 80 is reachable from the Internet. Replace <code>ADMIN_EMAIL<\/code> with an address that receives certificate notices.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install -y epel-release\nsudo dnf install -y certbot python3-certbot-apache\nsudo certbot --apache --redirect --agree-tos --no-eff-email --email ADMIN_EMAIL -d YOUR_DOMAIN\nsudo certbot renew --dry-run<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Certbot should report a successful simulated renewal. Its <a href=\"https:\/\/eff-certbot.readthedocs.io\/en\/stable\/using.html#apache\" target=\"_blank\" rel=\"noopener\">Apache documentation<\/a> explains the plugin and renewal behavior if you later add another hostname.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Complete the browser-based setup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The setup checker confirms the PHP runtime and write permissions before you create the CMS administrator.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Open <code>https:\/\/YOUR_DOMAIN\/install.php<\/code>. The checker should report that the application files are readable and the three data directories are writable.<\/li>\n\n\n<li>Open <code>https:\/\/YOUR_DOMAIN\/cms\/<\/code> and create a long administrator password. Do not reuse the VPS, SSH, or email password.<\/li>\n\n\n<li>Sign in, create a first field such as a page title or hero message, and save it. The public PHP template can then read that field.<\/li>\n\n\n<li>After the password works, remove the setup checker so it cannot remain as a public diagnostic endpoint.<\/li>\n\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm -f \/var\/www\/landing\/install.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Do not remove <code>cms\/_db<\/code> or either TinyMCE upload directory. They contain the file-based settings, fields, original uploads, and thumbnails that the CMS needs after setup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify the installation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These checks confirm that Apache and firewalld are running, PHP is the expected major version, HTTPS responds, and only the intended firewall services are enabled.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl is-active httpd firewalld\nphp -r 'echo PHP_MAJOR_VERSION, \".\", PHP_MINOR_VERSION, PHP_EOL;'\ncurl -fsSI https:\/\/YOUR_DOMAIN\/\ncurl -fsSI https:\/\/YOUR_DOMAIN\/cms\/\nsudo firewall-cmd --zone=public --list-services<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>active\nactive\n8.2\nHTTP\/1.1 200 OK\nHTTP\/1.1 200 OK\nssh http https<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>\/cms\/<\/code> request may return a redirect to its login page rather than <code>200 OK<\/code>; that is normal. The important checks are that the response stays on HTTPS and does not produce a 403, 404, or 5xx error.<\/p>\n\n\n\n<aside class=\"vl-element vl-cta-banner\" aria-label=\"Launch Landing CMS\">\n\t<div class=\"vl-cta-banner__content\">\n\t\t<p class=\"vl-cta-banner__eyebrow\">Rocky Linux VPS<\/p>\n\t\t<h3 class=\"vl-cta-banner__title\">Launch Landing CMS<\/h3>\n\t\t<p class=\"vl-cta-banner__text\">Get a Linux VPS with root access for Apache, PHP, and your file-based landing pages.<\/p>\n\t<\/div>\n\t<a class=\"vl-cta-banner__button\" href=\"\/buy-vps\" aria-label=\"View Linux VPS plans\">View Linux VPS plans<\/a>\n<\/aside>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">The setup checker says a directory is not writable<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Apache must own the three data paths, and SELinux must label them <code>httpd_sys_rw_content_t<\/code>. Reapply only those permissions instead of making the entire web root world-writable.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>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\nsudo restorecon -Rv \/var\/www\/landing\/assets\/_cms\/uploads\/tinymce\/source \/var\/www\/landing\/assets\/_cms\/uploads\/tinymce\/thumbs \/var\/www\/landing\/cms\/_db\nsudo systemctl reload httpd<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Apache returns <code>403 Forbidden<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A wrong <code>DocumentRoot<\/code>, restrictive directory mode, or missing SELinux context is usually responsible. Inspect the active virtual host and restore the labels.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apachectl -S\nsudo restorecon -Rv \/var\/www\/landing\nsudo tail -n 40 \/var\/log\/httpd\/landing-error.log<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">The browser downloads PHP or shows a server error<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The PHP package may be missing, or Apache may not have loaded its PHP module after the package change. Check the installed package and module list, then restart Apache.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rpm -q php\nsudo httpd -M | grep -i php\nsudo apachectl configtest\nsudo systemctl restart httpd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The module check should show a PHP module and the configuration test should say <code>Syntax OK<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Certbot cannot complete the HTTP-01 challenge<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The domain may still resolve to an old address, or an upstream firewall may block port 80. Confirm the public route before retrying.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo firewall-cmd --zone=public --list-services\ncurl -I http:\/\/YOUR_DOMAIN\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A response from this server proves that HTTP reaches Apache; a timeout or a page from another server means DNS or an upstream firewall still needs correction.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Hardening<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>Back up <code>\/var\/www\/landing\/cms\/_db<\/code> and both TinyMCE upload directories before changing the application or PHP packages.<\/li>\n\n\n<li>Keep TCP port 3306 closed because this installation has no database listener.<\/li>\n\n\n<li>Apply Rocky Linux security updates regularly and review <code>\/var\/log\/httpd\/landing-error.log<\/code> after upgrades.<\/li>\n\n\n<li>Treat Landing CMS as legacy software: test PHP or application updates on a copy before changing the live files.<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Does Landing CMS need MariaDB or MySQL?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. The CMS stores settings and fields in <code>cms\/_db<\/code>, while TinyMCE stores uploaded files in its two upload directories. MariaDB is not part of the application\u2019s request path for this deployment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Which PHP version should I use on Rocky Linux 8?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This guide selects Rocky\u2019s PHP 8.2 AppStream rather than the old default stream. The project is an unmaintained alpha, so test it on a staging VPS before using it for important content or upgrading the PHP stream later.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why not use <code>chmod 777<\/code> for the CMS folders?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">World-writable permissions let any local process alter application data and can hide ownership mistakes. Apache owns only the three directories that must accept writes, while root owns the rest and SELinux supplies an additional access-control layer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I install it using only the VPS IP address?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can test Apache over an IP address, but a domain is the practical choice for a named virtual host and a normal Let\u2019s Encrypt certificate. Point the DNS record to the VPS before starting the HTTPS step.<\/p>\n\n\n\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Does Landing CMS need MariaDB or MySQL?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. The CMS stores settings and fields in `cms\/_db`, while TinyMCE stores uploaded files in its two upload directories. MariaDB is not part of the application\u2019s request path for this deployment.\"}}, {\"@type\": \"Question\", \"name\": \"Which PHP version should I use on Rocky Linux 8?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"This guide selects Rocky\u2019s PHP 8.2 AppStream rather than the old default stream. The project is an unmaintained alpha, so test it on a staging VPS before using it for important content or upgrading the PHP stream later.\"}}, {\"@type\": \"Question\", \"name\": \"Why not use `chmod 777` for the CMS folders?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"World-writable permissions let any local process alter application data and can hide ownership mistakes. Apache owns only the three directories that must accept writes, while root owns the rest and SELinux supplies an additional access-control layer.\"}}, {\"@type\": \"Question\", \"name\": \"Can I install it using only the VPS IP address?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"You can test Apache over an IP address, but a domain is the practical choice for a named virtual host and a normal Let\u2019s Encrypt certificate. Point the DNS record to the VPS before starting the HTTPS step.\"}}]}<\/script>\n\n","protected":false},"excerpt":{"rendered":"Install Landing CMS on Rocky Linux 8 with Apache, PHP 8.2, HTTPS, SELinux-safe permissions, firewall rules, and a secure admin setup in minutes.","protected":false},"author":1,"featured_media":1200,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[5,9],"tags":[71,117,153,72,105],"class_list":["post-1199","post","type-post","status-publish","format-standard","has-post-thumbnail","category-guides","category-vps-hosting","tag-apache","tag-lamp-stack","tag-landing-cms","tag-php","tag-rocky-linux-8","cs-entry"],"_links":{"self":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/comments?post=1199"}],"version-history":[{"count":1,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1199\/revisions"}],"predecessor-version":[{"id":4262,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1199\/revisions\/4262"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media\/1200"}],"wp:attachment":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media?parent=1199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/categories?post=1199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/tags?post=1199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}