{"id":1197,"date":"2026-11-28T18:00:00","date_gmt":"2026-11-28T18:00:00","guid":{"rendered":"https:\/\/vpslake.com\/blog\/?p=1197"},"modified":"2026-11-28T18:00:00","modified_gmt":"2026-11-28T18:00:00","slug":"install-landing-cms-almalinux-8","status":"publish","type":"post","link":"https:\/\/vpslake.com\/blog\/2026\/11\/28\/install-landing-cms-almalinux-8\/","title":{"rendered":"How to Install Landing CMS on AlmaLinux 8 with LAMP"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>AlmaLinux 8.10 or a fully updated AlmaLinux 8 VPS 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 pointing to the VPS before you request TLS.<\/li>\n\n\n<li>Ports 22, 80, and 443 reachable from your workstation. Do not expose MariaDB for this application; Landing CMS stores content in files.<\/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 the LAMP 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\">The project\u2019s official <a href=\"https:\/\/github.com\/Elias-Black\/Landing-CMS\" target=\"_blank\" rel=\"noopener\">Landing CMS repository<\/a> 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.<\/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 the commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Install Apache, PHP, and the AlmaLinux tools<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Landing CMS needs a web server and PHP, while DNF modules provide the current PHP stream available for AlmaLinux 8.<\/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-fpm php-gd php-curl php-mbstring php-xml php-zip unzip curl firewalld policycoreutils-python-utils mod_ssl\nsudo systemctl enable --now firewalld httpd php-fpm\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 systemctl is-active httpd php-fpm firewalld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">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 <code>active<\/code> lines.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PHP 8.2.x (cli) (built: ...)\nactive\nactive\nactive<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Landing CMS does not use a database, so installing MariaDB only to satisfy the word \u201cLAMP\u201d adds an unused network service. You can install MariaDB separately for another application, but leave its port closed for this deployment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Download the pinned Landing CMS release<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using the tagged archive avoids silently changing application code when the project\u2019s default branch changes.<\/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 produce no output when they pass. Landing CMS includes <code>install.php<\/code> for its first-run checks and <code>cms\/<\/code> for the administrative area; <code>_db<\/code> is a folder of application files, 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 folders that must accept uploads or content files. This keeps a compromised PHP process from rewriting the application itself.<\/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\nsudo chown -R apache:apache \/var\/www\/landing\/assets\/_cms\/uploads\/tinymce\/thumbs\nsudo chown -R apache:apache \/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\">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.<\/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 named virtual host sends only <code>YOUR_DOMAIN<\/code> to Landing CMS and permits the project\u2019s local <code>.htaccess<\/code> rules without enabling directory listings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace every <code>YOUR_DOMAIN<\/code> token in the block before running it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo tee \/etc\/httpd\/conf.d\/YOUR_DOMAIN.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\/YOUR_DOMAIN-error.log\n    CustomLog \/var\/log\/httpd\/YOUR_DOMAIN-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\">The web root is separate from Apache\u2019s 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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check that the hostname resolves to this server before continuing. A local configuration test cannot prove that DNS or an outside firewall is correct.<\/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 admin password and uploaded content, and Certbot can update this Apache virtual host for you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run these commands 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\">official Apache instructions<\/a> explain the renewal timer and options if you later add aliases or additional domains.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Complete the Landing CMS setup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The web helper checks the required file paths, then the admin panel creates its password and lets you define fields.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Open <code>https:\/\/YOUR_DOMAIN\/install.php<\/code> in a browser. The helper should confirm that the application can read its files and write the three data directories.<\/li>\n\n\n<li>Open <code>https:\/\/YOUR_DOMAIN\/cms\/<\/code> and create a strong administrator password when prompted. 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 controller can then read that field from your landing-page PHP template.<\/li>\n\n\n<li>Remove the setup helper after the administrator password works. This prevents an old diagnostic endpoint from remaining on the public site.<\/li>\n\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm -f \/var\/www\/landing\/install.php\nsudo restorecon -v \/var\/www\/landing<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Do not remove <code>cms\/_db<\/code> or the TinyMCE upload folders. They hold the file-based settings, fields, uploaded originals, and thumbnails that the CMS needs after installation.<\/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 the services start, HTTPS responds, the admin path is reachable, and firewalld exposes only the expected web services.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl is-active httpd php-fpm firewalld\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\nactive\nHTTP\/2 200\nHTTP\/2 200\nssh http https<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<aside class=\"vl-element vl-cta-banner\" aria-label=\"Deploy Landing CMS today\">\n\t<div class=\"vl-cta-banner__content\">\n\t\t<p class=\"vl-cta-banner__eyebrow\">AlmaLinux VPS<\/p>\n\t\t<h3 class=\"vl-cta-banner__title\">Deploy Landing CMS today<\/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 installer says a directory is not writable<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Apache must own the three data directories, and SELinux must label them <code>httpd_sys_rw_content_t<\/code>. Reapply the ownership and labels without making the whole web root 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 restart php-fpm httpd<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><code>503 Service Unavailable<\/code> or PHP code appears in the response<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl status php-fpm --no-pager\nsudo journalctl -u php-fpm -n 40 --no-pager\nsudo apachectl configtest\nsudo systemctl restart php-fpm 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\">The usual causes are a wrong <code>DocumentRoot<\/code>, a missing <code>Require all granted<\/code>, or an SELinux label that was lost after copying the files. Inspect the active vhost and restore the contexts.<\/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\/YOUR_DOMAIN-error.log<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Certbot reports a failed HTTP-01 challenge<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo firewall-cmd --zone=public --list-services\ncurl -I http:\/\/YOUR_DOMAIN\/.well-known\/acme-challenge\/test<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A <code>404<\/code> 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.<\/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 port 3306 closed; this CMS has no database listener to serve.<\/li>\n\n\n<li>Apply AlmaLinux security updates regularly and review <code>\/var\/log\/httpd\/YOUR_DOMAIN-error.log<\/code> after updates.<\/li>\n\n\n<li>Treat the project as legacy software: test PHP or CMS upgrades on a copy before changing the production 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. Landing CMS stores its settings and fields in files under <code>cms\/_db<\/code>, while TinyMCE assets use the upload directories. MariaDB is not part of the application\u2019s request path and does not need to be installed for this guide.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Where is the Landing CMS admin panel?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use <code>https:\/\/YOUR_DOMAIN\/cms\/<\/code> after the first-run helper has passed. The helper itself is at <code>https:\/\/YOUR_DOMAIN\/install.php<\/code> and should be removed after the admin password is created.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does this guide not use <code>chmod 777<\/code>?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I run Landing CMS on an IP address instead of a domain?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can test Apache over the VPS IP, but a domain is strongly recommended for the virtual host and required for a normal Let\u2019s Encrypt certificate. Point the domain to the server before completing 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. 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\u2019s request path and does not need to be installed for this guide.\"}}, {\"@type\": \"Question\", \"name\": \"Where is the Landing CMS admin panel?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"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.\"}}, {\"@type\": \"Question\", \"name\": \"Why does this guide not use `chmod 777`?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"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.\"}}, {\"@type\": \"Question\", \"name\": \"Can I run Landing CMS on an IP address instead of a domain?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"You can test Apache over the VPS IP, but a domain is strongly recommended for the virtual host and required for a normal Let\u2019s Encrypt certificate. Point the domain to the server before completing the HTTPS step.\"}}]}<\/script>\n\n","protected":false},"excerpt":{"rendered":"Install Landing CMS on AlmaLinux 8 with Apache, PHP 8.2, HTTPS, SELinux-safe permissions, and a secure browser-based admin setup in minutes.","protected":false},"author":1,"featured_media":1198,"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":[94,71,117,153,72],"class_list":["post-1197","post","type-post","status-publish","format-standard","has-post-thumbnail","category-guides","category-vps-hosting","tag-almalinux-8","tag-apache","tag-lamp-stack","tag-landing-cms","tag-php","cs-entry"],"_links":{"self":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1197","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=1197"}],"version-history":[{"count":1,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1197\/revisions"}],"predecessor-version":[{"id":4257,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1197\/revisions\/4257"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media\/1198"}],"wp:attachment":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media?parent=1197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/categories?post=1197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/tags?post=1197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}