Page 4 of 7

Re: VestaCP CentOS 7 Server Installer

Posted: Sat Dec 03, 2016 1:39 pm
by pandabb
my result:


;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 1121
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;server.xxxx.com. IN A

;; Query time: 3135 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed May 03 13:05:46 EDT 2017
;; MSG SIZE rcvd: 55
--------------

How to troubleshoot , it looks like it failed.

Re: VestaCP CentOS 7 Server Installer

Posted: Sat Dec 03, 2016 4:53 pm
by SS88
pandabb wrote:my result:


;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 1121
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;server.xxxx.com. IN A

;; Query time: 3135 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed May 03 13:05:46 EDT 2017
;; MSG SIZE rcvd: 55
--------------

How to troubleshoot , it looks like it failed.
It means there is no A record for server.xxxx.com - you need this A record in order for it to work. You'll have to set up a new A record at xxxx.com for server

Re: VestaCP CentOS 7 Server Installer

Posted: Sun Dec 04, 2016 3:31 am
by pandabb
Where do i configure this? I don't think my registrar allows me to do this unless i use their own nameservers. I can think of cloudflare ? Or should i manually configure this on my vps using named, if yes will it not make a conflict once vesta has been setup?

Re: VestaCP CentOS 7 Server Installer

Posted: Sun Dec 04, 2016 12:13 pm
by SS88
pandabb wrote:Where do i configure this? I don't think my registrar allows me to do this unless i use their own nameservers. I can think of cloudflare ? Or should i manually configure this on my vps using named, if yes will it not make a conflict once vesta has been setup?
You have to add this to named wherever the nameservers are for the primary domain (xxxx.com) and add an A record for server (server.xxxx.com0 to an IP address

Re: VestaCP CentOS 7 Server Installer

Posted: Mon Dec 05, 2016 5:02 pm
by lossehelin
i have a quick question. im using cloudflare so my hostname ip will point to cloudflare ip. is this a potential problem?

Re: VestaCP CentOS 7 Server Installer

Posted: Mon Dec 05, 2016 7:13 pm
by SS88
lossehelin wrote:i have a quick question. im using cloudflare so my hostname ip will point to cloudflare ip. is this a potential problem?
I can't answer this question because I do not use Cloudfare - I imagine it won't work but you could try.

Re: VestaCP CentOS 7 Server Installer

Posted: Tue Dec 06, 2016 5:47 pm
by lossehelin
yeah. didnt work...... and turning it off., install and then turn cloudflare on again might be a problem i guess?

Re: VestaCP CentOS 7 Server Installer

Posted: Tue Dec 06, 2016 6:05 pm
by SS88
lossehelin wrote:yeah. didnt work...... and turning it off., install and then turn cloudflare on again might be a problem i guess?
If you can turn it off so hostname.domain.com points to the server IP address then you should be OK. What happens with the install script is it uses Let's Encrypt to install a SSL certificate onto hostname.domain.com which in turn secures the control panel, phpmyadmin, roundcube, exim, dovecot, etc. However, when this comes to renew (which is does automatically) I imagine it would fail aswell.

Re: VestaCP CentOS 7 Server Installer

Posted: Thu Dec 08, 2016 8:26 am
by pandabb
Hello thanks for the great script i got it working via cloudflare except for the SSL'd hostname it didn't come out pre-installed due to my error i forgot to add http://www.hostname i only added the one without www.

Question: Since i manually added the ssl for the server hostname do i have to do this again manually or your script will auto renew this after it expires ?

Question: Can you give a short info or description where to use best the backend templates:
1. default
2. nophp
3. socket

If you have a custom template too for wordpress that would be great.

Laslty, do you have a template or code to force https the hostname server url ? I tried the template force https under the DOCS section but it doesn't work it made nginx stop.


Thank a lot!

Re: VestaCP CentOS 7 Server Installer

Posted: Thu Dec 08, 2016 12:44 pm
by SS88
pandabb wrote:Hello thanks for the great script i got it working via cloudflare except for the SSL'd hostname it didn't come out pre-installed due to my error i forgot to add http://www.hostname i only added the one without www.

Question: Since i manually added the ssl for the server hostname do i have to do this again manually or your script will auto renew this after it expires ?

Question: Can you give a short info or description where to use best the backend templates:
1. default
2. nophp
3. socket

If you have a custom template too for wordpress that would be great.

Laslty, do you have a template or code to force https the hostname server url ? I tried the template force https under the DOCS section but it doesn't work it made nginx stop.


Thank a lot!
If you added SSL via the command line or through the Vest Control Panel it will automatically renew. You can check this by making sure there is a cronjob under admin with: sudo /usr/local/vesta//bin/v-update-letsencrypt-ssl

socket is always best to use if you are using PHP and nophp is best to use if you are not.

The code below will do HTTP -> HTTPS - you must put this in nginx.conf but if you ever update/rebuild and/or LetsEncrypt renews it will change it back to the default:

Code: Select all

server {
    listen      SERVER_IP_ADDRESS:80;
    server_name yourdomain.com www.yourdomain.com;
    location / { rewrite ^(.*) https://www.yourdomain.com$1 permanent; }
}