Other languages / Другие языки / Забонҳои дигар: Русский Тоҷикӣ

Navju Cloud hosting comes with Composer (for PHP) and Node.js + npm. Needed for modern PHP frameworks (Laravel, Symfony) and frontend builds.

Composer — installing PHP dependencies

Connect via SSH (see the dedicated article), go to the project folder:

cd ~/public_html/
composer install

If you use Laravel, after composer install run:

php artisan key:generate
php artisan migrate
php artisan storage:link

Node.js — setup via cPanel

  1. cPanel → Software → Setup Node.js App
  2. Click Create Application
  3. Pick the Node.js version (LTS recommended — 20.x)
  4. Application mode: Production
  5. Application root: path to project, e.g. node_app
  6. Application URL: domain or subdomain
  7. Application startup file: index.js or app.js
  8. Create

Installing npm dependencies

In the Node.js section press Run NPM Install or via SSH:

cd ~/node_app
npm install
npm run build

Running

The Node.js app starts automatically. Restart — the Restart button in cPanel.

Esta resposta foi útil? 0 Utilizadores acharam útil (0 Votos)