The ASA2 refresh cronjob is not working on cPanel


If you have configured the refresh cronjob as explained in the online documentation but you do not get any results, this might have something to do with the server-side PHP command used to execute the script. By default, ASA2 uses the “php” command to execute server-side scripts. On some servers this might be an older PHP version and will not work as expected. One solution is to use the “php5” command.


1. Create a new shell script in your user directory, e.g. /home/[your-username]/cronjobs/

2. Insert the following lines in this file, where [path-to-your-website] must be replaced with the path to your WordPress installation starting with “/home”, like “/home/timo/asa2demo”:

Option 1


Option 2

Another option is to add the path to the PHP 5 or 7 version to the environment variable “PATH” and then execute the shell script, like this:

where “/opt/plesk/php/7.1/bin” must be adjusted to your server’s path to the newest PHP version.

3. Then configure this script in your cPanel cronjob panel as shown on the following screenshot:

cPanel cronjob configuration