The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'EasyApache' started by fevangelou, Feb 2, 2016.

  1. fevangelou

    fevangelou Member

    Joined:
    Oct 10, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    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?
     
    Duplika likes this.
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Hello,

    Please post the conflict message you are shown.

    Thank you.
     
  3. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Ditto. We need more information to be able to assist with this. It's possible that EA4 is providing a package that the Nginx repo provides, but ours is overriding it, however we need more information :)
     
  4. fevangelou

    fevangelou Member

    Joined:
    Oct 10, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    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
     
  5. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    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.
     
  6. fevangelou

    fevangelou Member

    Joined:
    Oct 10, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    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)
     
  7. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    When we spun up these packages, we paid no attention to Nginx or any other software, so we didn't block anything at all, it's just how the stack was built.
     
  8. fevangelou

    fevangelou Member

    Joined:
    Oct 10, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    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.
     
  9. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    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.
     
  10. fevangelou

    fevangelou Member

    Joined:
    Oct 10, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    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?
     
    Duplika likes this.
  11. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    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!
     
    #11 cPJacob, Feb 2, 2016
    Last edited: Feb 2, 2016
  12. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Also, if you come across any other difficulties getting Nginx going with EA4, please feel free to email me. perk [@] cpanel.com

    Thanks again!
     
  13. fevangelou

    fevangelou Member

    Joined:
    Oct 10, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    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...
     
  14. fevangelou

    fevangelou Member

    Joined:
    Oct 10, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    And BTW, that Jira link is inaccessible.
     
  15. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    Yep, this affects both C6 & C7.
     
  16. fevangelou

    fevangelou Member

    Joined:
    Oct 10, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Can we monitor the progress of this issue somewhere. I see the Jira link is removed.
     
  17. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    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.
     
  18. UHLHosting

    UHLHosting Well-Known Member

    Joined:
    Sep 26, 2014
    Messages:
    53
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    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
     
  19. fevangelou

    fevangelou Member

    Joined:
    Oct 10, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    @UHLHosting if you read the thread you'll notice cPanel committed to fix this already.
     
  20. UHLHosting

    UHLHosting Well-Known Member

    Joined:
    Sep 26, 2014
    Messages:
    53
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Bratislava
    cPanel Access Level:
    Root Administrator
    Twitter:
    Any chance the latest update has the issue fixed?
     
Loading...

Share This Page