Why does EasyApache4 block Nginx installation using yum & official Nginx repos?

fevangelou

Member
Oct 10, 2010
24
5
53
Athens, Greece
cPanel Access Level
DataCenter Provider
Twitter
Simple question.

CentOS 6.x, EasyApache 4.

Try installing Nginx from its official repos.

That's a no go.

I get presented with a conflict message regarding Nginx and EasyApache's httpd package.

Is this intentional cPanel folks?

Why on earth would a yum package, unless it's the same software as EasyApache's (e.g httpd), ever conflict with EasyApache 4?
 
  • Like
Reactions: Duplika

fevangelou

Member
Oct 10, 2010
24
5
53
Athens, Greece
cPanel Access Level
DataCenter Provider
Twitter
I'm retrieving this from /var/log/yum.log because I switched to EasyApache 3 to bypass the issue...

The package is: ea-apache24-2.4.18-1.1.x86_64
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
This is happening because Nginx is providing it's own 'webserver' meta-package, which conflicts with cPanels 'webserver' meta-package.

Code:
---> Package nginx.x86_64 0:1.8.1-1.el6.ngx will be installed
--> Processing Conflict: ea-apache24-2.4.18-2.1.x86_64 conflicts webserver
--> Processing Conflict: ea-apache24-2.4.18-2.1.x86_64 conflicts webserver
EA4 doesn't yet officially support Nginx, so having both EA4 and Nginx installed from the repos like this is not supported. Some plugins may provide Nginx support with EasyApache 4 already, but you'd need to search those out.
 

fevangelou

Member
Oct 10, 2010
24
5
53
Athens, Greece
cPanel Access Level
DataCenter Provider
Twitter
I'm the maker of one of these plugins :) Engintron...

However, as it's been the case with Engintron since day one, to make the entire process easy, I use the official Nginx repos to perform the installation and also allow the entire system to update Nginx when it also gets updated.

Now, knowing that cPanel has plans to support Nginx at some point, does this have anything to do with it?

Cause guys if it is, it looks kinda lame to block Nginx's installation from its own repos... (no offence)
 

fevangelou

Member
Oct 10, 2010
24
5
53
Athens, Greece
cPanel Access Level
DataCenter Provider
Twitter
Would you mind fixing it then? It's nice for cPanel users to have options, right?

Why not make everyone's life easier and use package managers for CentOS and not rebuild each software package we wanna use from scratch? Makes keeping your system safe and secure a reality.
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hi,

There's nothing really to fix. Both EA4 and upstream CentOS conflicts with any other 'webserver' package. This is how CentOS keeps other webservers from being installed and causing issues. We've simply cloned how CentOS distributes the packages.

If we were to remove this conflict, this would allow anyone to 'yum install httpd', and install the upstream versions of httpd, which would greatly conflict with EA4. Thus, we won't be able to remove this conflict.

I'd recommend compiling Nginx from source, or spinning up / distributing your own Nginx stack that's compatible with EA4.
 

fevangelou

Member
Oct 10, 2010
24
5
53
Athens, Greece
cPanel Access Level
DataCenter Provider
Twitter
So you're saying that if I install a stock CentOS 7 build without cPanel, install Apache (httpd) and then try to install Nginx from its repos, it will fail? For real?
 
  • Like
Reactions: Duplika

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hi,

I take back what I said. We went over this about a year ago when we were initially spinning up these packages. I just attempted to verify that with a vanilla CentOS 6 install, and indeed there are no conflicts in that, nor in the sources RPMs I pulled down from CentOS.

The original purpose was to keep users from doing a 'yum install httpd' and having a bad day. I've opened case EA-4107 to take a look at this and see if we can remove this conflict.

Thanks for the report sir!
 
Last edited:

fevangelou

Member
Oct 10, 2010
24
5
53
Athens, Greece
cPanel Access Level
DataCenter Provider
Twitter
Thank you. I'll post back the link to your tracker in Engintron's project page for other users reference. I assume this affects both CentOS 6 and 7, right? Not just CentOS 6...
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Unfortunately there isn't a place watch the progress, since it's an RPM change only. I'll be sure to update this thread with more information when we get look at it more in depth with full testing.

PHP looks to be making a 5.6 update this week, so I expect we'll be making an EA3 & EA4 update shortly thereafter, and I hope to get this change into that update.
 

UHLHosting

Well-Known Member
Sep 26, 2014
58
5
58
Bratislava
cPanel Access Level
Root Administrator
Twitter
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.8.1-1.el7.ngx will be installed
--> Processing Conflict: ea-apache24-2.4.18-1.1.x86_64 conflicts webserver
--> Finished Dependency Resolution
Error: ea-apache24 conflicts with 1:nginx-1.8.1-1.el7.ngx.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
 

UHLHosting

Well-Known Member
Sep 26, 2014
58
5
58
Bratislava
cPanel Access Level
Root Administrator
Twitter
Unfortunately there isn't a place watch the progress, since it's an RPM change only. I'll be sure to update this thread with more information when we get look at it more in depth with full testing.

PHP looks to be making a 5.6 update this week, so I expect we'll be making an EA3 & EA4 update shortly thereafter, and I hope to get this change into that update.
Any chance the latest update has the issue fixed?