Page 1 of 1

Lỗi lạ sau khi xóa wordpress plugin: wordfence

PostPosted:10 Oct 2018 14:59
by hd00842
Mình có cài wordfence nhưng sau khi xóa đi thì website bị trắng trang kiểm tra log thì thấy báo lỗi như này nhưng vào vps không tìm thấy đường dẫn trên mong các bác giúp đỡ
Image

Re: Lỗi lạ sau khi xóa wordfence

PostPosted:10 Oct 2018 15:08
by nguyenoanh
Bạn thử khởi động lại PHP-FPM thử xem nào ?

Re: Lỗi lạ sau khi xóa wordfence

PostPosted:10 Oct 2018 15:41
by hd00842
nguyenoanh wrote:Bạn thử khởi động lại PHP-FPM thử xem nào ?
Thử rồi bạn ah vẫn trắng trang và check log vẫn ra như vậy

Re: Lỗi lạ sau khi xóa wordfence

PostPosted:10 Oct 2018 16:59
by nguyenoanh
Bạn kiểm tra lại code , vấn đề này do code rồi.
Xem nó có ghi vào wp-config.php không ? Mình ko dùng plugin này nên không rõ nữa :(

Re: Lỗi lạ sau khi xóa wordfence

PostPosted:10 Oct 2018 22:06
by hd00842
nguyenoanh wrote:Bạn kiểm tra lại code , vấn đề này do code rồi.
Xem nó có ghi vào wp-config.php không ? Mình ko dùng plugin này nên không rõ nữa :(
Thử luôn rồi bác ạ scan all code luôn cả db cũng scan mà ko tìm thấy dòng nào có cái file như trên cả

Re: Lỗi lạ sau khi xóa wordfence

PostPosted:10 Oct 2018 22:16
by nguyenoanh
Nó là plugin bảo mật nên không thể đơn giản chỉ xóa là được.

Mình nghĩ làm như dưới sẽ được:

How to remove Wordfence plugins on wordpress completely??

If you need to reset or remove Wordfence from your site you can find help with that in this section.

The Wordfence plugin consists of:

1. Plugin files, located in wp-content/plugins/wordfence
2. Database tables, located in your database (they all start with the wf prefix, for example wp_wfConfig)
3. Firewall configuration files, located in wp-content/wflogs
4. If you have Optimized the Firewall to have “Extended protection”, you also have a wordfence-waf.php located in the root of your WordPress installation and a few configuration lines located in .htaccess, .user.ini or php.ini

Remove or Reset
Sometimes you may want to remove Wordfence completely. Other times you may want to delete all Wordfence data and recreate the tables so that Wordfence is reset to the defaults. This often helps solve issues with corrupted data. There are three ways you can delete or reset Wordfence.

Delete Wordfence data on deactivation
If you are removing Wordfence permanently, or if you want to do a fresh reinstall of Wordfence you can enable the option “Delete Wordfence tables and data on deactivation”. If you then deactivate the plugin, all the Wordfence tables will be deleted. You can then choose to activate Wordfence again to get a fresh installation, or you can choose to delete the plugin.

Use the Wordfence Assistant
The Wordfence Assistant is a plugin that has been developed specifically to solve issues with Wordfence that can not be solved within the plugin itself. You can download this plugin via the “Plugins” section in your WordPress admin and use it to delete all Wordfence data from your site.

Manual removal
To manually remove Wordfence, you would follow the steps below. It’s important that you do step 1 before the other steps.

1. Remove extended protection manually [Learn more]
2. Remove the “wordfence” plugin folder located in wp-content/plugins
3. Remove the wflogs folder located in wp-content
4. Remove wordfence-waf.php located in the root of you WordPress installation
5. Remove all Wordfence related database tables from the database, using for example phpMyAdmin.

Wordfence 7 Tables
wp_wfBadLeechers
wp_wfBlockedCommentLog
wp_wfBlockedIPLog
wp_wfBlocks (Legacy)
wp_wfBlocks7
wp_wfBlocksAdv
wp_wfConfig
wp_wfCrawlers
wp_wfFileChanges
wp_wfFileMods
wp_wfHits
wp_wfHoover
wp_wfIssues
wp_wfKnownFileList
wp_wfLeechers
wp_wfLockedOut
wp_wfLocs
wp_wfLogins
wp_wfNet404s
wp_wfNotifications
wp_wfPendingIssues
wp_wfReverseCache
wp_wfScanners
wp_wfSNIPCache
wp_wfStatus
wp_wfThrottleLog
wp_wfVulnScanners

Migrate with Wordfence

If you are moving your site to a new server we recommend that you first remove extended protection. When your site has been migrated, you will then optimize the Firewall again.

Optionally, you can choose to reset Wordfence and only migrate your settings. This will remove Firewall Optimization and all current blocks on your site.

Go to Dashboard > Global Options > General Wordfence Options. Enable option “Delete Wordfence tables and data on deactivation” and save.
Scroll down to the section “Import/Export Options” and click “Export Wordfence Options”. Save the export token in a safe place.
Deactivate Wordfence. Migrate your site. Activate Wordfence on the new server.
Go to Dashboard > Global Options > Import/Export Options. Enter the export token you previously saved and click to “Import Wordfence Options”

Re: Lỗi lạ sau khi xóa wordpress plugin: wordfence

PostPosted:11 Oct 2018 08:39
by hd00842
Cảm ơn Oánh nhiều mình đã tìm ra nguyên nhân rồi nó nằm trong file .user.ini nằm trong forder public_html mà file này lại bị ẩn đi nên cái sftp ko nhìn thấy phải vào thiết lập để hiện file ẩn mới nhìn thấy nó. Mình chưa hiểu là tại sao vpssim lại đọc file .user.ini trong public_html để làm cấu hình nhỉ?

Re: Lỗi lạ sau khi xóa wordpress plugin: wordfence

PostPosted:11 Oct 2018 09:01
by nguyenoanh
Không phải do VPSSIM đọc được mà PHP nó đọc đấy :)
Ngày trước mình nghĩ chỉ trên apache thì PHP mới được được .ini, hóa ra trên nginx cũng đọc được :)
(trên apache như cpanel, muốn tùy chỉnh php.ini thì thêm file php.ini vào /home/domain.com :)

Re: Lỗi lạ sau khi xóa wordpress plugin: wordfence

PostPosted:11 Oct 2018 10:21
by hd00842
nguyenoanh wrote:Không phải do VPSSIM đọc được mà PHP nó đọc đấy :)
Ngày trước mình nghĩ chỉ trên apache thì PHP mới được được .ini, hóa ra trên nginx cũng đọc được :)
(trên apache như cpanel, muốn tùy chỉnh php.ini thì thêm file php.ini vào /home/domain.com :)
Đúng rồi mình nghĩ chỉ apache mới đọc nó sao nginx nó cũng đọc nữa lạ thật giớ mới bít hihi nhưng ở đây nó lại là file .user.ini chứ ko phải php.ini như apache