In Progress [CPANEL-27785] 404 errors after installing the experimental ea-nginx package

ihouseu

Registered
Jul 31, 2019
1
0
1
Barcelona
cPanel Access Level
Root Administrator
Hi there,

I've recently enabled nginx via EA4. I've run the config generator script for all users:

/usr/local/cpanel/scripts/ea-nginx config --all

I have an issue that all websites display the homepage only. All internal pages, on all websites on the server display a Ngnix 404 not found error.

Is there anything I need to do config wise to get the internal pages working?

Thanks
Adam
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,749
2,205
363
cPanel Access Level
DataCenter Provider
Twitter
Hello Adam,

Can you confirm if the affected websites use WordPress? If so, there's a case open (CPANEL-27785) to address an issue where WordPress installations not managed through WordPress Manager display error page 404 after enabling Nginx through the EasyApache 4 experimental repo. The temporary workaround is to migrate WordPress (legacy) cPAddon websites to use the RPM-based WordPress cPAddon using the instructions in the article below:

The migrate_legacy_wordpress_to_modern_wordpress script - cPanel Knowledge Base - cPanel Documentation

For WordPress installations that were installed manually (outside of the cPAddon feature entirely), the UAPI command referenced on the following document is available to scan for WordPress websites installed on an individual cPanel account and move it's management into WordPress Manager (this aligns with the Discover Sites feature in the cPanel UI):

UAPI Functions - WordPressInstanceManager::start_scan - Developer Documentation - cPanel Documentation

Let me know if this is the issue applicable to your server, or if you're seeing 404 errors on websites without WordPress.

Thank you.
 

Henry Carter

Member
Jul 31, 2019
18
0
1
India
cPanel Access Level
Website Owner
Hi ihouseu,


The htaccess code won't be working with Nginx. htaccess will work only if you have apache webserver. where people are using nginx+apache. In this use-case htaccess is require. But if you are only using Nginx then htaccess won't be applied. You need to convert htaccess rule into nginx configuration via online sites. Please take a backup of Nginx.conf file before making the changes.