Jump to content


Photo

Cron in UniServer Zero XI 11.3.1

cron php extension

  • Please log in to reply
1 reply to this topic

#1 luke.stevens

luke.stevens

    Newbie

  • Member
  • Pip
  • 2 posts
  • Main OS: Windows 7

Posted 06 October 2014 - 08:06 PM

Using UniServer Zero XI 11.3.1 I am trying to get a php script running using the cron functionality.

 

I can access my script using my browser and it runs successfully, but when it runs on the cron schedule it fails because it finds the mysqli extension is not loaded. I also notice that it does not pick up the date.timezone setting from my php.ini.

 

What's going on? Any ideas greatly appreciated.



#2 luke.stevens

luke.stevens

    Newbie

  • Member
  • Pip
  • 2 posts
  • Main OS: Windows 7

Posted 08 October 2014 - 06:05 AM

Ah ha! I've found that I can get it working with using a relative path to the script in cron.ini:

path   = \www\app\cron.php
...rather than...

path   = http://localhost/app/cron.php

 

I had to add an "extension=php_mysqli.dll" line to the php-cli.ini file (and set the timezone), so that's why it wasn't working before using the relative path. Still can't understand why it didn't work using the http path, but at least it's working.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users