Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: megasmorf on August 25, 2018, 09:07:04 AM

Title: Guys help me my server its down
Post by: megasmorf on August 25, 2018, 09:07:04 AM
Yesterday night I was working normally ... This morning I can not get CWP and nginx does not start what can i do?
Title: Re: Guys help me my server its down
Post by: megasmorf on August 26, 2018, 07:27:49 PM
my Problem is in with change hostname and i have not find a solution yet... i can not set a hostname i dont know what i do wrong if i change a hostname minutes latter i have not access to server nginx not start httpd same problem and not start cwpsrv pfff help me pls... at least i have a domain www.mydomain.gr how can i have this for hostname server.mydomain.com ? i read forums and documentation but ... I have a confused

thnx ayway
Title: Re: Guys help me my server its down
Post by: bullten on August 26, 2018, 09:50:21 PM
Can you post some logs to see whats actually happening?
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 08:00:37 AM
thnx for your answer yes i have screenshots

1 http://prntscr.com/knaf2i

2  http://prntscr.com/knag2i

3  http://prntscr.com/knagcs
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 08:37:59 AM
You need to follow FQDN (https://kb.iu.edu/d/aiuv) for creating hostnames.
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 08:49:26 AM
i do that!! but not working neither with domain.com and with srv.domain.com can you explain me please where is the problem what i do wrong?
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 09:10:12 AM
what is output of below three commands

Quote
service httpd restart
service nginx restart
service cwpsrv restart
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 09:23:04 AM
httpd -->> http://prntscr.com/knbj1t

cwpsrv and nginx ( i have not install nginx)  http://prntscr.com/knbjqu
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 09:42:05 AM
services are up.

what is output of

Code: [Select]
service cwpsrv status -l
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 09:44:31 AM
http://prntscr.com/knbufz
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 10:00:54 AM
services are up what is exactly not running?
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 10:33:23 AM
hah ok! Yes now after reinstall the os its running services ok! but i can not change hostname from my cwp panel its Red with error. My domain pointing its on my ip but cwp can not change my hostname what can i do for that?

http://prntscr.com/kncglh
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 10:41:42 AM
server80.tk is not a valid hostname. Follow FQDN guideline.
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 10:53:22 AM
can you explain me what can i do!!! i am so cofused with this :(
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 11:17:16 AM
with sub 

my hosts
http://prntscr.com/knczj5

from cwp
http://prntscr.com/knczqd
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 12:00:40 PM
did you create user account for server80.tk on your server?
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 12:27:24 PM
no user account for this domain no!!! so step one ? account? and step 2?
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 12:35:29 PM
http://prntscr.com/kne1yb  ok i make account
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 12:41:28 PM
server80.tk still doesnt resolve.

goto

http://5.189.157.211:2030/admin/index.php?module=nameservers and click on save changes

Next check if server80.tk start resolving.

If it does resolve you need to add A name record to DNS to point server to 5.189.157.211
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 12:58:32 PM
A name from domain name provider or from my control panel?
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 01:07:08 PM
from your server
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 01:11:22 PM
where is it  in my server DNS functions?
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 01:15:35 PM
is this right? server.server80.tk. IN A 5.189.157.211
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 01:21:27 PM
nano /var/named/server80.tk.db

at the end of file enter

server 14400 IN A 5.189.157.211.

save and restart dns server

service named restart
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 01:27:02 PM
errors
http://prntscr.com/knervk

http://prntscr.com/kneslu

sorry sorry sorry my wrong it has dot in the end of ip now its ok and active but i have red yet

http://prntscr.com/knev04
Title: Re: Guys help me my server its down
Post by: Sandeep on August 27, 2018, 01:31:08 PM
errors
http://prntscr.com/knervk

http://prntscr.com/kneslu
remove the . after ip
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 01:32:51 PM
yes yes sandeep sorry i see. its ok now

 but i have red yet

http://prntscr.com/knev04
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 01:39:42 PM
http://prntscr.com/knez3i look this the domain from company its in there yet and succeded
Title: Re: Guys help me my server its down
Post by: bullten on August 27, 2018, 01:41:59 PM
From where you purchased server ask them to change rDNS to server.server80.tk
Title: Re: Guys help me my server its down
Post by: megasmorf on August 27, 2018, 01:44:17 PM
Ok thnx for all guys works now :P i am confused yet but this its work :P :P