{"id":1203,"date":"2026-11-29T13:00:00","date_gmt":"2026-11-29T13:00:00","guid":{"rendered":"https:\/\/vpslake.com\/blog\/?p=1203"},"modified":"2026-11-29T13:00:00","modified_gmt":"2026-11-29T13:00:00","slug":"install-laravel-almalinux-8","status":"publish","type":"post","link":"https:\/\/vpslake.com\/blog\/2026\/11\/29\/install-laravel-almalinux-8\/","title":{"rendered":"How to Install Laravel on AlmaLinux 8"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Install Laravel on AlmaLinux 8 in about 20 minutes and finish with a Laravel 13 application served by Apache and PHP-FPM. You will configure MariaDB, Composer, firewalld, HTTPS, and SELinux without turning off the protection that keeps the server safe.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>A fresh 64-bit AlmaLinux 8 VPS with at least 2 GB of RAM and 15 GB of available disk space.<\/li>\n\n\n<li>SSH access as <code>root<\/code>, or a user with working <code>sudo<\/code> privileges and outbound HTTPS access.<\/li>\n\n\n<li>A DNS name such as <code>YOUR_DOMAIN<\/code> pointing to the VPS. You need a real domain for the HTTPS step.<\/li>\n\n\n<li>A <a href=\"https:\/\/vpslake.com\/buy-vps\">VPSLake Linux VPS<\/a> with root access if you need a server for this installation.<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The commands use <code>sudo<\/code> for a non-root account. If you are logged in as <code>root<\/code>, remove <code>sudo<\/code>. Replace every uppercase placeholder before running the related command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Update AlmaLinux 8 and install the server packages<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Updating first gives the PHP repository and web stack current AlmaLinux 8 dependencies.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf upgrade -y\nsudo dnf install -y epel-release curl git unzip firewalld httpd mariadb-server mariadb policycoreutils-python-utils<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Laravel 13 needs PHP 8.3 or newer. AlmaLinux 8&#8217;s default AppStream PHP is older, so add Remi&#8217;s Enterprise Linux 8 repository and select its PHP 8.3 module stream.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install -y https:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm\nsudo dnf module reset php -y\nsudo dnf module install php:remi-8.3 -y\nsudo dnf install -y php-fpm php-mysqlnd php-pecl-zip php-gd php-mbstring php-curl php-xml php-bcmath php-opcache\nsudo systemctl enable --now firewalld httpd php-fpm mariadb\nphp -v\nsudo systemctl is-active firewalld httpd php-fpm mariadb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The version should begin with PHP 8.3, and each service check should print <code>active<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PHP 8.3.x (cli) ...\nactive\nactive\nactive\nactive<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Install Composer with checksum verification<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Composer resolves Laravel&#8217;s PHP dependencies; checking the installer&#8217;s SHA-384 value prevents a damaged or tampered download from being installed.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\nEXPECTED_CHECKSUM=\"$(curl -fsSL https:\/\/composer.github.io\/installer.sig)\"\nphp -r \"copy('https:\/\/getcomposer.org\/installer', 'composer-setup.php');\"\nACTUAL_CHECKSUM=\"$(php -r \"echo hash_file('sha384', 'composer-setup.php');\")\"\nif [ \"$EXPECTED_CHECKSUM\" != \"$ACTUAL_CHECKSUM\" ]; then echo 'ERROR: Invalid Composer installer checksum'; rm -f composer-setup.php; exit 1; fi\nsudo php composer-setup.php --install-dir=\/usr\/local\/bin --filename=composer\nrm -f composer-setup.php\ncomposer --version<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The final line should report Composer 2.x. The <a href=\"https:\/\/getcomposer.org\/doc\/00-intro.md\" target=\"_blank\" rel=\"noopener\">Composer installation guide<\/a> explains this checksum-based installer workflow.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Composer version 2.x.x 20xx-xx-xx<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Create a MariaDB database and application user<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Laravel should connect with a narrowly scoped account instead of using MariaDB&#8217;s administrative login.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mariadb-secure-installation<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Keep local socket authentication for the database administrator, remove anonymous accounts, reject remote root login, remove the test database, and reload the privilege tables when prompted. Then create a database and two local-only account entries; the second host entry matches Laravel&#8217;s <code>127.0.0.1<\/code> connection.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mariadb &lt;&lt;'SQL'\nCREATE DATABASE laravel_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;\nCREATE USER 'laravel_user'@'localhost' IDENTIFIED BY 'YOUR_DB_PASSWORD';\nCREATE USER 'laravel_user'@'127.0.0.1' IDENTIFIED BY 'YOUR_DB_PASSWORD';\nGRANT ALL PRIVILEGES ON laravel_db.* TO 'laravel_user'@'localhost';\nGRANT ALL PRIVILEGES ON laravel_db.* TO 'laravel_user'@'127.0.0.1';\nFLUSH PRIVILEGES;\nSQL\nsudo mariadb -e \"SHOW DATABASES LIKE 'laravel_db';\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use a long, unique password in place of <code>YOUR_DB_PASSWORD<\/code>. The check should return the new database name.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Database (laravel_db)\nlaravel_db<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Do not open port 3306 in the firewall; Apache and MariaDB are on the same VPS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Create the Laravel application<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Installing the project as the <code>apache<\/code> user avoids leaving a root-owned Composer cache and gives PHP-FPM access to the application files.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo install -d -o apache -g apache \/var\/www\/laravelapp \/usr\/share\/httpd\/.cache \/usr\/share\/httpd\/.config\nsudo -u apache -H composer create-project --no-interaction --prefer-dist laravel\/laravel:^13.0 \/var\/www\/laravelapp<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Laravel&#8217;s <a href=\"https:\/\/laravel.com\/docs\/13.x\/deployment\" target=\"_blank\" rel=\"noopener\">deployment documentation<\/a> requires PHP 8.3 or newer, recommends serving only the <code>public<\/code> directory, and identifies <code>storage<\/code> and <code>bootstrap\/cache<\/code> as writable paths.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open the environment file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudoedit \/var\/www\/laravelapp\/.env<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Set these values, replacing <code>YOUR_DOMAIN<\/code> and <code>YOUR_DB_PASSWORD<\/code>. Keep the generated <code>APP_KEY<\/code> line for the next command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>APP_ENV=production\nAPP_DEBUG=false\nAPP_URL=http:\/\/YOUR_DOMAIN\nDB_CONNECTION=mysql\nDB_HOST=127.0.0.1\nDB_PORT=3306\nDB_DATABASE=laravel_db\nDB_USERNAME=laravel_user\nDB_PASSWORD=YOUR_DB_PASSWORD<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save the file, generate the encryption key, and run the initial migrations:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -u apache -H php \/var\/www\/laravelapp\/artisan key:generate --force\nsudo -u apache -H php \/var\/www\/laravelapp\/artisan config:clear\nsudo -u apache -H php \/var\/www\/laravelapp\/artisan migrate --force<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Successful migrations end with <code>DONE<\/code> or <code>Ran<\/code>. Do not run <code>db:seed<\/code> unless your own application has seed data you intend to load.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Configure Apache and PHP-FPM<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Apache must expose only Laravel&#8217;s <code>public<\/code> directory, while PHP-FPM executes PHP through its Unix socket.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create a virtual host and replace <code>YOUR_DOMAIN<\/code> before saving it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo tee \/etc\/httpd\/conf.d\/zz-laravel.conf &gt; \/dev\/null &lt;&lt;'APACHE'\n&lt;VirtualHost *:80&gt;\n    ServerName YOUR_DOMAIN\n    DocumentRoot \/var\/www\/laravelapp\/public\n    DirectoryIndex index.php\n\n    &lt;Directory \/var\/www\/laravelapp\/public&gt;\n        AllowOverride All\n        Options -Indexes +FollowSymLinks\n        Require all granted\n    &lt;\/Directory&gt;\n\n    &lt;FilesMatch \\.php$&gt;\n        SetHandler \"proxy:unix:\/run\/php-fpm\/www.sock|fcgi:\/\/localhost\"\n    &lt;\/FilesMatch&gt;\n\n    ErrorLog \/var\/log\/httpd\/laravel-error.log\n    CustomLog \/var\/log\/httpd\/laravel-access.log combined\n&lt;\/VirtualHost&gt;\nAPACHE\nsudo apachectl configtest\nsudo systemctl reload httpd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Syntax OK<\/code> confirms Apache accepted the configuration. The <code>zz-<\/code> prefix makes this virtual host&#8217;s PHP-FPM handler load after any generic PHP configuration shipped by the package.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Keep SELinux enforcing and set permissions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Laravel needs write access only in its cache and storage paths; persistent SELinux labels allow that access without making the entire project writable.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo semanage fcontext -a -t httpd_sys_rw_content_t '\/var\/www\/laravelapp\/(storage|bootstrap\/cache)(\/.*)?'\nsudo restorecon -Rv \/var\/www\/laravelapp\nsudo chown -R root:apache \/var\/www\/laravelapp\nsudo find \/var\/www\/laravelapp -type d -exec chmod 0750 {} +\nsudo find \/var\/www\/laravelapp -type f -exec chmod 0640 {} +\nsudo chown -R apache:apache \/var\/www\/laravelapp\/storage \/var\/www\/laravelapp\/bootstrap\/cache\nsudo find \/var\/www\/laravelapp\/storage \/var\/www\/laravelapp\/bootstrap\/cache -type d -exec chmod 0770 {} +\nsudo find \/var\/www\/laravelapp\/storage \/var\/www\/laravelapp\/bootstrap\/cache -type f -exec chmod 0660 {} +\nsudo setsebool -P httpd_can_network_connect_db on<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The database boolean is needed because the web process connects to MariaDB. Leave SELinux in enforcing mode and use <code>restorecon<\/code> again after deploying files outside the original project tree.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7: Open web ports and enable HTTPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Only HTTP and HTTPS need to be public; leave MariaDB private and keep your existing SSH rule unchanged.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo firewall-cmd --zone=public --permanent --add-service=http\nsudo firewall-cmd --zone=public --permanent --add-service=https\nsudo firewall-cmd --reload\nsudo firewall-cmd --zone=public --list-services<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After <code>YOUR_DOMAIN<\/code> resolves to the VPS, install the Apache Certbot plugin and request a certificate. Replace <code>YOUR_EMAIL<\/code> with an address that can receive renewal notices.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install -y mod_ssl certbot python3-certbot-apache\nsudo certbot --apache --redirect -d YOUR_DOMAIN -m YOUR_EMAIL --agree-tos --no-eff-email\nsudo sed -i 's#^APP_URL=.*#APP_URL=https:\/\/YOUR_DOMAIN#' \/var\/www\/laravelapp\/.env\nsudo -u apache -H php \/var\/www\/laravelapp\/artisan config:clear\nsudo -u apache -H php \/var\/www\/laravelapp\/artisan config:cache<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Certbot updates Apache to redirect HTTP to HTTPS. If DNS is not ready yet, skip the certificate command, test over HTTP, and do not use the site for passwords or other sensitive data until TLS is active.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify the Laravel installation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These checks confirm the services, Apache syntax, Laravel version, database migrations, and HTTPS response. Use the same domain in the Host header if you skipped Certbot.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl is-active httpd php-fpm mariadb firewalld\nsudo apachectl configtest\nsudo -u apache -H php \/var\/www\/laravelapp\/artisan --version\nsudo -u apache -H php \/var\/www\/laravelapp\/artisan migrate:status\ncurl -fsSI https:\/\/YOUR_DOMAIN\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Expected results include active services, <code>Syntax OK<\/code>, a Laravel 13 version, migration statuses, and a successful HTTPS response.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>active\nactive\nactive\nactive\nSyntax OK\nLaravel Framework 13.x\nHTTP\/2 200<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Open <code>https:\/\/YOUR_DOMAIN<\/code> in a browser. The default Laravel page proves that Apache is using the <code>public<\/code> directory and PHP-FPM is executing the application.<\/p>\n\n\n\n<aside class=\"vl-element vl-cta-banner\" aria-label=\"Run Laravel on a Linux VPS\">\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\">Run Laravel on a Linux VPS<\/h3>\n\t\t<p class=\"vl-cta-banner__text\">Get root access and the resources needed for Laravel, PHP, and MariaDB.<\/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\"><code>Your requirements could not be resolved<\/code> during Composer install<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Composer is probably using the AlmaLinux 8 PHP 8.0 stream, or an extension is missing. Check the CLI version and the extensions Laravel requires, then confirm the Remi module is active.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -v\nphp -m | grep -E 'bcmath|ctype|curl|dom|fileinfo|mbstring|openssl|PDO|tokenizer|xml|zip'\nsudo dnf module list php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The CLI should show PHP 8.3 or later and the module list should mark <code>remi-8.3<\/code> as enabled. If another stream is enabled, reset PHP and install <code>php:remi-8.3\/common<\/code> again before rerunning Composer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>SQLSTATE[HY000] [1045] Access denied<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The password in <code>.env<\/code> does not match the MariaDB account, or Laravel is still using cached settings. Test the account directly and clear the configuration cache after correcting the file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mariadb -h 127.0.0.1 -u laravel_user -p laravel_db -e 'SELECT 1;'\nsudo -u apache -H php \/var\/www\/laravelapp\/artisan config:clear\nsudo -u apache -H php \/var\/www\/laravelapp\/artisan migrate --force<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the real database password when prompted. A result containing <code>1<\/code> proves the account works independently of Laravel.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>403 Forbidden<\/code> or <code>Permission denied<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Apache may have lost the group permissions or SELinux labels after files were copied into the project. Restore both without disabling SELinux.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo restorecon -Rv \/var\/www\/laravelapp\nsudo chown -R root:apache \/var\/www\/laravelapp\nsudo chown -R apache:apache \/var\/www\/laravelapp\/storage \/var\/www\/laravelapp\/bootstrap\/cache\nsudo find \/var\/www\/laravelapp\/storage \/var\/www\/laravelapp\/bootstrap\/cache -type d -exec chmod 0770 {} +\nsudo find \/var\/www\/laravelapp\/storage \/var\/www\/laravelapp\/bootstrap\/cache -type f -exec chmod 0660 {} +\nsudo systemctl reload httpd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If it still fails, inspect recent AVC denials with <code>sudo ausearch -m AVC -ts recent<\/code> and correct the reported path instead of using <code>chmod 777<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>503 Service Unavailable<\/code> or PHP source appears in the browser<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PHP-FPM may be stopped, or Apache may be pointing at the wrong socket. Check the service log and the socket path used in <code>zz-laravel.conf<\/code>.<\/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 test -S \/run\/php-fpm\/www.sock &amp;&amp; echo 'PHP-FPM socket exists'\nsudo apachectl configtest\nsudo systemctl restart php-fpm httpd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The service should be running, the socket test should print <code>PHP-FPM socket exists<\/code>, and Apache should return <code>Syntax OK<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Hardening<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>Keep <code>APP_DEBUG=false<\/code> and run <code>php artisan config:cache<\/code> only after <code>.env<\/code> contains its final production values.<\/li>\n\n\n<li>Schedule backups for <code>\/var\/www\/laravelapp<\/code> and the MariaDB database before upgrades.<\/li>\n\n\n<li>Do not expose port 3306; allow SSH only from trusted addresses where your hosting firewall supports source restrictions.<\/li>\n\n\n<li>Run <code>sudo dnf upgrade -y<\/code> regularly and renew the certificate with <code>sudo certbot renew --dry-run<\/code> before relying on automatic renewal.<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Which Laravel release does this guide install?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It pins the new project to Laravel 13 with <code>laravel\/laravel:^13.0<\/code>. That release supports PHP 8.3, which is why this AlmaLinux 8 guide selects Remi&#8217;s PHP 8.3 stream.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why use Remi on AlmaLinux 8?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">AlmaLinux 8&#8217;s standard PHP stream is older than the version required by current Laravel. Remi supplies a maintained PHP 8.3 stream using the normal DNF module mechanism, so PHP and its extensions remain managed as packages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I test Laravel without a domain?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can test Apache over the VPS IP or with a temporary <code>\/etc\/hosts<\/code> entry, but Certbot needs a publicly resolving domain. Do not treat an HTTP-only IP test as a production deployment because the connection is not encrypted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should I run <code>php artisan serve<\/code> on the VPS?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. That command is intended for local development and is not a replacement for a managed web server. Apache and PHP-FPM keep the application behind a service manager and allow you to use HTTPS, firewall rules, and normal logs.<\/p>\n\n\n\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Which Laravel release does this guide install?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"It pins the new project to Laravel 13 with `laravel\/laravel:^13.0`. That release supports PHP 8.3, which is why this AlmaLinux 8 guide selects Remi's PHP 8.3 stream.\"}}, {\"@type\": \"Question\", \"name\": \"Why use Remi on AlmaLinux 8?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"AlmaLinux 8's standard PHP stream is older than the version required by current Laravel. Remi supplies a maintained PHP 8.3 stream using the normal DNF module mechanism, so PHP and its extensions remain managed as packages.\"}}, {\"@type\": \"Question\", \"name\": \"Can I test Laravel without a domain?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"You can test Apache over the VPS IP or with a temporary `\/etc\/hosts` entry, but Certbot needs a publicly resolving domain. Do not treat an HTTP-only IP test as a production deployment because the connection is not encrypted.\"}}, {\"@type\": \"Question\", \"name\": \"Should I run `php artisan serve` on the VPS?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. That command is intended for local development and is not a replacement for a managed web server. Apache and PHP-FPM keep the application behind a service manager and allow you to use HTTPS, firewall rules, and normal logs.\"}}]}<\/script>\n\n","protected":false},"excerpt":{"rendered":"Install Laravel on AlmaLinux 8 with PHP 8.3, Apache, MariaDB, Composer, firewalld, TLS, and SELinux-safe permissions for a production-ready app.","protected":false},"author":1,"featured_media":1204,"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,154,73,72],"class_list":["post-1203","post","type-post","status-publish","format-standard","has-post-thumbnail","category-guides","category-vps-hosting","tag-almalinux-8","tag-apache","tag-laravel","tag-mariadb","tag-php","cs-entry"],"_links":{"self":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1203","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=1203"}],"version-history":[{"count":1,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1203\/revisions"}],"predecessor-version":[{"id":4268,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1203\/revisions\/4268"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media\/1204"}],"wp:attachment":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media?parent=1203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/categories?post=1203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/tags?post=1203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}