Skip to main content

All Pages Get 404 Error Except Home Page

Comments

3 comments

  • cPanelMichael
    Hello, Can you open a support ticket so we can take a closer look at your system? Create Support Ticket - Version 68 Documentation - cPanel Documentation Thank you.
    0
  • Hummdis
    I really hate to revive an old post, but this is literally the only result in Google. I have the exact same problem. What did you find to be the resolution to this, sa3dy?
    0
  • Hummdis
    For the record, my server was running NGINX. Therefore, the following had to be done for me to resolve this issue since I was forced to keep NGINX since Apache couldn't rebuild with the ports 80 and 443, but rather it was stuck in ports 8080 and 8443: 1. Remove NGINX from whatever you've done to install it. Of course, make a backup of your configuration files first. 2. Remove the PHP-FPM .yaml file for all users: [CODE=bash]rm -fv /var/cpanel/userdata/*/*.php-fpm.yaml
    3. Now rebuild the httpd.conf file: [CODE=bash]/scripts/rebuildhttpdconf
    4. Reload HTTPD: [CODE=bash]service httpd reload
    8. Check that Apache binds to the correct ports: [CODE=bash]netstat -nlp | grep -P 'nginx|httpd'
    In my case, this allowed Apache to rebuild and is now bound to ports 80 and 443 as expected with NGINX no longer on the server.
    0

Please sign in to leave a comment.