Skip to content

Developer tools

Laravel Shared Hosting Config Generator

Deploying Laravel to cPanel? Enter your domain and account details to get every file and command, with your own paths filled in.

How to use the Laravel Shared Hosting Config Generator

  1. 1

    Enter your domain, cPanel username and the folder for your app, and choose your PHP version.

  2. 2

    Open each tab: index.php, .htaccess, .env, the cron job, the queue schedule and the storage link.

  3. 3

    Copy each one to the place shown. The Laravel on shared hosting guide explains every step.

Frequently asked questions

Which Laravel versions is this for?

Laravel 11 and 12. On Laravel 10 the .htaccess, .env and cron parts still help, but index.php and routes/console.php differ, and .env uses CACHE_DRIVER.

Where do I find my PHP path?

cPanel servers usually use /opt/cpanel/ea-php83/root/usr/bin/php, and CloudLinux servers /opt/alt/php83/usr/bin/php. Test one in the Terminal with -v after it, or ask your host.

Should I replace my .htaccess?

No, add these rules to it. cPanel may keep a PHP handler block in that file, and removing it can break your site.

Is anything saved?

No. Everything is generated in your browser. Add your database password to .env yourself, on the server.

Get new articles in your inbox

Practical tutorials and deep dives, about once a week. No spam, unsubscribe anytime.

Privacy policy

Add DEV Talk to your Home Screen

  1. 1 Tap the Share button in Safari's toolbar.
  2. 2 Scroll down and tap Add to Home Screen.
  3. 3 Tap Add. Open it from the Home Screen to read like an app and to turn on notifications with the bell.

We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.