Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Replace NGINX only Installation with Apache

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
RaZZe
Posts: 2
Joined: Wed May 18, 2016 7:09 am

Replace NGINX only Installation with Apache
  • Quote

Post by RaZZe » Wed May 18, 2016 7:12 am

Hi,

is it possible to replace my NGINX only installation with a apache or Apache+Nginx installation ?

Greetings RaZZe
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Replace NGINX only Installation with Apache
  • Quote

Post by tjebbeke » Wed May 18, 2016 2:30 pm

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.
Top

RaZZe
Posts: 2
Joined: Wed May 18, 2016 7:09 am

Re: Replace NGINX only Installation with Apache
  • Quote

Post by RaZZe » Thu May 19, 2016 12:56 pm

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.
No way. Need a solution with fewer Downtime and a Mailserver downtime is not possible.
Top

Elizine
Posts: 50
Joined: Wed Aug 12, 2015 12:11 pm
Contact:
Contact Elizine
Website

Re: Replace NGINX only Installation with Apache
  • Quote

Post by Elizine » Fri May 20, 2016 7:50 am

First, you need to stop nginx so it releases port 80 so that apache2 can listen to it later on.

Code: Select all

sudo service nginx stop
Next, if nginx was installed with apt-get, removing it would be as simple as

Code: Select all

sudo apt-get remove nginx
Instead, you can also use

Code: Select all

sudo apt-get purge nginx
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.

Code: Select all

sudo apache2ctl restart
If you had removed apache before installing nginx, you can re-install it with

Code: Select all

sudo apt-get install apache2
Top

fossxplorer
Posts: 22
Joined: Sun Sep 07, 2014 10:04 am

Re: Replace NGINX only Installation with Apache
  • Quote

Post by fossxplorer » Mon May 23, 2016 8:27 pm

And...what about vhost for the newly installed Apache??
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Replace NGINX only Installation with Apache
  • Quote

Post by tjebbeke » Mon May 23, 2016 8:50 pm

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.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password