Cron jobs are essential for automating specific tasks in your Dream Script application. Follow these steps to configure cron jobs using your hosting control panel.
Prerequisites #
Before you begin, make sure you have completed the following:
- Installed Dream Script: Ensure that Dream Script is installed and configured on your web server. If not, follow the installation guide provided at https://smmpanelstore.in/docs/install-dream-script/.
Accessing Your Hosting Control Panel (cPanel) #
- Open a web browser and go to your hosting control panel (cPanel) by visiting
https://yourdomain.com/cpanel
. Log in using your credentials.
Locating the Cron Jobs Section #
- Inside the cPanel, look for the “Cron Jobs” section. This section is usually categorized under “Advanced” or “Scheduled Tasks.”
Adding Cron Jobs #
- In the “Cron Jobs” section, you’ll find fields to specify the command and timing for your cron jobs. Add the following
wget
commands one at a time into the command field:
wget --spider -O - https://YourDomain.com/crons/autolike.php
wget --spider -O - https://YourDomain.com/crons/checkToAPI.php
wget --spider -O - https://YourDomain.com/crons/dripfeed.php
wget --spider -O - https://YourDomain.com/crons/orders.php
wget --spider -O - https://YourDomain.com/crons/providers.php
- Set the timing for each cron job as follows:
autolike.php
: Set this to run every 5 minutes.checkToAPI.php
: Also set this to run every 5 minutes.dripfeed.php
: Set this to run every 5 minutes.orders.php
: Set this to run every 1 minute.providers.php
: Set this to run every 5 minutes.
*/5 * * * *
for every 5 minutes and* * * * *
for every 1 minute.
Saving the Cron Jobs #
- After adding each cron job with its respective timing, save the changes within your hosting control panel. The cron jobs will now run automatically at the specified intervals.
Testing the Cron Jobs #
- To ensure the cron jobs are working correctly, monitor your Dream Script application for any changes or updates triggered by these cron jobs. You can also check your server’s log files for any errors related to the cron jobs.
That’s it! You’ve successfully set up and configured cron jobs for your Dream Script application, automating essential tasks and maintaining the smooth operation of your site.