Auth. via external DB failure in cron-job

This forum post has been removed

Number of replies: 1
The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Auth. via external DB failure in cron-job

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Hi Rolf,

What I think is happening here is that you've got PHP set up correctly with the driver/extension for SQL Server (mssqlnative) and this is working with your web server (IIS?).

But when you're running the cron job you're using a different PHP installation in a different folder that doesn't have this PHP extension.

To fix this you need to work out where the PHP installation being used by your web server is located and use the path to this php binary when running your cron job.

Leon