cPanel Nginx Manager and File Upload limits

jhawkins003

Active Member
Jun 24, 2014
30
7
58
cPanel Access Level
Root Administrator
After moving from Engintron to the new cPanel Nginx Manager we encountered issues with WordPress admins not being able to manage file uploads. cPanel has some great documentation on the fix, located here: Unable to upload files on the website after enabling Nginx

So here's my question - since the guidance is to patch various nginx configs directly, when are these types of modifications overwritten/reverted by cPanel? Only on uninstall/re-install of Nginx Manager? On any update that touches Nginx? Potentially on any update at all?

I'm worried that in a production scenario patching directly to configuration files potentially managed automatically by cPanel would mean these "fixes" would disappear randomly and the only heads up we would have would be error reports streaming in from our users.
 
Last edited by a moderator:

jhawkins003

Active Member
Jun 24, 2014
30
7
58
cPanel Access Level
Root Administrator
Hey there! What a great question! I personally had no clue, so I did some testing and found that running "/scripts/ea-nginx reload" will overwrite those changes to /etc/nginx/nginx.conf.
Ok good to know!

That would probably be an issue for us. Wordpress (and other CMS's) not being able to upload moderately sized files will be problematic in a production environment. Also a thought - a support document that instructs a workaround that gets overwritten upon service reload... might need revisiting at some juncture :)