NGINX_APACHE + PHP-FPM
( it's only interface name, but IP Address can work normally )
it so weird with this problem,
Any one got same me ?
on command line can work normally
"curl --interface 'eth0' https://google.com"
"/usr/local/php74/bin/php test.php"
it's have problem only when on webserver ( NGINX_APACHE )
this is my version
Code:
curl_setopt($ch, CURLOPT_INTERFACE, 'eth0' );
( it's only interface name, but IP Address can work normally )
it so weird with this problem,
Any one got same me ?
on command line can work normally
"curl --interface 'eth0' https://google.com"
"/usr/local/php74/bin/php test.php"
it's have problem only when on webserver ( NGINX_APACHE )
this is my version
Code:
PHP 7.4.15 (cli) (built: Feb 10 2021 20:52:31) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd.
with Zend OPcache v7.4.15, Copyright (c), by Zend Technologies
Code:
curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 OpenSSL/1.1.1g-fips zlib/1.2.11 zstd/1.4.5 nghttp2/1.42.0
Release-Date: 2020-12-09
Protocols: dict file ftp ftps gopher http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HTTP2 HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets zstd
Last edited: