Jump to content
The Uniform Server Community
Sign in to follow this  
luke.stevens

Cron in UniServer Zero XI 11.3.1

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...