CURL Connection: ERROR couldn't connect to host
سلام و عرض ادب خدمت همه دوستان عزیز
بعد از انتقال سایت مان به سرور جدید ، متاسفانه قسمت آدمین اسکریپت Whmcs بعلت متصل نشدن به سرور لایسنسینگ وی اچ ام سی اس ارور زیر را میدهد
کد PHP:
License Noconnection
WHMCS has not been able to verify your license for the past 7 days or more.
Before you can access your WHMCS Admin Area again your license needs to be verified. Make sure you do not have a firewall blocking the connection to our server
If you need assistance, email licensing@whmcs.com.
برای رفع مشکل از ساپورت whmcs کمک خواستیم که اونها هم یک فایلی به نام curltest.php رو دادند تا در هاست آپلود کردیم و تست کردیم که ارور زیر رو داد
کد PHP:
CURL Connection: ERROR couldn't connect to host
نکته مهم اینکه Curl در سرور فعال هست و فایروال رو هم حذف کردیم و iptables رو استاپ کردیم و ...
ولی بازم هم این مشکل هست !
ممنون میشم کسانی که تجربه و یا اطلاعات کافی دارند در رابطه با این مشکل راهنمایی بفرمایند :53:
پاسخ : CURL Connection: ERROR couldn't connect to host
traceroute کن به سایت whmcs و نتیجه رو بگو
پاسخ : CURL Connection: ERROR couldn't connect to host
کد PHP:
traceroute to whmcs.com (74.54.136.210), 30 hops max, 40 byte packets
1 unknown.carohosting.net (74.81.168.179) 3000.875 ms !H 3000.866 ms !H 300
پاسخ : CURL Connection: ERROR couldn't connect to host
بقیش؟!
اصلا میتونی whmcs.com رو ping کنی؟
پاسخ : CURL Connection: ERROR couldn't connect to host
کد PHP:
From unknown.carohosting.net (74.81.168.179) icmp_seq=231 Destination Host Unreachable
From unknown.carohosting.net (74.81.168.179) icmp_seq=232 Destination Host Unreachable
From unknown.carohosting.net (74.81.168.179) icmp_seq=234 Destination Host Unreachable
From unknown.carohosting.net (74.81.168.179) icmp_seq=235 Destination Host Unreachable
From unknown.carohosting.net (74.81.168.179) icmp_seq=236 Destination Host Unreachable
From unknown.carohosting.net (74.81.168.179) icmp_seq=238 Destination Host Unreachable
From unknown.carohosting.net (74.81.168.179) icmp_seq=239 Destination Host Unreachable
From unknown.carohosting.net (74.81.168.179) icmp_seq=240 Destination Host Unreachable
پاسخ : CURL Connection: ERROR couldn't connect to host
iptables -F
بعد دوباره ping کن ، نتیجه ping به google رو هم بده لطفا
پاسخ : CURL Connection: ERROR couldn't connect to host
کد PHP:
PING google.com (74.125.67.100) 56(84) bytes of data.
From unknown.carohosting.net (74.81.168.179) icmp_seq=2 Destination Host Unreach able
From unknown.carohosting.net (74.81.168.179) icmp_seq=3 Destination Host Unreach able
From unknown.carohosting.net (74.81.168.179) icmp_seq=4 Destination Host Unreach able
From unknown.carohosting.net (74.81.168.179) icmp_seq=6 Destination Host Unreach able
From unknown.carohosting.net (74.81.168.179) icmp_seq=7 Destination Host Unreach able
From unknown.carohosting.net (74.81.168.179) icmp_seq=8 Destination Host Unreach
ممنون :53:
پاسخ : CURL Connection: ERROR couldn't connect to host
نقل قول:
نوشته اصلی توسط
is24.ir
سلام و عرض ادب خدمت همه دوستان عزیز
بعد از انتقال سایت مان به سرور جدید ، متاسفانه قسمت آدمین اسکریپت Whmcs بعلت متصل نشدن به سرور لایسنسینگ وی اچ ام سی اس ارور زیر را میدهد
کد PHP:
License Noconnection
WHMCS has not been able to verify your license for the past 7 days or more.
Before you can access your WHMCS Admin Area again your license needs to be verified. Make sure you do not have a firewall blocking the connection to our server
If you need assistance, email licensing@whmcs.com.
برای رفع مشکل از ساپورت whmcs کمک خواستیم که اونها هم یک فایلی به نام curltest.php رو دادند تا در هاست آپلود کردیم و تست کردیم که ارور زیر رو داد
کد PHP:
CURL Connection: ERROR couldn't connect to host
نکته مهم اینکه
Curl در سرور فعال هست و فایروال رو هم حذف کردیم و iptables رو استاپ کردیم و ...
ولی بازم هم این مشکل هست !
ممنون میشم کسانی که تجربه و یا اطلاعات کافی دارند در رابطه با این مشکل راهنمایی بفرمایند :53:
سلام ,
این دو تا دستور اجرا کن و خروجی بفرست :
به نظر من مشکل روی شبکه هست ! یا مشکل از netmask هست و یا دو تا کارت شبکه روی سرور داری که تنظیماتشون با هم متچ نیست !
پاسخ : CURL Connection: ERROR couldn't connect to host
نتیجه دستور اول
کد PHP:
# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:72:65:D5:59
inet addr:74.81.168.179 Bcast:74.81.168.255 Mask:255.255.255.128
inet6 addr: fe80::213:72ff:fe65:d559/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10367161 errors:0 dropped:0 overruns:0 frame:0
TX packets:14130134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1434873897 (1.3 GiB) TX bytes:3614410161 (3.3 GiB)
Base address:0xecc0 Memory:fe6e0000-fe700000
eth0:1 Link encap:Ethernet HWaddr 00:13:72:65:D5:59
inet addr:74.81.168.179 Bcast:74.81.168.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0xecc0 Memory:fe6e0000-fe700000
eth0:2 Link encap:Ethernet HWaddr 00:13:72:65:D5:59
inet addr:74.81.168.180 Bcast:74.81.168.253 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0xecc0 Memory:fe6e0000-fe700000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:554439 errors:0 dropped:0 overruns:0 frame:0
TX packets:554439 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:81004227 (77.2 MiB) TX bytes:81004227 (77.2 MiB)
************************************************** ****
و نتیجه دستور دوم :
کد PHP:
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
acctboth all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
acctboth all -- anywhere anywhere
Chain acctboth (2 references)
target prot opt source destination
tcp -- 74-81-168-179.cust.carohosting.net anywhere tcp dpt:http
tcp -- anywhere 74-81-168-179.cust.carohosting.net tcp spt:http
tcp -- 74-81-168-179.cust.carohosting.net anywhere tcp dpt:smtp
tcp -- anywhere 74-81-168-179.cust.carohosting.net tcp spt:smtp
tcp -- 74-81-168-179.cust.carohosting.net anywhere tcp dpt:pop3
tcp -- anywhere 74-81-168-179.cust.carohosting.net tcp spt:pop3
icmp -- 74-81-168-179.cust.carohosting.net anywhere
icmp -- anywhere 74-81-168-179.cust.carohosting.net
tcp -- 74-81-168-179.cust.carohosting.net anywhere
tcp -- anywhere 74-81-168-179.cust.carohosting.net
udp -- 74-81-168-179.cust.carohosting.net anywhere
udp -- anywhere 74-81-168-179.cust.carohosting.net
all -- 74-81-168-179.cust.carohosting.net anywhere
all -- anywhere 74-81-168-179.cust.carohosting.net
tcp -- unknown.carohosting.net anywhere tcp dpt:http
tcp -- anywhere unknown.carohosting.net tcp spt:http
tcp -- unknown.carohosting.net anywhere tcp dpt:smtp
tcp -- anywhere unknown.carohosting.net tcp spt:smtp
tcp -- unknown.carohosting.net anywhere tcp dpt:pop3
tcp -- anywhere unknown.carohosting.net tcp spt:pop3
icmp -- unknown.carohosting.net anywhere
icmp -- anywhere unknown.carohosting.net
tcp -- unknown.carohosting.net anywhere
tcp -- anywhere unknown.carohosting.net
udp -- unknown.carohosting.net anywhere
udp -- anywhere unknown.carohosting.net
all -- unknown.carohosting.net anywhere
all -- anywhere unknown.carohosting.net
tcp -- unknown.carohosting.net anywhere tcp dpt:http
tcp -- anywhere unknown.carohosting.net tcp spt:http
tcp -- unknown.carohosting.net anywhere tcp dpt:smtp
tcp -- anywhere unknown.carohosting.net tcp spt:smtp
tcp -- unknown.carohosting.net anywhere tcp dpt:pop3
tcp -- anywhere unknown.carohosting.net tcp spt:pop3
icmp -- unknown.carohosting.net anywhere
icmp -- anywhere unknown.carohosting.net
tcp -- unknown.carohosting.net anywhere
tcp -- anywhere unknown.carohosting.net
udp -- unknown.carohosting.net anywhere
udp -- anywhere unknown.carohosting.net
all -- unknown.carohosting.net anywhere
all -- anywhere unknown.carohosting.net
all -- anywhere anywhere
ممنون
پاسخ : CURL Connection: ERROR couldn't connect to host
نقل قول:
نوشته اصلی توسط
is24.ir
نتیجه دستور اول
کد PHP:
# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:72:65:D5:59
inet addr:74.81.168.173 Bcast:74.81.168.255 Mask:255.255.255.128
inet6 addr: fe80::213:72ff:fe65:d559/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10367161 errors:0 dropped:0 overruns:0 frame:0
TX packets:14130134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1434873897 (1.3 GiB) TX bytes:3614410161 (3.3 GiB)
Base address:0xecc0 Memory:fe6e0000-fe700000
eth0:1 Link encap:Ethernet HWaddr 00:13:72:65:D5:59
inet addr:74.81.168.179 Bcast:74.81.168.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0xecc0 Memory:fe6e0000-fe700000
eth0:2 Link encap:Ethernet HWaddr 00:13:72:65:D5:59
inet addr:74.81.168.180 Bcast:74.81.168.253 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0xecc0 Memory:fe6e0000-fe700000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:554439 errors:0 dropped:0 overruns:0 frame:0
TX packets:554439 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:81004227 (77.2 MiB) TX bytes:81004227 (77.2 MiB)
************************************************** ****
و نتیجه دستور دوم :
کد PHP:
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
acctboth all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
acctboth all -- anywhere anywhere
Chain acctboth (2 references)
target prot opt source destination
tcp -- 74-81-168-173.cust.carohosting.net anywhere tcp dpt:http
tcp -- anywhere 74-81-168-173.cust.carohosting.net tcp spt:http
tcp -- 74-81-168-173.cust.carohosting.net anywhere tcp dpt:smtp
tcp -- anywhere 74-81-168-173.cust.carohosting.net tcp spt:smtp
tcp -- 74-81-168-173.cust.carohosting.net anywhere tcp dpt:pop3
tcp -- anywhere 74-81-168-173.cust.carohosting.net tcp spt:pop3
icmp -- 74-81-168-173.cust.carohosting.net anywhere
icmp -- anywhere 74-81-168-173.cust.carohosting.net
tcp -- 74-81-168-173.cust.carohosting.net anywhere
tcp -- anywhere 74-81-168-173.cust.carohosting.net
udp -- 74-81-168-173.cust.carohosting.net anywhere
udp -- anywhere 74-81-168-173.cust.carohosting.net
all -- 74-81-168-173.cust.carohosting.net anywhere
all -- anywhere 74-81-168-173.cust.carohosting.net
tcp -- unknown.carohosting.net anywhere tcp dpt:http
tcp -- anywhere unknown.carohosting.net tcp spt:http
tcp -- unknown.carohosting.net anywhere tcp dpt:smtp
tcp -- anywhere unknown.carohosting.net tcp spt:smtp
tcp -- unknown.carohosting.net anywhere tcp dpt:pop3
tcp -- anywhere unknown.carohosting.net tcp spt:pop3
icmp -- unknown.carohosting.net anywhere
icmp -- anywhere unknown.carohosting.net
tcp -- unknown.carohosting.net anywhere
tcp -- anywhere unknown.carohosting.net
udp -- unknown.carohosting.net anywhere
udp -- anywhere unknown.carohosting.net
all -- unknown.carohosting.net anywhere
all -- anywhere unknown.carohosting.net
tcp -- unknown.carohosting.net anywhere tcp dpt:http
tcp -- anywhere unknown.carohosting.net tcp spt:http
tcp -- unknown.carohosting.net anywhere tcp dpt:smtp
tcp -- anywhere unknown.carohosting.net tcp spt:smtp
tcp -- unknown.carohosting.net anywhere tcp dpt:pop3
tcp -- anywhere unknown.carohosting.net tcp spt:pop3
icmp -- unknown.carohosting.net anywhere
icmp -- anywhere unknown.carohosting.net
tcp -- unknown.carohosting.net anywhere
tcp -- anywhere unknown.carohosting.net
udp -- unknown.carohosting.net anywhere
udp -- anywhere unknown.carohosting.net
all -- unknown.carohosting.net anywhere
all -- anywhere unknown.carohosting.net
all -- anywhere anywhere
ممنون
سلام ,
خوب یک کمی دقیق بشید روی این ها ! میبینید که نت ماسک Ip اصلی سرور با نت ماسک دو تا interface که روی eth0 اضافه شدن , یکی نیست !
شما باید نت ماسک eth0:1 و eth0:2 را مثل نت ماسک ip اصلی interface eth0 ست کنید ! یعنی :
Mask:255.255.255.128
موفق باشید