logo
BLOG

Deploying Node.js and PHP Projects on CyberPanel — The Complete Guide

Learn how to deploy Node.js and PHP projects together on CyberPanel with OpenLiteSpeed. This step-by-step guide covers setup, SSL, PM2, and performance optimization.

Written by
Kroxly's Logo
Kroxly
Published on
November 09, 2025
Views
0
Comments
0
CyberPanel Deployment Guide

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!

Hostragons

Hostragons is a global web hosting company founded in Turkey in 2020 and based in London since 2022. It delivers high-performance, fully dedicated hosting with NVMe M.2 SSDs and Tier III+ data centers in London and Singapore. With advanced DDoS protection, 24/7 support, free CDN & SSL, and flexible payment options (including crypto), Hostragons ensures secure, fast, and reliable hosting for businesses worldwide.

Visit Website

NGE Teknoloji

Founded in 2023, NGE Teknoloji provides high-performance hosting, server, and data center solutions. With strong infrastructure and expert teams, it delivers reliable, uninterrupted, and high-quality services. The company aims to become a global brand by investing in technology, offering seamless 24/7 performance, and maintaining the best price-performance balance through continuous innovation and customer-focused development.

Visit Website
Kroxly | Web Designer & Developer