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

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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

Active Member
Jul 31, 2019
34
6
8
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.
 

bhavitratech

Registered
Jan 6, 2020
1
0
1
Kolkata
cPanel Access Level
DataCenter Provider
Dear Sir

I have faced also the issues. I have also used NGINX through the EasyApache 4 experimental repository. Only loaded home page rest all pages showing 404 error. Also mod security and .htaccess also not working. If they are not working what is the purpose of use. Kindly help us the alternative solutions.