Closed rajbdilip closed 7 years ago
I never had that problem on Debian8 :/
Where you 'enabled SSL', on web edit page?
And how it's possible to install all three services - you said php-fpm, apache, nginx
@dpeca I did standard VestaCP installation. As far as I remember it's Nginx with PHP-FPM. Apache is used to serve static content I guess.
In ''nginx + php-fpm'' combination, there is no Apache at all, believe me.
Is this only error you find in logs?
Maybe you see ''php-fpm'' in proccess list, but it's a php-fpm for Vesta admin panel only, not for public and not for sites :) In that case your combination is default ''nginx+apache''.
@dpeca My bad. I rechecked. I actually used this script http://vestacp.com/pub/vst-install.sh
to install VestaCP. So, this included:
And yes, I enabled SSL on Web Edit page. Actually, I used https://github.com/interbrite/letsencrypt-vesta to automate the process.
@dpeca I have updated the issue. Please have a look at it.
Can this be because of of corrupt configuration or anything? I haven't manually modified any vesta configurations but I did use https://github.com/interbrite/letsencrypt-vesta
script once to install LetsEncrypt certificate. Is there a way to reinstall VestaCP without affecting website files/SQL databases and VestaCP settings (DNS, Mail and everything)?
I feel something other is using your 443 port, so nginx can't bind it.
When it happen try to run:
netstat -tuapen | grep 443
... so we can see what is on 443 port.
However, I'm sure this is not VestaCP issue, and I'll close this ticket. Send me a private message via forum (username is the same: dpeca) when you figure out what is using your 443 port. It can be letsencrypt-standalone daemon, or Apache.
Try to kill all nginx processes and start nginx again
killall nginx
service nginx start
@anton-reutov I did that. (Before I was rebooting, it had the same effect.) Doing that would put the site up, get both http
and https
working but the page shows 500 Internal Server Error (502 Bad Gateway on browser console).
@dpeca netstat -tuapen | grep 443
at this point gives:
tcp 0 0 104.131.90.2:443 0.0.0.0:* LISTEN 0 22290 4453/nginx.conf
@dpeca It looks nginx itself is listening to the port. What could be causing 502? I had done clean Nginx + Apache install and haven't messed up with any nginx or apache configuration.
@dpeca @anton-reutov Insight on this?
@rajbdilip I happen to have the exact same issue... Di you resolve it on your server?
@philippe-tellier No. I haven't been able to work on the issue since then.
@philippe-tellier Did you resolve?
@rajbdilip I just fixed it.
I commented out the 3 IPs that were using port 443 in my "/etc/apache2/ports.conf" file, restarted apache and nginx, and everything is working fine right now.
I don't really know why there were entries in "ports.conf", but it seems that it was useless for my setup.
I hope it helps!
@philippe-tellier Hi. Great that you worked out a convenient solution. I had to do a fresh install. But hopefully this will help someone in the future. Thank you. :)
@philippe-tellier, dude, thank you very much. It worked for me :+1:
Yeah, after the whole night of research, to comment those lines fixed the problem! Thank you!
Operating System (OS/VERSION):
Debian x64 8.6
VestaCP Version:
core package Version:0.9.8 (amd64) Release:16
Installed Software (what you got with the installer):
Steps to Reproduce:
After Enabling SSL Support and entering required keys, and then hitting Save, the settings get saved but the site goes down and nginx fails to restart.
Nginx error log gives the following:
BUT if I reboot the server, Nginx starts up and I can access the site with both 'http' and with 'https' (certificate is successfully installed) but I get 500 Internal Server on the page and 502 Bad Gateway in browser console. This error goes away if I disable the SSL support from VestaCP panel and reboot the server.