I need to make Nginx work with cPanel for my Magento store. My hosting provider told me it\'s either cPanel + Apache or Nginx without admin panel. They said they do not provide "hacks" to their customers. We had Nginx installed before but it was not installed to work with cPanel correctly so when it tried to update vhosts it broke down the site. This is their feedback on the error:
CPanel could not make Apache vhost updates. This may have worked for a limited time, but the moment CPanel tried to make an adjustment to Apache it broke which caused this problem. We had to revert your installation from nginx to Apache and PHP 5.2 in order to bring your site back up. These issues were exacerbated by a severely out of date Magento installation which requires PHP 5.2. Our administrators had to manually compile a PHP 5.2 version in order for Apache and PHP to function correctly with CPanel as PHP 5.2 has now been made defunct by CPanel. This entire issue was caused by a custom and incorrect installation of nginx.
Cpanel requires a specific configuration with Apache in order for it to operate correctly and interface with Nginx. Without these configurations issues like this will arise, and may not be apparent until a function such as attempting to update Vhosts occurs.