InMotion Hosting Cronjobs
This section will guide you through the process of setting up cronjob for EasySocial using InMotion Hosting. Lets start by accessing InMotion Hosting Cpanel. Head to http://www.inmotionhosting.com and login to AMP. Under your account name, click the cPanel button. You will then be redirected and automatically logged into cPanel.
For further information, please read through InMotion Hosting documentation.
InMotion Hosting Default Cronjobs Command
Preparing the Cron File
Before creating the cronjob on InMotion, you'll first need to edit the cron.php file located at /components/com_easysocial/cron.php. Load and open this file with your favourite text editor and you should see some codes that resembles like the screenshot below. You'll need to rename site.com as shown in the following screenshot with your own domain name.
http:// or https:// prefixes infront of your domain name in this file.The cronjob script will need to be called on its direct path as it is located on your server. So, it will be something similar to /home/userna5/public_html/components/com_easysocial/cron.php.
php -q /home/userna5/public_html/components/com_easysocial/cron.php
InMotion Hosting Cronjobs Command with User Agent String
The wget command is disabled on all shared server by InMotion Hosting for security purposes. Thus, the default cronjob command cannot be optimized. Therefore, you may utilize this cronjobs commands for your site.
/usr/bin/curl --user-agent cPanel-Cron "http://yoursite.com/index.php?option=com_easysocial&cron=true
