AutoSSL Cron Errors on Fresh AlmaLinux 10 Installation Without Domains

Started by Wonder, November 11, 2026, 09:38:24 AM

Previous topic - Next topic

Wonder

Hello,

First of all, thank you for your continued work and updates!

I would like to report an issue affecting a **fresh AlmaLinux 10 installation with CWP 1.30.8**.

Every night, the server sends a cron error email from the following task:

/usr/local/cwp/php71/bin/php -d max_execution_time=18000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/alertandautorenewssl.php

The email contains these errors:

cat: /usr/local/cwp/.conf/vhosts-ssl.json: No such file or directory

PHP Warning: foreach() argument must be of type array|object, null given in /usr/local/cwpsrv/htdocs/resources/admin/include/alertandautorenewssl.php on line 0

This is a fresh installation with no hosting accounts or domains configured.

I suspect the AutoSSL renewal script does not properly handle servers without any domains or SSL virtual hosts.

I have other CWP servers with domains configured, and this error does not occur on those servers.

Could you please check whether the script should skip the SSL renewal checks when no domains or SSL configurations exist?

Ideally, the cron job should exit cleanly without generating unnecessary error emails.

Thank you!

Wonder

Hello,

Thank you for fixing the AutoSSL cron errors in CWP 1.30.9!

I noticed that the changelog specifically addresses the missing `vhosts-ssl.json` file and the `foreach()` warning on fresh installations without hosted domains.

These are exactly the issues I reported.

Although my server now hosts a migrated account, so I can no longer reproduce the original empty-server scenario, I'm happy to consider this issue resolved based on the fix included in the changelog.

Many thanks to the CWP development team for addressing this so quickly and for your continued work!

I really appreciate it.