We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Replace NGINX only Installation with Apache
Replace NGINX only Installation with Apache
Hi,
is it possible to replace my NGINX only installation with a apache or Apache+Nginx installation ?
Greetings RaZZe
is it possible to replace my NGINX only installation with a apache or Apache+Nginx installation ?
Greetings RaZZe
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Replace NGINX only Installation with Apache
I don't think it's easy. The best and maybe fastest way is to backup your users, reinstall your server with vestaCP and import the backups.
Re: Replace NGINX only Installation with Apache
No way. Need a solution with fewer Downtime and a Mailserver downtime is not possible.tjebbeke wrote:I don't think it's easy. The best and maybe fastest way is to backup your users, reinstall your server with vestaCP and import the backups.
Re: Replace NGINX only Installation with Apache
First, you need to stop nginx so it releases port 80 so that apache2 can listen to it later on.
Next, if nginx was installed with apt-get, removing it would be as simple as
Instead, you can also use
First one removes all package files, while the second also removes the configuration files.
If you intend to use nginx later on with the configuration you did, use remove. Else, I would suggest using purge.
After removing nginx, you can restart apache to make sure it is listening to port 80.
If you had removed apache before installing nginx, you can re-install it with
Code: Select all
sudo service nginx stop
Code: Select all
sudo apt-get remove nginx
Code: Select all
sudo apt-get purge nginx
If you intend to use nginx later on with the configuration you did, use remove. Else, I would suggest using purge.
After removing nginx, you can restart apache to make sure it is listening to port 80.
Code: Select all
sudo apache2ctl restart
Code: Select all
sudo apt-get install apache2
-
- Posts: 22
- Joined: Sun Sep 07, 2014 10:04 am
Re: Replace NGINX only Installation with Apache
And...what about vhost for the newly installed Apache??
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Replace NGINX only Installation with Apache
It isn't that easy. You need to change vesta config files, Nginx configs, Apache configs, ...
Maybe you can take a look at the install script and use some commands to download templates, change configs.
The easiest way from Nginx only is to Nginx + Apache. You only need to add Apache, some templates and modify some config files. You can install Apache when Nginx stays running to prevent downtime.
From Nginx to Apache only is hard I think. You need to change ports, ...
https://github.com/serghey-rodin/vesta/ ... er/install
If you think it is too difficult, maybe I can help you, send me a PM.
Maybe you can take a look at the install script and use some commands to download templates, change configs.
The easiest way from Nginx only is to Nginx + Apache. You only need to add Apache, some templates and modify some config files. You can install Apache when Nginx stays running to prevent downtime.
From Nginx to Apache only is hard I think. You need to change ports, ...
https://github.com/serghey-rodin/vesta/ ... er/install
If you think it is too difficult, maybe I can help you, send me a PM.