Running a fresh install of Rocky 9.1 with virtualmin 7.5 and have a wordpress site where the cron jobs fail to run. Wordpress reports the following error -
All similar results I can find on the web point to some issue with curl or the host and I cannot find any direction how to troubleshoot or resolve. Any advice appreciated.
I found this too on the root domain for some reason. All other domains work fine.
Ok I just fixed by changing the server name to server.domain.com, error gone.
I managed to make a little progress and found that the lo interface didn’t exist for some reason so manually created this which helped with some issues but the main error above persists. The server name is specified in full. If I try to setup a seperate cron job for wordpress running as the virtualmin account I get this error which could be related - again I could use any pointers to help troubleshoot this.
curl: (60) SSL certificate problem: self-signed certificate
More details here: curl - SSL CA Certificates
Thanks for the reply. Now that I have added the loopback interface (this solved the ‘your site could not complete a loopback request’) the error has changed slightly, but yes I get these reports from the wp site health.
@stefan1959 Thanks again for the reply. My webserver hostname is correct and includes the domain name. I just tried adding the virtual hosts domain name into the host addresses for the local ip address and this may have solved it though! The error seems to have gone from Wordpress. Clearly it is an issue with DNS lookup. I will give it some time and review if the cron events are now working as expected. Thanks again for the replies.
The issue is the Hostname and domain name of the wordpress being the same.
Ie the hostname and also the hostaddresses are domain.com and you have a WP using the same name you will get the error.
Solution change hostname in your network section to say server.domain.com so they don’t match.