cPanel Integration

سی پینل انٹیگریشن

cPanel Integration

RentOyee is designed for deployment on cPanel shared hosting environments. This guide covers the complete setup for a production-ready installation.

Server Requirements

  • PHP — 8.1 minimum, 8.3 recommended
  • Database — MySQL 8.0+ or MariaDB 10.5+
  • Extensions — BCMath, Ctype, Fileinfo, JSON, Mbstring, OpenSSL, PDO, PDO_MySQL, Tokenizer, XML, GD, Zip, Intl
  • Disk Space — Minimum 2GB recommended
  • SSL Certificate — Required (Let's Encrypt is free via cPanel)

Deployment Steps

1Upload Files

Upload RentOyee application files to your server via FTP or the built-in deployment script. The Laravel public/ folder contents map to your domain's public_html/.

2Create Database

In cPanel → MySQL Databases, create a new database and user. Grant the user all privileges on the database.

3Configure .env

Edit the .env file with your database credentials, APP_URL (with https://), mail settings, and API keys. This file must never be publicly accessible.

4Run Migrations

In cPanel Terminal (or SSH): php artisan migrate --force to create all database tables.

5Set File Permissions

Run: chmod -R 775 storage bootstrap/cache — these directories must be writable by the web server.

6Create Storage Link

Run: php artisan storage:link — this makes uploaded public files accessible from the browser.

7Set Up Cron Job

Configure the Laravel scheduler cron job as described in the Cron Jobs section.

8Enable SSL

In cPanel → SSL/TLS → AutoSSL, install a free Let's Encrypt certificate. Then update APP_URL in .env to use https://.

.htaccess:

A correctly configured .htaccess file is included in the public/ directory. If pages show 404 errors, ensure mod_rewrite is enabled in your hosting and AllowOverride All is set.

سی پینل انٹیگریشن

RentOyee cPanel شیئرڈ ہوسٹنگ پر ڈیپلوئی کرنے کے لیے ڈیزائن کیا گیا ہے۔

سرور کی ضروریات

  • PHP 8.1+ (8.3 سفارش شدہ)
  • MySQL 8.0+ یا MariaDB 10.5+
  • SSL سرٹیفکیٹ (Let's Encrypt مفت)
  • ضروری PHP Extensions: BCMath، PDO، GD، Mbstring وغیرہ

تعیناتی کے مراحل

1فائلیں اپ لوڈ کریں
2ڈیٹا بیس بنائیں

cPanel → MySQL Databases

3.env ترتیب دیں

ڈیٹا بیس کریڈینشلز، APP_URL، میل ترتیبات

4migrations چلائیں
php artisan migrate --force
5اجازتیں مقرر کریں
chmod -R 775 storage bootstrap/cache
6SSL فعال کریں

cPanel → SSL/TLS → AutoSSL