TECH / ARCHIVE

Servers & Websites

TECH / Servers & Websites 2 min

PHP Error: Call to Undefined Function curl_init() – How to Fix

The error Fatal error: Call to undefined function curl_init() means your script tried to make an outbound HTTP request, but the cURL extension isn’t installed or enabled in PHP.

PHP error Call to undefined function curl_init()

On shared hosting, enabling cURL is usually a single checkbox in your hosting panel (PHP Version / Extensions) or a quick support ticket. If you manage your own VPS or server, here are the exact commands for each platform.

Read full article →

TECH / Servers & Websites 3 min

How to Fix “lowest numbered MX record points to local host” Mail Error

If emails get stuck in your mail server queue (Exim or Sendmail) with the log message lowest numbered MX record points to local host – or the equivalent mail for example.com loops back to myself in Postfix – your mail transfer agent has hit a mail routing loop.

lowest numbered MX record points to local host error in mail server logs

The message means exactly what it says: DNS reports that the highest-priority (lowest-numbered preference) MX record for the destination domain points to your own server’s IP address, yet the mail daemon does not recognize that domain as local and tries to relay the message outbound – straight back to itself.

Read full article →

TECH / Servers & Websites 4 min

How to View and Clear the Sendmail Mail Queue in Linux

When a mail server sends a large batch of email, a remote recipient is temporarily unreachable, or a misbehaving script floods the MTA, Sendmail stores undelivered messages in its local queue for later retry. Usually you need to handle three tasks quickly: list the queued messages, inspect what is inside a stuck email, and purge either a single message or the entire queue safely.

Sendmail logoSendmail mail queue

Below are the essential commands for managing the Sendmail queue on Linux and Unix systems: listing messages with mailq and sendmail -bp, counting spool files in /var/spool/mqueue/, reading qf* and df* files, forcing delivery, and clearing the queue without corrupting active locks.

Read full article →

TECH / Servers & Websites 2 min

/usr/local/etc/webmin/cron/tempdelete.pl: not found — Cron Emails After Removing Webmin

Problem: I removed Webmin, which had been installed for ages and never used — properly, with pkg_delete. After that, cron started sending me emails:

/usr/local/etc/webmin/cron/tempdelete.pl: not found

A few of them arrived, and it looked like they would keep coming every day. So I had to find out where the script was being run from.

tempdelete.pl: not found — cron emails after removing Webmin

In short: when Webmin was removed, it didn’t take its job out of root’s crontab. Run crontab -e as root and delete the line with tempdelete.pl — the emails will stop.

Read full article →