Stand-alone nginx supported as an alternative to Apache

Feature Importer shared this idea 5 years ago
Planned

As a Server Administrator, I want stand-alone nginx supported as an alternative to Apache, so that I can offer faster speed and lower load on smallers servers where the capabilities of Apache are not needed.

This is different than the previous nginx feature request thread as that is strictly about proxying requests from one httpd to another depending on content type etc.

This is a feature that has been migrated over from the cPanel Forums. All previous comments and discussions concerning this feature can be located at:

http://forums.cpanel.net/f145/nginx-alternative-apache-stand-alone-no-proxying-case-57699-a-271281.html

Best Answer
photo

This becomes something closer to a possibility with the move to EasyApache 4, and the switch to RPMs for managing PHP. Once EA 4 is fully stable and we start to expand its functionality, one of the next steps will be to add support for additional webservers, and nginx is high on that list. To be clear, while part of the general game plan, this specific request is unlikely to begin development until late-2016 to early-2017, but it's definitely on our radar.

Comments (94)

photo
7

It would be nice to see CPanel openly embrace and support NGINX without having to go through a third party. Of course, this could be said about Varnish as well. It's simply a matter of allowing for scalability. Right now, out of box, and without a server admin getting in there and doing some configuration, CPanel is limited to outsourcing DNS and clustering MySQL**.

** If that server isn't running CPanel, then it's a pain. If it is, unless you prefer zero support, you're stuck with MySQL instead of alternatives such as MariaDB or Percona. Even as drop-in replacements that work, they're still not supported.

photo
7

Definitely a massive change for the way cPanel codebase if implemented, but this would be a brilliant feature giving so much more flexibility to hosts and is worth it when you look at the popularity of nginx.

photo
3

Support to nginx and maybe some interface to create rewrite rules, because the nginx is not compatible with .htaccess files.

photo
2

Would love nginx. Have to run extra cronjobs to protect apache from attacks available in the late 90s......

photo
3

Of course every Server Administrator must choose what option wants to use: Apache or NginX. We can not be locked only in one serving server - Apache, because there is a lot of deep holes inside and a lot of DDOS attacks with Apache Benchmark (official tool from Apache).

I will be happy if you plan to implement this feature and also next big step will be to implement HAproxy in combination with desired Web Server.

photo
4

There are so many things I would rather cPanel focus on before Nginx, namely, support for PHP-FPM, and better default settings.

If Apache 2.4 is configured and tuned correctly, it performs comparably with Nginx. Apache wins some benchmarks, Nginx wins others, and the difference is pretty small. The only real advantage Nginx gives on a cPanel server is better defaults. Making Apache competitive would take a lot less effort than adding Nginx support, and provide similar rewards.

photo
2

While I agree this would be awesome, I feel a reason for not including it is simply it could put a few software developers out of clients.

Would you rather use a free one, provided by cPanel, or a paid one from someone else?

You likely will say free.

photo
1

i would love to see Nginx as something we can use in cPanel and have it set for certain or all domains like some cPanel plugins does. However Nginx doesn't use any UDP like Apache therefore Apache will fail in that regard. I'm sure cPanel will do it just matter of time.

photo
3

Year 2014, almost all servers in the world that uses very high demanding websites uses nginx but no control panel save a few (webmin/virtualmin, ispconfig3) use it.

nginx already demostrated it's superiority in performance, let the people that want to use it, use it.

nginx is not only a life saver in relation to cpu demand, it is also a lot better than apache in regards to memory usage, combined with php-fpm, it is an absolute apache killer, no matter what apache version you compare it to.

PLEASE add support !

photo
3

In reply to cpjerry, most software devs don't provide standalone nginx with php-fpm and the few that do I doubt they can provide the same level of support as cpanel does. If there is a software dev with the same level of support as cpanel then maybe cpanel could partner with them and provide it as a paid option with cpanel support. If this is not the case then this feature along with php-fpm is indeed needed. Other features are more important to us then this one as we now use litespeed which is a more transparent fast web server solution than nginx for customers at least

photo
2

cPJerry wrote:

While I agree this would be awesome, I feel a reason for not including it is simply it could put a few software developers out of clients.

