Switch from Apache to Nginx on new VPS. Can I restore the old virtual servers?

3 posts / 0 new
Last post
#1 Tue, 08/20/2019 - 13:06
oneearth

Switch from Apache to Nginx on new VPS. Can I restore the old virtual servers?

hi,

I'm planning to provision a new VPS plan with a LEMP Nginx stack.

Can I make a backup of the current virtual servers on my LAMP Virtualmin VPS and restore them to the new LEMP VPS?

thank you, Harreson

Mon, 08/26/2019 - 19:25
rrhode

Hi there,

I know this is a bit delayed but I suppose better late than never.

In short, no you will definitely run into some issues. Maybe you've discovered this by now since your post is almost a week old. You are probably better of sticking with Apache or placing NGINX as a reverse proxy in front of it. The reason is because many things will not work correctly without Apache.

I don't think Virtualmin will let you even import them if you don't have Apache enabled, but I might be wrong. I didn't try it lately. You will also have to manually configure the NGINX config files and that can be a bit difficult if you don't know what you're doing. Virtualmin doesn't do a lot of NGINX config automatically. Especially if you're running something like WordPress, there is a guide on wordpress.org explaining some of the config but even then a fair number of plugins still won't work correctly. Some require a .htaccess file to do their stuff.

I have tried switching to NGINX and now even though everything is configured right and I have it running smoothly I want to switch back to Apache because some of the WP plugins do not work on anything but Apache. While this could be considered an issue with the plugin itself, it doesn't really matter because I need the plugin because I can't find any good alternatives that work correctly on NGINX.

Sun, 09/01/2019 - 23:24
oneearth

Thanks for the reply.

Having Wordpress plugins work is definitely a priority for me.

So I will take your experience and stick with Apache.

Much obliged! :-)

Topic locked