Setup cPanel Cron Job
Login to your cPanel and navigate to Cron jobs
Add the following settings :
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://
Setup Plesk Cron Job
Refer to cPanel cron job examples to get your cron URL.
For Plesk use one of the following configurations:
If the first example is not working for you try this config:
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.