Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cron in UniServer Zero XI 11.3.1

Featured Replies

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.

  • Author

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.

  • 8 years later...

Having same problem in 2023, although inserting relative path as you have above still does not work for me.

Cron is running and logging as it should normally, but it does not execute my php file.

In fact I deleted the file and cron did not blink and even reported an OK in it's log.

Has anyone figured this out?

Edited by Player-n
spelling

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.