SocialSwap Documentation
  • Start
    • Introduction
    • Requirements
    • Installation
    • Purchase Code
  • Updates
    • Update 1.0.7
    • Update 1.0.6
    • Update 1.0.5
    • Update 1.0.4
    • Update 1.0.3
    • Update 1.0.2
    • Update 1.0.1
  • How it Works
    • Dispute Overview
    • Listing Overview
    • Offer Overview
    • Message Overview
    • Subscription Overview
    • Plan Overview
  • Database Setup
    • phpMyAdmin MySQL DB Setup
  • Cloud Storage
    • AWS Storage Setup
      • Create AWS Account:
      • Create IAM User
      • Create S3 Bucket
      • Configure S3 Bucket
    • Wasabi Storage Setup
    • CloudFlare Storage Setup
  • PAYMENT GATEWAYS SETUP
    • Paypal Setup
    • Stripe Setup
    • RazorPay Setup
    • Paystack Setup
    • Flutterwave Setup
  • SUBSCRIPTION PLANS
    • Subscription Plan
      • Paypal Plan ID
      • Stripe Plan ID
      • Razorpay Plan ID
      • Paystack Plan ID
      • Flutterwave Plan ID
  • SMTP SETUP
    • SMTP Configuration
  • SOCIAL MEDIA LOGIN
    • Google Login
    • Facebook Login
  • One Signal
    • One Signal Setup
  • TAWK.TO SETUP
    • Tawk.to Setup
  • GOOGLE SETTINGS
    • Google Maps
    • Google Analytics
    • Google reCaptcha
  • TRANSLATE INTERFACE
    • Language Translations
  • CRON JOB SETUP
    • CRON Job
  • Customization
    • Files Structure
    • Frameworks
  • Troubleshooting
    • Troubleshooting
  • Changelog
    • Initial Release v1.0
Powered by GitBook
On this page
  1. CRON JOB SETUP

CRON Job

The software needs cron jobs to automate tasks like checking account statuses, managing escrow, monitoring subscriptions, and renewing user perks.

PreviousLanguage TranslationsNextFiles Structure

Last updated 10 months ago

How to create CRON job:

Step 1: Open the terminal on your hosting platform. If you are using cPanel, you can proceed by copying and pasting the instructions provided in Step 3 into your Cron Jobs tab.

Step 2: Execute the command crontab -e in your terminal.

crontab -e

Step 3: Insert either cron job A to automate escrow every minute, or cron job B for twice daily scheduled runs without automated escrow. Ensure to replace YOURWEBSITE DOMAIN PATH with your specific domain path and customize the frequency based on your needs:

  • Cron job A:

* * * * * /usr/local/bin/php /home/YOURDOMAINPATH/artisan schedule:run >> /dev/null 2>&1n
  • Cron job B:

0 0,12 * * * /usr/local/bin/php /home/YOURDOMAINPATH/artisan schedule:run >> /dev/null 2>&1

Step 4: (If using terminal): To view all local cron jobs, enter the command:

crontab -l

Step 5: If configuring through cPanel, the setup should resemble the following. Select the smallest available time interval provided by your hosting service, ideally every 1 minute if supported. Adjust YOURDOMAINPATH accordingly, ensuring it includes your hosting username as specified in your directory.