500 Internal server Error (Physical Server Migration)

So my VPS Provider has their Physical Server Relocated, they did not change the IP but for some reason after the migration, I can’t access my site but I can access my Dash.

This happen before and they change the IP but this time they did not change the IP so did follow what I did before and still it’s not working.

I did tried to

systemctl restart nginx
systemctl restart apache2

But still it won’t work, Below would be my logs, Unfortunately I can’t copy paste as I am on office pc so I can’t terminal and can only VNC, but here is the screenshot.

What should I do? Thanks!

That apache log doesn’t show any error, just a normal ssl warning, that is not the problem.

You should check the domain log (example for domain avianserver.com):

/var/log/apache2/domains/avianserver.com.error.log

The output of nginx and apache2 conf should help to:

cat /home/*/conf/web/avianserver.com/nginx.conf
cat /home/*/conf/web/avianserver.com/nginx.ssl.conf
cat /home/*/conf/web/avianserver.com/apache2.conf
cat /home/*/conf/web/avianserver.com/apache2.ssl.conf
1 Like

for /var/log/apache2/domains/avianserver.com.error.log

for sudo cat /home/*/conf/web/avianserver.com/nginx.conf sudo cat /home/*/conf/web/avianserver.com/nginx.ssl.conf

for sudo cat /home/*/conf/web/avianserver.com/apache2.conf sudo cat /home/*/conf/web/avianserver.com/apache2.ssl.conf

Sorry again I am still in the office so I can only VNC and Thanks!

Show the output of these commands:

lsof -Pn +c0 -i:80,443,8080,8443,9000 -sTCP:LISTEN
ls -l /run/php/php8.2*
systemctl status php8.2-fpm --no-pager -l
lsof -Pn +c0 -i:80,443,8080,8443,9000 -sTCP:LISTEN

ls -l /run/php/php8.2*

systemctl status php8.2-fpm --no-pager -l

I see no problem, all looks fine:

ip a
iptables -S
ls -l /etc/{nginx,apache2}/conf.d/
curl -IkL http://158.51.78.80:8080
curl -IkL https://158.51.78.80:8443
grep -E '^PROXY|^WEB_' /usr/local/hestia/conf/hestia.conf
grep -E '^PROXY|^WEB_' /usr/local/hestia/conf/defaults/hestia.conf

Yeah that’s why I am wondering why I can’t access my website even though it did not change IP it only relocate…

Is there anything still I can do?

Yes, show the output of the commands on my last post.

ip a

iptables -S

ls -l /etc/{nginx,apache2}/conf.d/

image

curl -IkL http://158.51.78.80:8080
curl -IkL https://158.51.78.80:8443

image

No Output

grep -E '^PROXY|^WEB_' /usr/local/hestia/conf/hestia.conf

grep -E '^PROXY|^WEB_' /usr/local/hestia/conf/defaults/hestia.conf

here ya go

That’s the problem, you can’t connect to your public ip from the server.

ip r
traceroute 158.51.78.80 

If traceroute is not installed: apt install traceroute

1 Like