Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is it possible to run Nginx on port 80 along with Cpanel. I want to completely get rid of Apache.

I haven't found only Nginx config's anywhere. I've tried changing config files with some Nginx+Apache plugins, but they didn't work either.

What is the best way to configure this ?

Thanks in advance.

share|improve this question

closed as not a real question by Tom O'Connor, Magellan, Ward, HopelessN00b, Iain Nov 11 '12 at 9:36

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Just get rid of cPanel instead. –  Tom O'Connor Aug 23 '12 at 7:17
1  
cPanel bad. Shell good. Get an unmanaged VPS if you really want control over that kind of stuff. –  nojak Aug 23 '12 at 7:28
    
I like the shell stuff. I have been using sites with Nginx and Varnish on Ubuntu. But the problem is that Nginx is getting tough with SSL and other addons such as boxbilling. So i thought CPanel might help. So what do you guys suggest about Nginx, A web interface for just DNS,Filemanager along with shell or something like Control Panel that works with Nginx ? –  Sameer Manas Aug 23 '12 at 13:19

1 Answer 1

It is not possible to serve dynamic content using nginx only and CPanel is obviously a dynamic web application. That said, the answer is no, it's not possible.

share|improve this answer
    
I am currently running WordPress sites using and Varnish. So i guess that means dynamic content too. My config is Nginx on port 8080 and Varnish on port 80. But the problem arises with SSL and other addons. –  Sameer Manas Aug 23 '12 at 13:20
1  
There should be an application server behind them, like Apache or PHP-FPM, nginx is only a reverse proxy by nature. It uses HTTP or FastCGI to talk to backends. –  Alex Aug 23 '12 at 13:22
    
Oh yeah, sorry Alex i missed that. i am using PHP-FPM. So is it not possible to use the same kind of config thing to make it work with CPanel.. –  Sameer Manas Aug 23 '12 at 17:33
    
I'm not exactly sure I've only used CPanel once and from my experience it's coupled with Apache very tight. So I guess even if it is possible it's not so easy. –  Alex Aug 23 '12 at 17:39
    
Yeah i dropped out on this one. I guess this can never happen. Thanks for your time. –  Sameer Manas Aug 24 '12 at 6:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.