Skip to main content

under NAT server wget cronjob fail to a local url

Comments

6 comments

  • cPanelMichael
    Hello :) Have you tried adding an entry to your /etc/hosts file pointing the domain name to a local IP address to see if that makes a difference? Thank you.
    0
  • ilConfa
    Hi Michael, yes I tried, but the only result is a resolution 127.0.0.1 instead of a public ip, but the timeout error persists.
    0
  • cPanelMichael
    Have you considered simply executing the file with the PHP command itself since the file is local? Thank you.
    0
  • ilConfa
    yes, and it works, /usr/local/bin/php -q /home/trilogy/public_html/helloworld.php
    but I thought that the error of wget could be a problem for the normal functioning of cPanel, if not, I will continue to use this method.
    0
  • cPanelMichael
    It should not result in any issues with cPanel, but keep in mind that a 1:1 NAT environment is only supported if it was detected during the initial cPanel installation. You can find documentation on this here: 1:1 NAT Thank you.
    0
  • ilConfa
    ok Michael, Thank you for support!
    0

Please sign in to leave a comment.