Hosts file
-
Hello,
I have a “side” wp site for tests.
Thus, it does not have a public internet DNS record and I access to it using a local client side hosts file.I tried to run backwpup on it but naturally if failed (the famous “10 seconds” error) and the settings > information page I see the error of “Server self connect WP Http Error: cURL error 6: Could not resolve host: <site-fqdn>”.
So, at the hosting linux server, I added the FQDN name to the hosts file, to 127.0.0.1.
Now, if from the CLI console of the server I run “curl <server-fqdn>/wp-cron.php” – I get the page’s content.
But, at the plugin I still get the error from above.
I tried to restart the httpd service, but it didn’t help.
Is it possible that your curl test force a DNS query and doesn’t simply run the curl test and letting linux do the resolving (hence use first the local hosts file as a resolver)?
The topic ‘Hosts file’ is closed to new replies.