Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

public_html site not found

Discussion in 'General Discussion' started by Marlon Mena, Apr 8, 2018.

  1. Marlon Mena

    Marlon Mena Member

    Joined:
    Apr 8, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    Hello I access Cpanel and use the Redirects feature but after not getting the right result I delete the redirect and went back to how the website originally was, but after doing that, my site is no longer showing the home page when I access it goes 404 error and also my WordPress login page is not working.

    How can I go back to the regular settings? I can access my website if I type [removed] but it was working before with just typing [removed]
    I appreciate any help.
     
    #1 Marlon Mena, Apr 8, 2018
    Last edited by a moderator: Apr 9, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you try clearing your browser cache to rule that out as the cause of the issue? If that doesn't help, can you let us know the contents of the .htaccess file in your public_html directory? Ensure to replace real domain names with examples.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Marlon Mena

    Marlon Mena Member

    Joined:
    Apr 8, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    Thank you for your answer.

    Yes, I tried already clearing the cache and I did not work.

    This is the content of the .htaccess file:



    RewriteOptions inherit

    Options +FollowSymLinks
    ErrorDocument 404 removed-url.tld

    # BEGIN cPanel-generated php ini directives, do not edit
    # Manual editing of this file may result in unexpected behavior.
    # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
    # For more information, read our documentation (PHP Home - EasyApache 4 - cPanel Documentation)
    <IfModule php5_module>
    php_flag asp_tags Off
    php_flag display_errors Off
    php_value max_execution_time 90
    php_value max_input_time 60
    php_value max_input_vars 1000
    php_value memory_limit 256M
    php_value session.gc_maxlifetime 240
    php_value session.save_path "/var/cpanel/php/sessions/ea-php56"
    php_value upload_max_filesize 122M
    </IfModule>
    # END cPanel-generated php ini directives, do not edit

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you let us know of any specific output to /usr/local/apache/logs/error_log or the error_log file within the public_html directory when opening the website or attempting to login to WordPress fails?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Marlon Mena

    Marlon Mena Member

    Joined:
    Apr 8, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    Yes, the problem is to access the url: [Removed - Please Don't Post Real URLS] there's an error described as 404 (see file 1), and when it comes to the WordPress login page: [Removed - Please Don't Post Real URLS] the site appears with no format and won't let me log using the right username and password (see file 2).

    I can access my website with the URL: [Removed - Please Don't Post Real URLS]
    BUT I need that to be working with just typing [Removed - Please Don't Post Real URLS]
     

    Attached Files:

  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The output that appears in the error logs will help us to diagnose the cause of the issue.

    Can you let us know of any specific output to /usr/local/apache/logs/error_log or the error_log file within the public_html directory when opening the website or attempting to login to WordPress fails?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Marlon Mena

    Marlon Mena Member

    Joined:
    Apr 8, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    I found this error in the error app in cpanel, but I can't find this: /usr/local/apache/logs/error_log (can you please tell me how to locate it)

    [Mon Apr 09 13:17:29.678843 2018] [:error] [pid 19023:tid 140620546291456] [client ] File does not exist: /home/username/public_html/index.php
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Your access level shows as "Root Administrator". Are you sure you have root access to the server, or do you only have cPanel access through a shared hosting provider? If you do have root access, you can view that file while logged in as root via SSH:

    SSH Access - Version 70 Documentation - cPanel Documentation

    Do you happen to have any additional .htaccess files in the /home/$username/ directory itself (the one above public_html)?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Marlon Mena

    Marlon Mena Member

    Joined:
    Apr 8, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    Yes there is another .htaccess in that home that contains:


    # BEGIN cPanel-generated php ini directives, do not edit
    # Manual editing of this file may result in unexpected behavior.
    # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
    # For more information, read our documentation (PHP Home - EasyApache 4 - cPanel Documentation)
    <IfModule php5_module>
    php_flag asp_tags Off
    php_flag display_errors Off
    php_value max_execution_time 320
    php_value max_input_time 60
    php_value max_input_vars 1000
    php_value memory_limit 256M
    php_value session.gc_maxlifetime 240
    php_value session.save_path "/var/cpanel/php/sessions/ea-php56"
    php_value upload_max_filesize 62M
    </IfModule>
    # END cPanel-generated php ini directives, do not edit
     
  10. Marlon Mena

    Marlon Mena Member

    Joined:
    Apr 8, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    I have access to the SSH access app in the Cpanel (see image) but I could not find any errors there.
     

    Attached Files:

  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It seems like you don't have root access to this server. Could you reach out to your web hosting provider so they can take a closer look at the server where the website is hosted to see if they can determine why the website is not properly loading?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice