简体   繁体   English

由于端口更改,无法访问WP-Admin

[英]Cant access WP-Admin due to port change

I was trying to use one worpdress plugin and in the process changed the port in the plugins admin screen Now the problem is i can t log in access my WP-Admin as it is point to the changed port 443 How can i revert it to use the default port again. 我试图使用一个worpdress插件,并且在此过程中更改了插件管理屏幕中的端口,现在的问题是我无法登录访问我的WP-Admin,因为它指向已更改的端口443如何恢复它以使用再次使用默认端口。 I am not that strong in Linux and using Cpanel to do my file management.. 我在Linux和使用Cpanel进行文件管理方面不够强。

Error 04 Not Found The server can not find the requested page: 错误04未找到服务器找不到请求的页面:

www.xxxxx.com/wp-admin/ (port 443) www.xxxxx.com/wp-admin/(端口443)

First Way 第一路

  1. login to your ftp/cpanel filemanager and search for wp-config.php file 登录到您的ftp / cpanel文件管理器并搜索wp-config.php文件
  2. then open it and u will see a line like `define( 'force_SSL', true ); 然后打开它,你会看到像`define('force_SSL',true);这样的行。
  3. change the "true" to become "false" and save it. 将“ true”更改为“ false”并保存。
  4. the login to yr website backend again. 再次登录到您的网站后端。
  5. If here ur able to login already, mean its good! 如果您已经可以登录,则表示它很好! go to plugin page and disable it. 转到插件页面并禁用它。
  6. However, if still not accessible for you. 但是,如果您仍然无法访问。 You may need to look into .htacess file. 您可能需要查看.htacess文件。 Try rename the .htaccess to .htaccess.bak 尝试将.htaccess重命名为.htaccess.bak

second way is manually disable the plugin using Cpanel - > phpmyadmdmin 第二种方法是使用Cpanel手动禁用插件-> phpmyadmdmin

please read: http://perishablepress.com/quickly-disable-or-enable-all-wordpress-plugins-via-the-database/ 请阅读: http : //perishablepress.com/quickly-disable-or-enable-all-wordpress-plugins-via-the-database/

(Update) (更新)

add these to wp-config.php 将它们添加到wp-config.php

define('WP_SITEURL', 'http://www.sample.com/wordpress');
define('WP_HOME', 'http://www.sample.com/wordpress');

see if it help? 看看有没有帮助?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM