Web Server

Setup cPanel & Plesk Cron Job for CRM

Setup cPanel & Plesk Cron Job for CRM

Setup cPanel Cron Job

Login to your cPanel and navigate to Cron jobs

Add the following settings :

Setup cPanel & Plesk Cron Job for CRM

wget -q -O- http://yourdomain.com/crm/cron/index

Change the URL according to your base URL

  • Eq. if it’s on root domain you need to type only http://yourdomain.com/cron/index
  • Eq. on subfolder /CRM you will need to type http://yourdomain.com/crm/cron/index
  • If your base URL starts with https://, make sure that you configure the cron job URL to start with https://
This is CRON Job URL and not a path. Your server needs to support wget command to call the wget command and execute. You can find your Perfex CRM installation cron job URL located at Setup->Settings->Cron Job

Setup Plesk Cron Job

Refer to cPanel cron job examples to get your cron URL.

For Plesk use one of the following configurations:

Setup cPanel & Plesk Cron Job for CRM

If the first example is not working for you try this config:

Setup cPanel & Plesk Cron Job for CRM

Common issues

My server does not support wget command?

If your server does not support wget command you try one of the following commands:

php /home/username/public_html/installation_folder/index.php cron/index >> /dev/null
php /home/username/public_html/installation_folder/index.php cron/index

If that doesn’t work, it probably means you don’t have the package php5-CLI installed. On Debian / Ubuntu you can install this package as follows:

sudo apt-get install php5-cli

If you are not able to install packages, you can specify your path to PHP try the following command:

/usr/local/bin/php -f /home/username/public_html/installation_folder/index.php cron index

Replace username and installation_folder to fit your path.

If none of the commands are not working, you can use some free cron job services like www.easycron.com Mostly the free cron job services have a limit to executing every 20 minutes but it will work well too with Perfex CRM.

Testing the cron job

In order to test if your cron job config works fine after you configure it, you can create a custom staff reminder.

From the main menu click Customers -> [Customer] -> Reminders tab and create a reminder for your user with the nearest date eq if your time is 09:50 add a reminder for 09:51. Wait 5 minutes for the cron job to run to notify you, you should receive a notification inside the CRM, the notification should be visible on the top right side bell.

If you received the notification, then this means that the cron job config is properly configured.

Leave a Reply

Your email address will not be published. Required fields are marked *