Can't log into my wp-login WordPress site. Why is this?

Discussion in 'Free Hosting' started by carlart2, Jan 15, 2020.

  1. carlart2

    carlart2 Member

    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Hello, ever since this whole migration thing, I haven't been able to get into my WordPress wp-login site. It says:

    Not Found
    The requested URL was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    What is the solution to fix this problem?


    And when I attempt to go to my .x10host.com website, it says, "Apache is functioning normally." Why is that?
     
  2. butter14

    butter14 Member

    Messages:
    44
    Likes Received:
    1
    Trophy Points:
    8
    Are you using cloudflare? or HTTPS overrides on your .htacess file?

    The Apache is functioning normally issue occurs when you force HTTPS without a valid certificate on the server.

    the solutions are the following

    If your using cloudflare just set you security level to Flexible and you should be good

    if your doing HTTPS overrides on your .htacess file remove those overrides and you should be fine.
     
  3. carlart2

    carlart2 Member

    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6


    Before the migration thing, I just manually installed WordPress using Filezilla. I installed it into x10host cpanel file manager. I previously did this using backup files. The same with the database files for PHPMyAdmin. I don't think I am using cloudflare. How could I be forcing HTTPS? How would I check for this? I am using a free hosting account.
     
  4. carlart2

    carlart2 Member

    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6


    Also, I am just using the x10host.com domain address for now. I am not using any other domain address. Both my website and WordPress wp login administrative site are not working.
     
  5. butter14

    butter14 Member

    Messages:
    44
    Likes Received:
    1
    Trophy Points:
    8

    Using FileZila or the Direct Admin File manager edit your .htacess file inside the WordPress directory in in the public_html folder of your domain and check if it looks like this.

    PHP:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase 
    /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
    %{REQUEST_FILENAME} !-d
    RewriteRule 
    . /index.php [L]
    </
    IfModule>

    # END WordPress
    if it looks like that check your site URLS in the WordPress General Settings and your Database if they're using HTTPS instead of HTTP.

    Also check your wp-config.php file for this line

    PHP:
    define('FORCE_SSL_ADMIN'true);
    if your site is not working this maybe due to the migrations moving the default PHP version to 7.2, your site might have been installed with an old PHP version in mind.

    To fix this, log into Direct Admin then go to Extra Features > Select PHP version in there you can select your PHP version.

    The page should look like this
    upload_2020-1-16_6-16-37.png

    just select your PHP version from the drop down and then click Set as current.
     
  6. carlart2

    carlart2 Member

    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6



    I don't see define('FORCE_SSL_ADMIN', true); in the wp-config.php file. Where would it be?
     
  7. carlart2

    carlart2 Member

    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6


    I went into Direct Admin and set the version to 7.2. The website still says "Apache is functioning normally."
     
  8. carlart2

    carlart2 Member

    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6

    My .htaccess file says:

    # BEGIN WordPress
    # The directives (lines) between `BEGIN WordPress` and `END WordPress` are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    # BEGIN LiteSpeed
    # The directives (lines) between `BEGIN LiteSpeed` and `END LiteSpeed` are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule Litespeed>
    SetEnv noabort 1
    </IfModule>
    # END LiteSpeed




    What does this mean?
     
  9. Anna

    Anna I am just me Staff Member

    Messages:
    8,913
    Likes Received:
    297
    Trophy Points:
    83
  10. carlart2

    carlart2 Member

    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6


    I am having issues reinstalling phpmyadmin in DirectAdmin. It keeps saying:


    Cannot Execute Your Request
    phpMyAdmin is missing direct_login option. Please re-install phpMyAdmin.
     
  11. carlart2

    carlart2 Member

    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6

    I am pretty sure I chose http. How would I check for this in DirectAdmin?
     
  12. Anna

    Anna I am just me Staff Member

    Messages:
    8,913
    Likes Received:
    297
    Trophy Points:
    83
    The only way to check how wordpress is configured from DirectAdmin would be to check in the database using phpmyadmin as that's where the setting is stored.
     
  13. carlart2

    carlart2 Member

    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6


    I can't use phpmyadmin because DirectAdmin is telling me:

    Cannot Execute Your Request
    phpMyAdmin is missing direct_login option. Please re-install phpMyAdmin.
     

Share This Page