Get your self-hosted payment gateway running in 5 minutes. This guide covers the fastest path from zero to processing payments with OwnPay.
This guide assumes basic familiarity with web hosting. Developers looking to integrate the API should see the Developer Quickstart .
Prerequisites
Before you begin, make sure you have:
PHP 8.3+ with required extensions
MySQL 5.7+ or MariaDB 10.3+
Web server (Apache or Nginx)
SSL certificate (required for production)
Don’t have a server? Skip to Shared Hosting for cPanel/DirectAdmin installation, or VPS for Ubuntu/Debian.
Installation
Shared Hosting
VPS / Cloud Server
Docker
A quick way to get started. Works with hosts like Hostinger, Namecheap, and SiteGround.
Upload to hosting
Upload the .zip file to your web root (public_html/) using File Manager or FTP.
Extract and set PHP
Extract the ZIP file. Set PHP version to 8.3 in your hosting control panel.
Create MySQL database
Create a new database and user with All Privileges . Note the database name, username, and password.
Run the installer
Visit https://yourdomain.com/install and follow the 4-step wizard:
Requirements check
Database configuration
Admin account creation
Application settings
Set up cron job
Add a cron job to run every minute: For production use. Gives you full control, Redis caching support, and server-level configuration.
Update and install software
Download and configure OwnPay
Configure Nginx
Create /etc/nginx/sites-available/ownpay with the PHP-FPM configuration, then:
Run installer and set up cron
Visit https://yourdomain.com/install to complete setup, then add the cron job: Run OwnPay in containers for deployment and scaling.
First login
Navigate to https://yourdomain.com/login and log in with the admin credentials you created during installation.
Change your default password immediately after first login. Enable Two-Factor Authentication under your profile for security.
Create your first brand
Navigate to Brands
Go to People > Brands in the admin sidebar.
Create a brand
Click Add Brand and fill in:
Brand name and slug
Default currency
Timezone
Contact email
Configure a gateway
Go to Gateways and activate a payment gateway. Enter your provider’s API credentials.
Test a payment
Create a payment link and complete a test transaction to verify everything works.
What’s next?
For brand owners
Multi-brand setup Configure multiple brands with isolated data and custom domains.
Production deployment Optimize OwnPay for production with Redis, SSL, and monitoring.
For developers
API integration Integrate OwnPay with your applications via REST API.
Gateway plugins Build custom payment gateway plugins.