Would you rather use a free one, provided by cPanel, or a paid one from someone else?

You likely will say free.

Businesses open and close all the time adding and substracting competition. When the developers develop something like nginx for cPanel, they also at the same time accept the risk that cPanel might incorporate it in the future.

For me, one of the main reasons to not use nginx right now is that cPanel don't offer support for it.

photo
2

+++++1 for nginx support.

this would be awesome.

there`re already some nginx plugins out there.

but many plugins doesnt work with cloudlinux or has conflicts with the apache etc.

photo
1

If cpanel can accommodate full webserver like apache and litespeed, I think it is not impossible if cpanel can support full nginx too.

I will never choose other than cpanel :)

photo
1

Why on earth is this not an integrated option yet? We most certainly

need to be able to use nginx when the occasion arises, especially for

reverse proxy solutions.

photo
1

kayyy wrote:

+++++1 for nginx support.

this would be awesome.

there`re already some nginx plugins out there.

but many plugins doesnt work with cloudlinux or has conflicts with the apache etc.

Now the cpxstack plugin works with CL6 after the last update to lve-utils, but it`s still not the perfect solution.

We really need diversity and alternatives.

Sure, there are other important things to be added, and this is not such a pressing matter, but maintaining and keeping stable an additional unsupported webserver is a pain.

photo
2

Why do we need to delay this request? This is a must and if cPanel started to support this, more people will move to cPanel. If cPanel will not support this, more and more people will cancel their cPanel license and move to a free control panel that do support nginx. Not that hard really.

photo
1

Yes, would be nice to have the option to use Nginx + PHP FPM + Maria DB.

photo
2

This is HIGHLY REQUIRED today. cPanel should hear their customers.

Apache is not fine with busy servers.

photo
3

+1 for this feature

We are using a 3rd party plugin for NGiNX (as reverse proxy for Apache) and there is a huge difference.

cPanel, please take this feature as priority #1

photo
1

Priority UP, help to protect HULK DDoS attacks.

photo
1

This should be in CPanel. Need to have a more robust solution for busy sites than Apache. I am debating leaving my current hosting provider to one that can set up a nginx server and you will lose me as a CPanel customer.

photo
1

It would be nice to have nginx functionality while still being able to use htaccess, host joomla so users dont have any errors in their scripts

photo
1

That only works when nginx is in front of apache.

Maybe an apache rule converter could be added to users can choose folder, click on add apache htaccess, enter code, see the resulting ngnix code and save. This would make nginx almost as friendly as apache without needing apache to even be installed. Maybe even an option like scan for htaccess files that converts rules to nginx rules based on the htaccess files found on the account...

photo
2

Don't forget to integrate SSL management in Nginx.

photo
2

+1 for this.

Nginx + php-fpm + MariaDB would be nice..

Cheers!

photo
1

@cPanel Staff

We have been waited for 2 years, and still no comments from cPanel Staff. As you can see it's one of the top voted featured.

Please come with a explanation - instead of hiding you for this feature request.

Best Regards

Bastian Jorgensen.

photo
4

Hello,

At this point in time, offering Nginx is something that cPanel wants to offer. Currently we're all hands on deck working towards EasyApache 4, however we're setting up EasyApache 4 to allow us to drop in web server replacements rather easily.

After EA4 is released, this will be something we'll be looking at.

Thanks for all of your feedback!

photo
3

@Jacob Perkins

Is there an ETA on EasyApache 4 / Nginx support ?

photo
1

Good morning,

We hope to have a beta of EasyApache 4 out in 11.50. We should have EA stable around 11.52 or so, after which time we'll be looking at extending the Web Stack.

Please go here for more information regarding EasyApache 4:

http://forums.cpanel.net/f133/easyapache4-announcement-447882.html

photo
3

What time frame are we looking at?

photo
1

It would be good but have you ever gave a thought on htaccess ?

If you completely remove apache and use nginx , then you will not be able to use htaccess .

photo
2

any official response by cPanel on this ???

when can this be scheduled to be officially supported ?

photo
2

it's been so long everyone requests for this, cPanel need to finally do it !

photo
3

its been ages since I first seen this feature request ...

cPanel still things if this is needed when private companies make a fortune selling addons for that ???

or this is the target ?

photo
3

cPanel has been converting their easy apache system to be 100% RPM based. Easy Apache 4 beta was officially targeted for 11.50 (planned for next week) but the beta version has now been postponed for 11.52 as they haven't finished building all the RPMS.

cPanel 11.54 should bring a stable version of EA4 and after this they will be able to start adding things like php-fpm and nginx.

From what I have read, nginx is defenetly still planned, but not to be expected before EA4 makes it to stable (prossibly somewhere near the end of the year).

So my guess is nginx will be for 2016, but we wil have to wait and see for sure.

photo
2

why not providing an easy option to "Select HTTP Server" like they do for DNS and Mail ???

photo
2

I would suggest more of an approch like the existing 3rd party solutions. Nginx doesn't nativly support .htaccess files so a user would have to convert all of them to nginx format.

Allowing users to decide between Nginx (with nginx config file) and Apache (with .htaccess) would be the best solution in my opinion. It would be copying the way existing 3rd party plugins do it though.

The way cpxstack by Sys Ally do with with Nginx either connected directly to php-fpm (when nginx is chosen) and Nginux connected to Apache for non static files is a very clean and nice way to allow users to choose between Nginx and Apache.

Obviously somes hosts might want to not install Apache and only run Nginx, this should defently be an option too.

photo
3

Technology is moving much faster than an EasyApache rpm-based solution.

There are people who want to host other things except php and common pages.

Having an option to "Select HTTP Server", opens the way to support several different potential clientelle,

including java, node js, multiple php versions etc.

Or, for more advanced solution, they could have always an NginX for front and ability to setup via reverse proxy, several other HTTP Servers running in other ports and able to be selected by each cpanel client.

This logic, can also be used in databases, we get ton of requests lately to host NO-SQL clients, like Mongo-DB or Cassandra, but cPanel still isn't even able to make MariaDB to work, which is a drop-in replace for MySQL...

Very disappointing speed there...

photo
1

yes, the speed of updates with this panel, dont seem to follow the pace ...

they make millions, its time to invest something back for us, the paying customers !!!

photo
2

well, I'm sure it needs time to be stable to be released,

but still, they don't even have it in their plans !!!

photo
1

PostgreSQL support is also extremely critical if we're going to talk about databases. We use Phusion Passenger + PGSQL and Apache 2.4 presently with really nice results on cPanel, but it's custom work. I would love to see this all wrapped together into the cPanel paradigm without having to manually update things.

EDIT: If anyone's interested, you might throw a vote this way: https://features.cpanel.net/topic/improved-postgresql-support

photo
2

At this is exactly why Docker support would be awesome. Let customers choose what DB or Webserver they want. Have some basic images ready for the noobs which will be supported by cPanel, let each ISP create their own images matching their target audience. For example is a hosting provider focusses on nodeJS package... no problem with Docker. If a hosting provider focusses on nginx with MongoDB, no problem with Docker.

Soon the time will come that a new control panel will focus on the new technologies used by developers and then all classic LAMP hosting panels will be forgotten.

photo
1

They have answered, see here.

They will start looking into this after 11.52, they have just released 11.50 so I guess 11.52 will be about in 3 to 6 months. They will probably give us more info then.

photo
1

Come on cPanel, this request has 414 votes up.

Answer us!

We want Nginx or Nginx reverse proxy with apache ASAP!

photo
1

From a private support ticket I know that they aren't planning this feature yet, nor there has been a decision that this is going to be done. I will quote Matthew Vetter, who is technical analyst II:"There has been no official announcement or decision on support for nginx, other than its something we would like to add based on the comment in the feature request. However at this time we do not support nginx and offering it in the future may or may not include support for it. Since this has not been released I cannot really say as no decisions have been made at this time.

====

At this point in time, offering Nginx is something that cPanel wants to offer. Currently we're all hands on deck working towards EasyApache 4, however we're setting up EasyApache 4 to allow us to drop in web server replacements rather easily.

After EA4 is released, this will be something we'll be looking at."

photo
1

Why is not in progress? why cPanel staff need more feedback? No sense.

photo
1

NGINX is nice to have but it's only use I can think of is serving static content (reverse proxy). Not a thing to focus on at the moment as there's far more important things to implement first.

photo
1

Well that's not true. I use Nginx to serve everything. A complete replacement for Apache or LiteSpeed.

photo
1

Well that's not true. I use Nginx to serve everything. A complete replacement for Apache or LiteSpeed.

photo
1

I completely disagree Maarten. All the reports show NGINX uses significantly fewer resources under load than Apache. Since resources cost money, I can provide faster hosting for lower cost with it. I'm planning on moving to NGINX as soon as possible with or without cPanel.

photo
1

We are using Nginx on Virtualmin servers. The speed is at least double. And the server load with apache is going over 20 on on-peak hours, with nginx is under 2 with the same or more traffic.

photo
1

What Apache version, MPM, and PHP handler are you using? Apache 2.4 with mpm_event is very close to Nginx in terms of performance.

photo
1

Apache 2.4 requires more resources than nginx. So long as you have enough resources for Apache it will be similar but overall nginx is much faster in most benchmarks :

http://www.eschrade.com/page/performance-of-apache-2-4-with-the-event-mpm-compared-to-nginx/

https://www.litespeedtech.com/solutions/benchmarks/small-static-file

photo
1

Apache 2.4 requires more resources than nginx. So long as you have enough resources for Apache it will be similar but overall nginx is much faster in most benchmarks :

http://www.eschrade.com/page/performance-of-apache-2-4-with-the-event-mpm-compared-to-nginx/

https://www.litespeedtech.com/solutions/benchmarks/small-static-file

photo
2

We are using Nginx on Virtualmin servers. The speed is at least double. And the server load with apache is going over 20 on on-peak hours, with nginx is under 2 with the same or more traffic.

photo
1

Pushing for development of a feature is not something done based on a small number of opinions. What a single administrator thinks is important or if he will use it is irrelevant. What a large group of customers wants is different from what a small group of other think is important.

This is a feature request in the top 3 of votes which has been submitted 3 years ago. This one is also not in my personal top 10, however I think cPanel should listen to it's customers.

My customer base is asking more and more for nodeJS and Ruby hosting. NGINX would be a nice frontend to manage this through cPanel.

However at the speed cPanel is working on this and Container/Docker integration, I think I'll ditch cPanel before it is developed.

photo
3

Status: Planned

This is good news. I just hope by planned, they mean sooner rather than later. cPanel is a little slow implementing things (slower than Plesk or DirectAdmin)

photo
2

Because you pay for a cPanel/WHM license doesn't mean you are entitled to have anything and everything you dream about be implemented in cPanel. Features requests are a way to gauge the interest of the users toward new features. They are also a way for users to promote their ideas by discussing the pros and cons. This is something I am not seeing much in this thread lately. Complaining will get you nowhere. It would help us all a great deal if comments were a bit more constructive.

I'd love to see nginx as an option because options are good and not everyone has the same needs. I also believe that nginx could very well be the default as it (can) supports pretty much every features that are currently available in EasyApache in some form or another. Also as was said before nginx is proven to perform much better than apache which is a big + on a shared server. It's configuration is fairly easy to grok and not that much different than apache.

+1

photo
1

Having ton of money and not funding development enough is bad. There is nothing more to talk about this, its just needs to be done. If a 'nobody' can make plugin to make this work, there is a zero chance that cPanel is unable to do it also. My opinion is that they just don't care. Better to make profit than to invest in domething new and introduce potential problems.

photo
6

Hi,

The primary reason Nginx support hasn't been built into cPanel yet is because of EasyApache 3. We wanted to have a proper, stable RPM base before we started adding on additional web servers / caching layers.

Now that EasyApache 4 is built and working, Nginx is something we'll be working on very soon.

photo
1

Looking forward to it.

photo
1

That's very exciting Jacob! I know how much work it takes to maintain quality software with updates that don't impact a huge install base. Thank you to your team for considering this request and acting upon it. Adding another supported option is a huge expansion of regression testing and an assumption of maintenance.

Next time any of the devs working on the project are in North East Ohio, I'll buy 'em a pint.

Cheers!

photo
1

Any ETA of Easy Apache 4 ?

photo
2

EasyApache 4 is set to release with cPanel 11.52, which is in EDGE at this time. Note, NGinx support is *NOT* included with EasyApache 4 at this time. This was simply a status change as this is something we would like to do.

photo
1

Hi,

I see this coming in the next few releases within cPanel & WHM. We're going to first start with Nginx as a caching frontend, and we're hoping to get this into 11.54, but we haven't started work on it yet. I'll be keeping the other Nginx feature request updated once we get started working on it :)

photo
1

Thanks for the update. This is a decent first step, having this feature integrated. It will be very exciting to get the full nginx stack in place.

photo
1

Great :) have been waiting this for years...

photo
1

Great! I have been doing the installation manually for years.. with no support and updates for apache.. now I see that things are getting better and this will be done from cPanel interface. Good job!

photo
1

Great! I have been doing the installation manually for years.. with no support and updates for apache.. now I see that things are getting better and this will be done from cPanel interface. Good job!

photo
1

Please keep in mind that this request was for nginx as a stand alone web server. While having nginx as a cache backend to apache is in the right direction, it does not fullfil this request.

photo
1

It would be absolutely necessary to provide Nginx reverse-proxy caching with SSL support. Offloading SSL work from Apache to Nginx + SPDY support to speed up HTTPS pages would be one of the biggest advantages that no other cache implements.

photo
3

Wow so many harsh comments here. Don't want to get into a comment war but to implement anything they have to think of various possibilities. Something might be simple for us but when it comes to implementing in a large systems like cPanel it will have different set of challenges.

They have taken first step and going to add nginx as proxy, which according to me is a good move.

photo
1

That much time and money? No. I dont accept that excuse.

photo
2

We really don't know what could be the reasons, their priorities might be different. If we look at other highly voted requests, they have either completed or are working on most.

I really don't think a company like cPanel would do something deliberately which will affect their business nagatively.

photo
1

People who haven't worked in a corporation producing retail software for a business environment, don't fully understand the impact and benefits of process. Those of us who have been there understand. Heck it's only been 2 years since this ticket was first created. It takes time for it to be evaluated as desired, designed and then added to the release schedule and then implemented. CPanel folks have acknowledged this is being done. If we don't have any progress or a date a year from now since the ticket has been approved. Then some of the hissy fit might be warranted.

photo
1

I would rather have cPanel take their time and get it right than to release a half-baked, buggy implementation of nginx. Besides that, Apache 2.4 performance is actually rather good once you take the time to configure it properly.

photo
1

Either standalone or either reverse proxy, both have there importance.

photo
1

I recently updated Engintron (http://engintron.com or https://github.com/nuevvo/engintron) with a new universal reverse caching proxy setup that does not require vhost synchronization, acts like CloudFlare by default (static asset caching) and also has an optional switch to enable micro-caching (that works miracles). Engintron is and always will be free and open source. It was built out of the common frustration everyone here has & after having tested any other existing solution. The trick is definitely in Nginx's configuration, which none of the other solutions ever got. Engintron is already deployed in various types of production servers, both VPS and dedicated, with all sorts of website types (with or without user generated content). Have a look & you won't regret it.

photo
1

Is Engintron compatible with CloudLinux and its CageFS, PHP Selector and other CL features?

photo
1

EngineTron looks fabulous someone like me that is not a super user, but wants to play with the big boys using Nginx to speed things up! I saw though that Easy Apache 4 is currently not supported and I use it to support multiple php versions on the server where needed. So the It made me wonder.... Is this one of the reasons for inoperability? Can Engintron support setups with multiple php versions without any crazy config line editing stuff?

photo
1

EngineTron looks fabulous someone like me that is not a super user, but wants to play with the big boys using Nginx to speed things up! I saw though that Easy Apache 4 is currently not supported and I use it to support multiple php versions on the server where needed. So the It made me wonder.... Is this one of the reasons for inoperability? Can Engintron support setups with multiple php versions without any crazy config line editing stuff?

photo
1

Check out nDeploy (https://support.sysally.net/projects/ndeploy/wiki) it was offering Nginx as standalone webserver for a while, along with PHP-FPM and PHP selector, along with mod_pagespeed optionally enabled. It also has reverse proxy cache option. cPanel's EA4 is not working with cloudlinux yet, nDeploy does work with CloudLinux by providing patched versions of PHP.

photo
5

This becomes something closer to a possibility with the move to EasyApache 4, and the switch to RPMs for managing PHP. Once EA 4 is fully stable and we start to expand its functionality, one of the next steps will be to add support for additional webservers, and nginx is high on that list. To be clear, while part of the general game plan, this specific request is unlikely to begin development until late-2016 to early-2017, but it's definitely on our radar.

photo
2

Yes!!! This is a must, it will solve many caching issues, and add MASSIVE speed and overall improvements in Hosting. I would love to see a HYBRID work and a STAND ALONE work. Such:

Nginx - Stand alone

Apache - Stand aloen

Apache + Nginx - Proxying

This surely will also ATTRACT more customers, and solve the issues with EXTERNAL NGINX plugins, that are keeping hard with Cpanel development, and some are paid, yet sometimes could allow breaches, I believe Cpanel should focus on adding value to it's products more and more. While the hosting market is a growing segment, avoid 3rd party plugins, provisioning something that Cpanel could have it in a box. Big up Cpanel, keep up the good work!

photo
1

Tried all the nginx plugins, my server keeps crashing.. the only stable solution as of today is to stick with apache on cpanel, I would LOVE to see a native nginx solution, really.. it's been years and years now.

photo
1

EasyApache 4 is pretty stable now, can we get more development moving on this??

photo
1

It would be nice to see this released. Nginx crushes Apache with PHP-FPM and unix sockets running in on-demand mode. Server blocks are logical. The includes are simpler. The server in general is modernized. As long as cPanel keeps things simple (ie using /etc/nginx and not some buried/specialty location) this would be a major selling point.

Also, as a thought, features.cpanel.net runs on nginx :)

photo
1

With 60 going out to CURRENT yesterday, our focus right now is on triage of any new bugs and helping folks convert to EA4 from EA3. Between now and the end of the year, we're continuing our efforts to move people away from EA3, and will be working on adding features to EA4. We definitely see this, and are hoping to see it done in 2017, but can't make any promises until more of the dust has settled. As soon as we have any solid plans, we'll let you know!

photo
1

Great, hoping to see Easyapache 4 stable to get this done.

Thanks cpanel :)

photo
1

EasyApache 4 is now stable. At the beginning of 2017, we found cPanel 62 on release tier.

It seems you are gradually removing all of the obstacles that might cause this request this delay.

Any news or update on this thread that we should be informed today.

photo
1

We are definitely making our way through the obstacles preventing getting this done, but we're not ready to get it started yet. As soon as we are, I'll be back here!

photo
2

Half the world has switched to nginx. It save resources, make servers faster and it's more efficient. What is going on?. Why is it that paid control panels are the last in this matter?. You should be implementing top features and showing the rest of the world how the technology advances.

From all the improvements you had done (which I am thankful) implementing nginx is BY FAR one of the most significative of them all. It's impact on all the servers running on cPanel could be tremendous, it will even reduce the electricity footprint.

Why?. Why are you still resisting change?

photo
1

To be fair, Apache 2.4 has come a long way at being on par with nginx.

I think the purpose of their effort goes beyond just nginx and more to the big question: Can we start serving other app platforms instead of just php?

The discussion needs to be about decoupling things enough to facilitate state of the art serving of other app platforms like Ruby on Rails and so forth. Personally we're moving to a more modular solution where cPanel is just on one server for infrastructure and then we route traffic to other instances on singular Linodes with Dokku since it seems cPanel has dropped the ball here so terribly.

photo
1

I also agree with the other customers. I blame the CPanel management who doesn't assign enough resources for such important features. When you check the recent changelogs most customers will agree that NGINX is more important than many implemented/improved features listed there. Unfortunately there is not enough competition for CPanel..