CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Cron on HostGator with PHP 5.3
Pages: [1]

Author Topic: Cron on HostGator with PHP 5.3  (Read 6739 times)

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Cron on HostGator with PHP 5.3
October 07, 2012, 08:44:36 am
The 'Scheduled Jobs' cron stopped working after I switch to PHP 5.3 on our HostGator server.  I was able to resolve this problem and I want to share the fix I found.

Switching over to PHP 5.3 from 5.2 requires editing the webserver's .htaccess file as described here: http://support.hostgator.com/articles/hosting-guide/hardware-software/php-5-3..  This works, but it doesn't switch PHP CLI over to 5.3.

In order use PHP CLI 5.3 you have to specify the path to 5.3 (/opt/php53/bin/php) as described here: http://www.velvetblues.com/web-development-blog/cron-jobs-ssh-php-53-hostgator-shared-hosting/.

Here's an example which will display your PHP CLI version:

Code: [Select]
/opt/php53/bin/php -v
George

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Cron on HostGator with PHP 5.3

This forum was archived on 2017-11-26.