How to install Laravel on ISPmanager hosting

In the examples laravel.example.com is your domain and wikitest is your hosting login.

Laravel 13 needs PHP 8.3 or newer. The hosting has PHP 8.4 and Composer. Installation takes 5–10 minutes.

1. Create the site

  1. "Sites" → "Create a site" → manual setup.
  2. Enter the domain in the "Name" field.
  3. Enter public in the "Website public directory" field. The site will be served from the project public folder, and files with passwords stay unreachable from the internet.
Site name and the public folder
Site name and the public folder
  1. In the PHP block choose version 8.4.
  2. Tick "Use PHP Composer".
  3. Click "Create".
PHP 8.4 and Composer
PHP 8.4 and Composer

2. Create a database

  1. "Databases" → "Create a database".
  2. Database name, user name and password. Write them down — you need them for the .env file.
  3. Click "Create".
A new database for Laravel
A new database for Laravel

3. Install Laravel

Open the Shell client: left menu → "Shell-client" (more). Run the commands one by one:

cd ~/www/laravel.example.com
rm -rf public composer.json composer.phar .composer
composer create-project laravel/laravel . --no-scripts --no-interaction
cp .env.example .env
php artisan key:generate
php artisan package:discover
  • The second command removes the placeholders the panel created in the site folder. Composer installs a project only into an empty folder.
  • --no-scripts is required. Running external programs from PHP is disabled on the hosting, and without this flag the installation stops with The Process class relies on proc_open. The next three commands do the needed steps.
Installing Laravel in the Shell client
Installing Laravel in the Shell client

4. Connect the database in .env

  1. "File manager" → www → the site folder. Click the three dots of the .env file → "Open file".
Project files: the public folder and .env
Project files: the public folder and .env
  1. Replace the DB_ block with your database details. The DB_ lines are commented out with # by default — remove it.
  2. Click "Save".
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=laravel_db
DB_USERNAME=laravel_user
DB_PASSWORD=your_db_password

Also set APP_URL=https://laravel.example.com. For a live site set APP_ENV=production and APP_DEBUG=false — otherwise visitors see paths and settings on errors.

Database details in .env
Database details in .env

5. Create the tables

In the Shell client:

cd ~/www/laravel.example.com
php artisan migrate --force
Migrations done
Migrations done

Open the domain in a browser — the Laravel start page appears.

Laravel works
Laravel works

6. The Laravel scheduler

If the project has scheduled tasks, add one job that runs every minute:

  1. "CRON jobs" → "Create a task".
  2. "Command":
/opt/alt/php84/usr/bin/php /var/www/wikitest/data/www/laravel.example.com/artisan schedule:run >> /dev/null 2>&1
  1. "Schedule" — "expert mode", * in all five fields.
  2. Click "Create".
The schedule:run job every minute
The schedule:run job every minute
The job in the list
The job in the list

Your own project instead of a new one

Upload a ready project to the site folder as an archive or via Git, then in the Shell client:

composer install --no-dev --no-scripts --optimize-autoloader
php artisan package:discover
php artisan migrate --force
php artisan config:cache
php artisan route:cache

The .env file is not kept in the repository — create it on the hosting.

If something does not work

  • Error 500 — open storage/logs/laravel.log. Wrong database details in .env are a common cause.
  • A placeholder page or a file list is shown — check that the website public directory is public in the site settings.
  • Nothing changes after editing .env — clear the cache: php artisan config:clear.
  • A proc_open error in Composer — add --no-scripts and run php artisan package:discover separately.
Questions and answers
Running external programs from PHP is disabled on the hosting. Add --no-scripts to the command, then run php artisan key:generate and php artisan package:discover.
The public folder is not set. In the site settings set "Website public directory" to public.
Laravel 13 needs PHP 8.3 or newer. Choose PHP 8.4 in the site settings.