{"id":1207,"date":"2026-11-30T03:00:00","date_gmt":"2026-11-30T03:00:00","guid":{"rendered":"https:\/\/vpslake.com\/blog\/?p=1207"},"modified":"2026-11-30T03:00:00","modified_gmt":"2026-11-30T03:00:00","slug":"install-laravel-rocky-linux-10","status":"publish","type":"post","link":"https:\/\/vpslake.com\/blog\/2026\/11\/30\/install-laravel-rocky-linux-10\/","title":{"rendered":"How to Install Laravel on Rocky Linux 10"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To install Laravel PHP framework on Rocky Linux 10, you will build a Laravel 13 application with PHP 8.3, Apache, PHP-FPM, and MariaDB in about 20 minutes. The finished site uses the <code>public<\/code> document root, keeps SELinux enforcing, and can be protected with HTTPS.<\/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 Rocky Linux 10 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 normal account with working <code>sudo<\/code> privileges and outbound HTTPS access.<\/li>\n\n\n<li>A public IP address. A DNS name is needed for a trusted Let&#8217;s Encrypt certificate, although you can perform the first HTTP check with an IP address and host header.<\/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 deployment.<\/li>\n\n<\/ul>\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>. Replace every uppercase placeholder with your own value; use a long, unique database password.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Confirm Rocky Linux 10 and install the web stack<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Rocky Linux 10 supplies PHP 8.3 directly through AppStream, so this release does not need the older <code>dnf module<\/code> stream commands used on earlier Enterprise Linux versions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -E '^(PRETTY_NAME|VERSION_ID|PLATFORM_ID)=' \/etc\/os-release\nuname -m\nsudo dnf upgrade -y\nsudo dnf install -y epel-release firewalld httpd mariadb-server curl git unzip policycoreutils-python-utils php php-cli php-fpm php-mysqlnd php-mbstring php-xml php-bcmath php-curl php-gd php-opcache php-zip\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 release check should identify Rocky Linux 10 and the architecture should normally be <code>x86_64<\/code>. PHP should report version 8.3 or later, and each service should print <code>active<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PRETTY_NAME=\"Rocky Linux 10.x (Red Quartz)\"\nVERSION_ID=\"10.x\"\nx86_64\nPHP 8.3.x (cli) ...\nactive\nactive\nactive\nactive<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The EPEL package is used later for Certbot. <code>php-fpm<\/code> listens on Rocky&#8217;s local Unix socket, <code>\/run\/php-fpm\/www.sock<\/code>, so MariaDB and PHP do not need public network ports.<\/p>\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 downloads Laravel and resolves its PHP dependencies; verifying the installer checksum before running it prevents a modified installer from being executed.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\nEXPECTED_CHECKSUM=\"$(php -r 'copy(\"https:\/\/composer.github.io\/installer.sig\", \"php:\/\/stdout\");')\"\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 last command should show Composer 2.x. This follows Composer&#8217;s <a href=\"https:\/\/getcomposer.org\/doc\/faqs\/how-to-install-composer-programmatically.md\" target=\"_blank\" rel=\"noopener\">official programmatic installation procedure<\/a>; the exact patch number changes as Composer releases updates.<\/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 private MariaDB database<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Give Laravel its own database and account so the application never needs MariaDB&#8217;s administrative credentials.<\/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\">Remove anonymous users and the test database, disallow remote root login, and reload the privilege tables when the hardening wizard asks. Then create the database and local application accounts. Replace <code>YOUR_DB_PASSWORD<\/code> inside the SQL before running it.<\/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\">The two host entries make the account work with Laravel&#8217;s explicit <code>127.0.0.1<\/code> TCP setting as well as local socket-style connections. The check should return the new database, and you should not open port 3306 in firewalld.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Database (laravel_db)\nlaravel_db<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Create and configure the Laravel application<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Install the project as the Apache account so Composer&#8217;s cache and the files used by PHP-FPM start with sensible ownership.<\/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 13 requires PHP 8.3 or newer. Its <a href=\"https:\/\/laravel.com\/docs\/13.x\/deployment\" target=\"_blank\" rel=\"noopener\">deployment documentation<\/a> also requires the web server to point at <code>public<\/code> and identifies <code>storage<\/code> and <code>bootstrap\/cache<\/code> as writable locations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Edit 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\">Keep the generated <code>APP_KEY<\/code> line for now, then set these values. Replace <code>YOUR_DOMAIN<\/code> and <code>YOUR_DB_PASSWORD<\/code> with your real domain and the same password used in MariaDB.<\/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\">Generate the encryption key and run Laravel&#8217;s built-in migrations. The <code>--force<\/code> option is intentional because this is a non-interactive production setup.<\/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\">You should see <code>Application key set successfully<\/code> followed by completed migration lines. Do not run <code>db:seed<\/code> unless your own application supplies seed data that you want to load.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Point Apache and PHP-FPM at Laravel&#8217;s public directory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Serving only <code>public<\/code> keeps <code>.env<\/code>, Composer metadata, and application source outside the document root.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>YOUR_DOMAIN<\/code> before saving this virtual host:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&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;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save it as <code>\/etc\/httpd\/conf.d\/zz-laravel.conf<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudoedit \/etc\/httpd\/conf.d\/zz-laravel.conf\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> filename lets this site-specific PHP-FPM handler load after generic PHP configuration files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Apply safe ownership and SELinux labels<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Only Laravel&#8217;s runtime directories need write access; the application code can remain owned by <code>root<\/code> and readable through the Apache group.<\/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 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 restorecon -Rv \/var\/www\/laravelapp\nsudo setsebool -P httpd_can_network_connect_db on<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The persistent file-context rule lets Apache write logs, sessions, compiled views, and cache files after a relabel. Keep SELinux enforcing; the database boolean permits the local PHP process to reach MariaDB without weakening the rest of the policy.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7: Open only web ports and enable HTTPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Allow SSH, HTTP, and HTTPS in the active firewalld zone, while leaving MariaDB private to the VPS.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FIREWALL_ZONE=\"$(sudo firewall-cmd --get-default-zone)\"\nsudo firewall-cmd --permanent --zone=\"$FIREWALL_ZONE\" --add-service=ssh\nsudo firewall-cmd --permanent --zone=\"$FIREWALL_ZONE\" --add-service=http\nsudo firewall-cmd --permanent --zone=\"$FIREWALL_ZONE\" --add-service=https\nsudo firewall-cmd --reload\nsudo firewall-cmd --zone=\"$FIREWALL_ZONE\" --list-services<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After <code>YOUR_DOMAIN<\/code> points to the VPS, request a certificate. Replace <code>YOUR_EMAIL<\/code> with an address for 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:cache<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Certbot updates Apache and redirects HTTP to HTTPS. If DNS is not ready, postpone Certbot, test over HTTP, and do not use that temporary endpoint for real credentials.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify the Laravel installation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Run these checks before opening the site in a browser:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl is-active firewalld httpd php-fpm mariadb\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 -H 'Host: YOUR_DOMAIN' http:\/\/127.0.0.1\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Expect four <code>active<\/code> lines, <code>Syntax OK<\/code>, a Laravel 13 version, migration statuses, and an HTTP response. After DNS and TLS are configured, also check the public endpoint:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSI https:\/\/YOUR_DOMAIN\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>active\nactive\nactive\nactive\nSyntax OK\nLaravel Framework 13.x\nHTTP\/1.1 200 OK<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Open <code>https:\/\/YOUR_DOMAIN<\/code> in a browser. The default Laravel page confirms 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=\"Deploy Laravel with root access\">\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\">Deploy Laravel with root access<\/h3>\n\t\t<p class=\"vl-cta-banner__text\">Get a Rocky Linux VPS for PHP applications, MariaDB, and secure web traffic.<\/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\">Laravel 13 needs PHP 8.3 or newer. Check that the server is really Rocky Linux 10 and that AppStream metadata is current; do not try <code>dnf module enable<\/code> on this release.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/rocky-release\nsudo dnf whatprovides php\nphp -v\nsudo dnf upgrade -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The available <code>php<\/code> package should be an EL10 AppStream build and <code>php -v<\/code> should begin with 8.3. If an extension is missing, install the matching <code>php-*<\/code> package from the Rocky repositories and rerun 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 account host Laravel selected, or Laravel is using cached settings. Test the TCP account directly, correct <code>.env<\/code>, and clear the configuration cache.<\/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\">The query should return <code>1<\/code>. Reset both <code>laravel_user<\/code> host entries if the database password was changed after the project was created.<\/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 lack group traversal permission, or SELinux labels may be wrong after files were copied into the project. Restore the labels and confirm the runtime directories are writable by Apache.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo restorecon -Rv \/var\/www\/laravelapp\nsudo chown -R apache:apache \/var\/www\/laravelapp\/storage \/var\/www\/laravelapp\/bootstrap\/cache\nsudo ausearch -m AVC -ts recent | tail -20<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If <code>ausearch<\/code> reports a denial, fix the file context or boolean indicated by the event instead of disabling SELinux.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>503 Service Unavailable<\/code> or PHP appears as source code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PHP-FPM may be stopped, or Apache may be pointing at a socket that does not exist. Check the service and socket, then validate the virtual host.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart php-fpm httpd\nsudo test -S \/run\/php-fpm\/www.sock &amp;&amp; echo 'PHP-FPM socket present'\nsudo apachectl configtest\nsudo tail -20 \/var\/log\/httpd\/laravel-error.log<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The socket test should print <code>PHP-FPM socket present<\/code> and Apache should return <code>Syntax OK<\/code>. A PHP source response usually means the <code>&lt;FilesMatch&gt;<\/code> handler was not loaded, so inspect the error log before changing permissions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Hardening<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>Run <code>sudo -u apache -H php \/var\/www\/laravelapp\/artisan optimize<\/code> after each production deployment so Laravel caches configuration and routes.<\/li>\n\n\n<li>Keep <code>.env<\/code> readable only by the project owner and Apache group, and store a protected copy of the database credentials outside the web root.<\/li>\n\n\n<li>Restrict SSH to trusted source addresses in your VPS firewall or provider firewall, and keep Rocky Linux packages updated.<\/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 PHP version does Laravel 13 require?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Laravel 13 requires PHP 8.3 or newer plus extensions such as cURL, DOM, Fileinfo, Mbstring, OpenSSL, PDO, Tokenizer, and XML. Rocky Linux 10&#8217;s AppStream PHP 8.3 package satisfies that baseline.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does Rocky Linux 10 use <code>dnf module<\/code> for PHP?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Rocky Linux 10 phased out the old modular AppStream workflow. Use the PHP packages exposed by AppStream and check availability with <code>dnf whatprovides php<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I install Laravel without a domain name?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. You can test Apache locally with the <code>Host<\/code> header shown above or use the server IP, but a domain is the practical choice for a trusted HTTPS certificate and normal virtual-host routing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why must Apache use Laravel&#8217;s <code>public<\/code> directory?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The project root contains <code>.env<\/code>, dependency metadata, and source files that should not be downloadable. The <code>public<\/code> directory is the intended web entry point and forwards requests to Laravel&#8217;s <code>index.php<\/code>.<\/p>\n\n\n\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Which PHP version does Laravel 13 require?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Laravel 13 requires PHP 8.3 or newer plus extensions such as cURL, DOM, Fileinfo, Mbstring, OpenSSL, PDO, Tokenizer, and XML. Rocky Linux 10's AppStream PHP 8.3 package satisfies that baseline.\"}}, {\"@type\": \"Question\", \"name\": \"Does Rocky Linux 10 use `dnf module` for PHP?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. Rocky Linux 10 phased out the old modular AppStream workflow. Use the PHP packages exposed by AppStream and check availability with `dnf whatprovides php`.\"}}, {\"@type\": \"Question\", \"name\": \"Can I install Laravel without a domain name?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes. You can test Apache locally with the `Host` header shown above or use the server IP, but a domain is the practical choice for a trusted HTTPS certificate and normal virtual-host routing.\"}}, {\"@type\": \"Question\", \"name\": \"Why must Apache use Laravel's `public` directory?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The project root contains `.env`, dependency metadata, and source files that should not be downloadable. The `public` directory is the intended web entry point and forwards requests to Laravel's `index.php`.\"}}]}<\/script>\n\n","protected":false},"excerpt":{"rendered":"Install Laravel PHP framework on Rocky Linux 10 with PHP 8.3, Apache, MariaDB, Composer, SELinux, firewalld, HTTPS, and production-ready permissions.","protected":false},"author":1,"featured_media":1208,"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,154,73,72,99],"class_list":["post-1207","post","type-post","status-publish","format-standard","has-post-thumbnail","category-guides","category-vps-hosting","tag-apache","tag-laravel","tag-mariadb","tag-php","tag-rocky-linux-10","cs-entry"],"_links":{"self":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1207","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=1207"}],"version-history":[{"count":1,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1207\/revisions"}],"predecessor-version":[{"id":4278,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/1207\/revisions\/4278"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media\/1208"}],"wp:attachment":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media?parent=1207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/categories?post=1207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/tags?post=1207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}