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

Status
Not open for further replies.

carlart2

Member
Messages
31
Reaction score
0
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?
 

butter14

Member
Messages
51
Reaction score
2
Points
8
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?

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.
 

carlart2

Member
Messages
31
Reaction score
0
Points
6
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.



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.
 

carlart2

Member
Messages
31
Reaction score
0
Points
6
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.



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.
 

butter14

Member
Messages
51
Reaction score
2
Points
8
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.

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.


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.
 

carlart2

Member
Messages
31
Reaction score
0
Points
6
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
View attachment 9880

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




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

carlart2

Member
Messages
31
Reaction score
0
Points
6
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
View attachment 9880

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



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

carlart2

Member
Messages
31
Reaction score
0
Points
6
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
View attachment 9880

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


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?
 

carlart2

Member
Messages
31
Reaction score
0
Points
6
If you at some point, within the settings of wordpress, told it to use https for your domain you would have to check this article and chose one of the methods to change it to use the http version of the domain

https://wordpress.org/support/article/changing-the-site-url/



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.
 

Anna

I am just me
Staff member
Messages
11,733
Reaction score
578
Points
113
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.
 

carlart2

Member
Messages
31
Reaction score
0
Points
6
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.



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

Cannot Execute Your Request
phpMyAdmin is missing direct_login option. Please re-install phpMyAdmin.
 
Status
Not open for further replies.
Top