Kiểm tra xem bảng nào không có auto_increment, nếu có kết quả thì nghĩa là các bảng đó không có auto_increment
SELECT table_name
FROM information_schema.tables
WHERE table_schema = ‘vnsport_doelf’
AND table_type = ‘BASE TABLE’
AND table_name LIKE ‘sahdTR_%’
AND table_name NOT IN (
SELECT DISTINCT table_name
FROM information_schema.key_column_usage
WHERE table_schema = ‘vnsport_doelf’
AND constraint_name = ‘PRIMARY’
);
chạy lệnh sau để set auto_increment
SELECT CONCAT(
‘ALTER TABLE ‘, table_name,
‘ MODIFY ‘, column_name,
‘ INT UNSIGNED NOT NULL AUTO_INCREMENT;’
)
FROM information_schema.columns
WHERE table_schema = ‘vnsport_doelf’
AND column_key = ‘PRI’
AND extra NOT LIKE ‘%auto_increment%’;
Duplicate entry ‘1’ for key ‘PRIMARY’
https://www.cyberciti.biz/faq/installing-kernel-2-6-32-131-2-1-el6-x86_64-needs-8mb-on-boot-filesystem/
# xem dung luong ổ boot
df -H /boot
rpm -qa | grep kernel
# xóa các kernel cũ k dùng đến cho nhẹ bớt
rpm -e kernel-2.6.32-71…….
# xem dung luong ổ boot sau khi xóa
df -H /boot
yum -y update kernel
yum -y update
reboot
exec zsh -l
Hãy chắc chắn rằng file .env không chứa các ký tự không mong muốn như ^M. Để kiểm tra:
Chạy lệnh sau trong thư mục gốc của dự án:
cat -e .env
Kết quả sẽ hiển thị mỗi dòng kết thúc bằng $. Nếu bạn thấy ^M (Windows CRLF), bạn cần chuyển đổi sang Unix LF như đã hướng dẫn trước đó:
dos2unix .env
tắt terminal đi sau đó mở lại
4.7″ 6, 7, 8
5.4″ 12 mini,
5.5″ 6+, 7+, 8+
5.8″ x, 11 pro
6.1″ xr, 11, 12, 12 pro, 14, 14pro, 15, 15pro
6.5″ xs Max, 11pro max,
6.7″ 12pro max, 14+, 14pro max, 15+, 15pro max
12.9″ ipad pro 6th
https://github.com/tmiland/csf-custom-regex/blob/master/regex.custom.pm
Edit your /etc/csf/csf.conf like bellow:
CUSTOM1_LOG = “/var/log/httpd/domains/*.log”
We add the following rules to /usr/local/csf/bin/regex.custom.pm file. If it’s not there, create one.
Then we add bellow code :
# XMLRPC
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /(\S+).*] “\w*(?:GET|POST) \/xmlrpc\.php.*” /)) {
return (“WP XMLPRC Attack”,$1,”XMLRPC”,”5″,”80,443″,”1″);
}
# WP-LOGINS
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /(\S+).*] “\w*(?:GET|POST) \/wp-login\.php.*” /)) {
return (“WP Login Attack”,$1,”WPLOGIN”,”5″,”80,443″,”1″);
}
file tương tự như mẫu:
Finally we restart CSF and check if LFD is doing his new job :
csf -r
# WP-LOGINS
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /^(\S+).*POST.*(wp-login\.php|xmlrpc\.php).* (200|401)/)) {
return ("Unauthorized",$1,"WPLOGINorWHATEVER","10","80,443","14400");