munir 1 Report post Posted February 24, 2010 Saya ada run web server [b]OS - CentOS Linux 5.3 / Intel(R) Xeon(TM) CPU 3.06GHz, 4 cores[/b] Ramai complain tak boleh masuk.selalu message: Server not found refresh 3 - 4 kali pastu ok..dan selalu sangat jadi mcm ini.. [b]Mysql dah tune dan install zend optimizer tp masih keadaan sama.[/b] Ip set dah betul. 111.221.44.132 Saya setting NS guna registar namecheap 2) Result ping ok tak masalah ping 111.221.44.132 Pinging 111.221.44.132 with 32 bytes of data: Reply from 111.221.44.132: bytes=32 time=35ms TTL=57 Reply from 111.221.44.132: bytes=32 time=33ms TTL=57 Reply from 111.221.44.132: bytes=32 time=35ms TTL=57 Reply from 111.221.44.132: bytes=32 time=36ms TTL=57 Ping statistics for 111.221.44.132: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 33ms, Maximum = 36ms, Average = 34ms [b]---------------------------------------------------------------------[/b] top - 16:59:41 up 3:22, 1 user, load average: 0.76, 1.26, 1.73 Tasks: 195 total, 3 running, 191 sleeping, 0 stopped, 1 zombie Cpu(s): 63.8%us, 10.3%sy, 0.0%ni, 25.0%id, 0.8%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 2075500k total, 1731516k used, 343984k free, 176312k buffers Swap: 4128760k total, 68k used, 4128692k free, 793112k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 15303 apache 17 0 37840 20m 3736 S 73.6 1.0 0:02.46 httpd 14872 mysql 18 0 2288m 248m 2560 S 72.9 12.2 0:11.45 mysqld 15292 apache 15 0 33160 17m 3652 R 31.5 0.9 0:00.97 httpd 15300 apache 16 0 38880 23m 3736 S 30.2 1.1 0:01.28 httpd 15298 apache 15 0 39716 24m 3736 S 18.6 1.2 0:00.69 httpd 15305 apache 16 0 34732 18m 3684 S 17.9 0.9 0:00.54 httpd 15297 apache 16 0 40520 24m 3636 S 12.3 1.2 0:00.74 httpd 15255 apache 15 0 36368 18m 3936 S 11.3 0.9 0:07.02 httpd 15307 apache 15 0 33320 17m 3644 S 6.3 0.9 0:00.60 httpd 14740 mysql 15 0 2288m 248m 2560 S 5.6 12.2 0:09.84 mysqld 14721 mysql 16 0 2288m 248m 2560 R 4.0 12.2 0:13.59 mysqld 14722 mysql 15 0 2288m 248m 2560 S 3.3 12.2 0:18.37 mysqld 15299 apache 15 0 33136 17m 3728 S 3.0 0.9 0:00.79 httpd 14720 mysql 15 0 2288m 248m 2560 S 1.3 12.2 0:10.08 mysqld 15296 apache 15 0 33292 18m 3800 S 1.3 0.9 0:00.36 httpd 14727 mysql 15 0 2288m 248m 2560 S 1.0 12.2 0:12.82 mysqld 15224 apache 15 0 0 0 0 Z 0.7 0.0 0:04.76 httpd <defunct> 14901 mysql 15 0 2288m 248m 2560 S 0.3 12.2 0:12.88 mysqld 15263 apache 15 0 39032 21m 3948 S 0.3 1.1 0:03.29 httpd 15294 apache 15 0 32380 17m 3692 S 0.3 0.8 0:00.60 httpd 1 root 15 0 2064 620 536 S 0.0 0.0 0:00.92 init 2 root RT -5 0 0 0 S 0.0 0.0 0:00.01 migration/0 [b]---------------------------------------------------------------------[/b] [b]Problem ketiga:[/b] Tadi masa tengah surf connection lost Bila masuk ssh press TOP Result dia mcm ini Apache and Mysql takder run. Pastu restart httpd ..Terus ok Plak..apa masalah agakanya.. top - 16:31:38 up 1 day, 2:54, 2 users, load average: 0.00, 0.02, 0.09 Tasks: 160 total, 1 running, 159 sleeping, 0 stopped, 0 zombie Cpu(s): 0.3%us, 0.0%sy, 0.0%ni, 99.6%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2075500k total, 2014004k used, 61496k free, 31820k buffers Swap: 4128760k total, 183948k used, 3944812k free, 1592564k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3236 root 15 0 2328 1056 800 R 0.3 0.1 0:01.28 top 7012 root 15 0 43544 1340 680 S 0.3 0.1 8:59.72 rsync 7013 root 15 0 10556 1868 1672 S 0.3 0.1 2:44.43 ssh 1 root 15 0 2064 532 508 S 0.0 0.0 0:01.12 init 2 root RT -5 0 0 0 S 0.0 0.0 0:00.11 migration/0 3 root 34 19 0 0 0 S 0.0 0.0 0:00.03 ksoftirqd/0 4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 5 root RT -5 0 0 0 S 0.0 0.0 0:00.01 migration/1 6 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/1 7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1 8 root RT harap dapat membantu selesaikan masalah ini. Quote Share this post Link to post Share on other sites
FryShadow 90 Report post Posted February 24, 2010 server not found tu bila akses guna domain ke ? kebiasaannya mungkin sebab domain masih belum resolve ke semua DNS server user tersebut so, sebab tu jadi server not found tu. selain tu cuba analisis /var/log/messages kalau ada apa2 hint pasal apache or mysql Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 24, 2010 (edited) [quote name='FryShadow' date='24 February 2010 - 09:26 PM' timestamp='1267017994' post='1018804'] server not found tu bila akses guna domain ke ? kebiasaannya mungkin sebab domain masih belum resolve ke semua DNS server user tersebut so, sebab tu jadi server not found tu. selain tu cuba analisis /var/log/messages kalau ada apa2 hint pasal apache or mysql [/quote] yup guna domain.. nak kata x resolve...dah sebulan dah... saya pun blur xtau nak buat mcm mana lagi dah Edited February 24, 2010 by munir Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 24, 2010 (edited) Tapikan..tak tahulah kot ns masalah. saya setup In "Advanced Options" -> "Nameserver Registration" dengan menggunakan nameserversetup dlm namecheap..tak surelah kalau nameserver dia masalah menyebabkan begitu.. dan saya gunakan ns1 and ns2 yang di create. adakah itu salah satu sebab server not found ? Edited February 24, 2010 by munir Quote Share this post Link to post Share on other sites
TRUNASUCI 15 Report post Posted February 24, 2010 [quote name='munir' date='25 February 2010 - 12:23 AM' timestamp='1267028624' post='1018863'] Tapikan..tak tahulah kot ns masalah. saya setup In "Advanced Options" -> "Nameserver Registration" dengan menggunakan nameserversetup dlm namecheap..tak surelah kalau nameserver dia masalah menyebabkan begitu.. dan saya gunakan ns1 and ns2 yang di create. adakah itu salah satu sebab server not found ? [/quote] test mlm ni via IP, jalan.. boleh akses.. [b]Apache is functioning normally [/b] tapi ip ni singapore punye based ek? actually mcm setting dah betul, cuma masalah DNS kut? satu lg process dia kena tgk gak le, lain2 ke apa.. ermm server dah patch ke bro? kut2 kena attack daemon httpd@MySQL ke.. kene DDOS ke.. Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 24, 2010 (edited) [quote name='TRUNASUCI' date='25 February 2010 - 01:11 AM' timestamp='1267031498' post='1018870'] test mlm ni via IP, jalan.. boleh akses.. [b]Apache is functioning normally [/b] tapi ip ni singapore punye based ek? actually mcm setting dah betul, cuma masalah DNS kut? satu lg process dia kena tgk gak le, lain2 ke apa.. ermm server dah patch ke bro? kut2 kena attack daemon httpd@MySQL ke.. kene DDOS ke.. [/quote] yup mmg ip Singapore.. itulah..dns maybe..tadi saya dah change tak guna nameserver from namecheap lagi.dah tukar guna xname punye serivce. maaflah saya masih newbie..dulu start web from -->reseller --> Vps --> sekarang baru mula main dedicated. actually banyak benda masih belum tahu lagi. mau tak nya dulu tak kesempatan nak study freebsd sampai habis dan lama tak praktik mmg zero..huhu..skrg insyallah..menunggu nota2 trunasuci hehe. back issue. [b]Update patch Os ker ? yum update ?[/b] ..dah rasanya. mcm mana check jika terdapat attach daemon httpd @ mysql ?.. sekian Edited February 24, 2010 by munir Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 24, 2010 Bila type: httpd [root@my ~]# httpd [Thu Feb 25 02:09:17 2010] [warn] module php5_module is already loaded, skipping (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [root@my ~]# mcm ini normal @ ada yang tak kena ? Quote Share this post Link to post Share on other sites
FryShadow 90 Report post Posted February 25, 2010 aku ada kena masalah ni, ada process yg bind port tu, so bila apache nak run tak boleh. boleh refer kat [url="http://www.qondio.com/centos-52-sock-address-already-in-use"]sini[/url] Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 25, 2010 [quote name='FryShadow' date='25 February 2010 - 08:51 AM' timestamp='1267059098' post='1018891'] aku ada kena masalah ni, ada process yg bind port tu, so bila apache nak run tak boleh. boleh refer kat [url="http://www.qondio.com/centos-52-sock-address-already-in-use"]sini[/url] [/quote] [b]dah tgk tapi mcm ini ..kalau mcm ini normal atau tidak.?[/b] [root@my ~]# netstat -tulpn |grep :80 tcp 0 0 :::80 :::* LISTEN 31032/httpd [root@my ~]# Quote Share this post Link to post Share on other sites
FryShadow 90 Report post Posted February 25, 2010 cuba kill and start balik httpd, tgk cmne Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 25, 2010 (edited) [quote name='FryShadow' date='25 February 2010 - 10:18 AM' timestamp='1267064281' post='1018900'] cuba kill and start balik httpd, tgk cmne [/quote] [root@my ~]# netstat -tulpn|grep :80 tcp 0 0 :::80 :::* LISTEN 31032/httpd [root@my ~]# kill -9 31032 Ok saya dah kill seperti di suruh..tap persoalan saya masih kurang paham service ini..apa tujuan service ini di kill.. ( maaf masih newbie tidak paham ) Edited February 25, 2010 by munir Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 25, 2010 Skrg keluar yang lain plak [root@my ~]# httpd [Thu Feb 25 10:49:05 2010] [warn] module php5_module is already loaded, skipping (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [root@my ~]# netstat -tulpn |grep :80 tcp 0 0 :::80 :::* LISTEN 302/httpd [root@my ~]# Quote Share this post Link to post Share on other sites
FryShadow 90 Report post Posted February 25, 2010 erm.. httpd dah run. cuba kill any process ats port 80 then shell> service httpd start tgk cmne kalau takleh, tggu abe bigbird bagi bantuan talian hayat hehe.. Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 25, 2010 [quote name='FryShadow' date='25 February 2010 - 12:44 PM' timestamp='1267073051' post='1018937'] erm.. httpd dah run. cuba kill any process ats port 80 then shell> service httpd start tgk cmne kalau takleh, tggu abe bigbird bagi bantuan talian hayat hehe.. [/quote] sekarang [root@my ~]# /sbin/service httpd start Starting httpd: httpd (pid 1909) already running [root@my ~]# service httpd start Starting httpd: httpd (pid 1909) already running [root@my ~]# Quote Share this post Link to post Share on other sites
FryShadow 90 Report post Posted February 25, 2010 patut dah ok, try akses/browse ok tak? Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 25, 2010 [quote name='FryShadow' date='25 February 2010 - 02:39 PM' timestamp='1267079986' post='1018963'] patut dah ok, try akses/browse ok tak? [/quote] so far skrg test guna ip mmg xder masalah..dah tukar dns guna service xname plak..rasa registar nameserveregisterion namecheap mcm kantoi.. ...saya nak check juga kot ada mistake pada setting pada server. actually saya just ambil ip tak set apa pulak kt server..just ambil ip and register di registar and buat as ns1 n ns2 adakah ada kesilapan atau yang tertinggal terima kasih Quote Share this post Link to post Share on other sites
FryShadow 90 Report post Posted February 25, 2010 kalau main domain guna nameserver (cth:ns1.kerepek.com,ns2.kerepek.com) bila try nslookup kerepek.com and DNS tu betul patut dapat reply dari nameserver anda, so dari situ kita boleh check sama ada DNS kita jalan ke tak Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 25, 2010 [quote name='FryShadow' date='26 February 2010 - 12:21 AM' timestamp='1267114888' post='1019111'] kalau main domain guna nameserver (cth:ns1.kerepek.com,ns2.kerepek.com) bila try nslookup kerepek.com and DNS tu betul patut dapat reply dari nameserver anda, so dari situ kita boleh check sama ada DNS kita jalan ke tak [/quote] skrg baru ubah dns..nanti dah active saya bg result sini ok Quote Share this post Link to post Share on other sites
bigbird 0 Report post Posted February 25, 2010 baru aku perasan ada apache defunct process kat 1st post kau, maybe process ni yang pakai port 80 dan menyebab kan bila kau start apache dia tak buleh bind port 80. Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 26, 2010 [quote name='bigbird' date='26 February 2010 - 01:36 AM' timestamp='1267119377' post='1019125'] baru aku perasan ada apache defunct process kat 1st post kau, maybe process ni yang pakai port 80 dan menyebab kan bila kau start apache dia tak buleh bind port 80. [/quote] Ok pastu macam mana nak solve problem ini bigbird ?..adakah kegagalan bind port 80 boleh menyebabkan effect pada pelayan kita surf " Server Not Found " Quote Share this post Link to post Share on other sites
bigbird 0 Report post Posted February 26, 2010 selalunya benda ni buleh setel dgn kill defunct process tu dan restart apache. kau monitor dulu 2-3 hari kalau jadi lg belek2 la log system kau. Quote Share this post Link to post Share on other sites
munir 1 Report post Posted February 26, 2010 [quote name='bigbird' date='26 February 2010 - 01:29 PM' timestamp='1267162179' post='1019173'] selalunya benda ni buleh setel dgn kill defunct process tu dan restart apache. kau monitor dulu 2-3 hari kalau jadi lg belek2 la log system kau. [/quote] ok takper saya cuba tgk dlm 2- 3 hari ini. Quote Share this post Link to post Share on other sites
Red-Hat-Enigma 0 Report post Posted February 27, 2010 Langkah 1. Cuba berikan info domain yang dah register tu. Sekurangnya boleh la kawan kawan kat sini cuba buatkan command nslookup/dig any <please_insert_domain_name_here> Langkah 2. Service Apache/httpd takkan automatically shutdown tanpa sebab. Check configuration httpd.conf ataupun jika anda menggunakan Apache2 , sila check configuration httpd-mpm.conf dimana StartServers value sekurangnya perlu adjust seperti dibawah : <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> Ni hanyalah contoh, cuba lain lain value mengikut kehendak anda. A wise sysadmin always checks his/her logs, jadi cuba periksa log /var/log/httpd/access_log atau /var/log/httpd/error_log (access.log/error.log which ever sebab lain platform OS, lain configuration). Selalu sangat diberikan "hints" kalau ada masalah apa apa didalam fail log tersebut. Kalau ada, sila post disini. Langkah 3. Doa banyak banyak supaya diterangkan hati beserta dengan usaha dan tawakal. Regards. Quote Share this post Link to post Share on other sites
munir 1 Report post Posted March 1, 2010 [quote name='Red-Hat-Enigma' date='28 February 2010 - 12:43 AM' timestamp='1267288993' post='1019335'] Langkah 1. Cuba berikan info domain yang dah register tu. Sekurangnya boleh la kawan kawan kat sini cuba buatkan command nslookup/dig any <please_insert_domain_name_here> Langkah 2. Service Apache/httpd takkan automatically shutdown tanpa sebab. Check configuration httpd.conf ataupun jika anda menggunakan Apache2 , sila check configuration httpd-mpm.conf dimana StartServers value sekurangnya perlu adjust seperti dibawah : <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> Ni hanyalah contoh, cuba lain lain value mengikut kehendak anda. A wise sysadmin always checks his/her logs, jadi cuba periksa log /var/log/httpd/access_log atau /var/log/httpd/error_log (access.log/error.log which ever sebab lain platform OS, lain configuration). Selalu sangat diberikan "hints" kalau ada masalah apa apa didalam fail log tersebut. Kalau ada, sila post disini. Langkah 3. Doa banyak banyak supaya diterangkan hati beserta dengan usaha dan tawakal. Regards. [/quote] Insyallah saja akan mencuba dan akan memberi feedback. Terima kasih Quote Share this post Link to post Share on other sites
munir 1 Report post Posted March 1, 2010 Salam.. alhamdulillah mostly syaa check ada beberapa setting seperti dns tak resolve dan menyebabkan Xname tak kenal pasti domain/ip yang betul..kesilapan pada define ip Adress. tetapi masalah dibawah belum solve lg masih dlm proses. [quote] [root@my ~]# httpd (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs[/quote] [b]Masalah seterusnya SUB DOMAINS tak berfungsi.[/b] [i]Saya ada beberapa subdomain.[/i] 1) ads.bicarajutawan.com 2) support.bicarajutawan.com [b]Subdomain tak jalan bila guna Xname A Record.[/b] Boleh tengok screenshot bawah ini jika ada kekurangan,kalau ada setting tak betul. [img]http://img534.imageshack.us/img534/9172/xname2.png[/img] [img]http://img341.imageshack.us/img341/7682/bitmapingraphic1.png[/img] [img]http://img203.imageshack.us/img203/9066/xname3.png[/img] Quote Share this post Link to post Share on other sites