Introduction
Thank you for purchasing DigiCode - Digital Marketplace SaaS. This guide will walk you through the installation process on both Shared Hosting (cPanel) and VPS environments.
Server Requirements
- Node.js: v20.9.0 or higher
- Database: MySQL 8.0+ or MariaDB 10.4+
- Process Manager: PM2 (Node) or Passenger (cPanel)
prisma/schema.prisma file to include Linux binaries:
binaryTargets = ["native", "debian-openssl-1.1.x"]
Installation on VPS (Ubuntu/CentOS)
# 1. Update System
sudo apt update && sudo apt upgrade
# 2. Install Node.js 20
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
# 3. Install MySQL
sudo apt install mysql-server
sudo mysql_secure_installation
# 4. Clone/Upload Project
git clone https://github.com/your-repo/digicode.git /var/www/digicode
cd /var/www/digicode
# 5. Configure Environment
cp .env.example .env
nano .env # Update DATABASE_URL with your MySQL credentials
# 6. Install Dependencies
npm install
# 7. Build
npm run build
# 8. Start with PM2
npm install -g pm2
pm2 start npm --name "digicode" -- start
pm2 save
Running the Auto-Installer
Once your server is running, open your browser and go to:
http://your-domain.com/install
The installer will automatically write the .env file, migrate the database tables, and seed
dummy data.
Troubleshooting
500 Server Error? Check the Node.js logs. It usually means the database connection failed or the build failed.
Styles not loading? Make sure your domain is correctly pointed and you are not using a subpath without configuring `basePath`.
Error "next: command not found"? This means `npm install` failed or your server cannot run build commands. Solution: Build locally on your PC, zip the `.next` folder, and upload it to the server manually.
Support & Customization
If you need help with installation, configuration, or want custom modifications for your marketplace, get in touch with our support team.