- Server operating system version
- AlmaLinux 9.4
- Plesk version and microupdate number
- 18.0.65
Hello,
On several Plesk servers I regularly have problems using the PHP ftp_connect() function.
For example, a task executed every hour to connect to FTP access will have the following error 1 to 2x per day, not always at the same time:
PHP Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/vhosts...
This looks like a failed DNS resolution from time to time but it's impossible to know how to resolve this.
An idea.
Thank you.
On several Plesk servers I regularly have problems using the PHP ftp_connect() function.
For example, a task executed every hour to connect to FTP access will have the following error 1 to 2x per day, not always at the same time:
PHP Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/vhosts...
This looks like a failed DNS resolution from time to time but it's impossible to know how to resolve this.
An idea.
Thank you.