Step 1: Install Node.js and PHP
CyberPanel uses OpenLiteSpeed as its web server, allowing you to host both Node.js and PHP applications together efficiently.
- Enable SSH access on your CyberPanel instance.
- Install Node.js via
nvm install node. - Install PM2 to manage Node.js processes.
Step 2: Configure OpenLiteSpeed
Use a reverse proxy to connect your Node.js server (port 3000) with your PHP domain. Add this rule in CyberPanel:
RewriteEngine On RewriteRule ^(.*)$ http://127.0.0.1:3000/$1 [P]
Step 3: Enable SSL
CyberPanel includes built-in Let's Encrypt SSL management. Click “Issue SSL” under your website to enable HTTPS.
Step 4: Deploy
Place your Node.js app in /home/yourdomain.com/ and start it using:
pm2 start app.js --name yourapp
✅ That’s it — Node.js and PHP are now running together!

