MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
<![CDATA[Web Hosting Ask - Web Hosting Insider Tutorials
]]> https://www.webhostingask.com/ Sat, 27 Apr 2024 12:48:24 +0000 MyBB <![CDATA[How to install MariaDB 10.4 on CentOS 7]]> https://www.webhostingask.com/showthread.php?tid=95 Mon, 12 Jul 2021 05:35:00 +0000 russ111]]> https://www.webhostingask.com/showthread.php?tid=95 MariaDB 10.4 is the current major stable version. The first stable release was in June 2019, and it will be supported until June 2024.
This Tutorial is tested on CentOS 7.

- First of all, update your OS
Code:
yum -y update

- Add MariaDB 10.4 repository. Create a new repo file /etc/yum.repos.d/mariadb.repo. The latest repos for all linux distros are always here:https://downloads.mariadb.org/mariadb/repositories
Code:
tee /etc/yum.repos.d/MariaDB.repo<<EOF
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF

- Install MariaDB Server
Code:
yum -y install MariaDB-server MariaDB-client

- Start MariaDB service
Code:
systemctl start mariadb

-Enable MariaDb service at system boot up
Code:
systemctl enable mariadb

- Secure MariaDB Install
Code:
mysql_secure_installation

Answer the questions as below
Code:
=====================================================================
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!

Remove anonymous users? [Y/n] y
... Success!

Disallow root login remotely? [Y/n] y
... Success!

Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reload privilege tables now? [Y/n] y
... Success!

Cleaning up...
Thanks for using MariaDB!
=====================================================================

- check MariaDB version
Code:
mysql -V
]]>
MariaDB 10.4 is the current major stable version. The first stable release was in June 2019, and it will be supported until June 2024.
This Tutorial is tested on CentOS 7.

- First of all, update your OS
Code:
yum -y update

- Add MariaDB 10.4 repository. Create a new repo file /etc/yum.repos.d/mariadb.repo. The latest repos for all linux distros are always here:https://downloads.mariadb.org/mariadb/repositories
Code:
tee /etc/yum.repos.d/MariaDB.repo<<EOF
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF

- Install MariaDB Server
Code:
yum -y install MariaDB-server MariaDB-client

- Start MariaDB service
Code:
systemctl start mariadb

-Enable MariaDb service at system boot up
Code:
systemctl enable mariadb

- Secure MariaDB Install
Code:
mysql_secure_installation

Answer the questions as below
Code:
=====================================================================
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!

Remove anonymous users? [Y/n] y
... Success!

Disallow root login remotely? [Y/n] y
... Success!

Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reload privilege tables now? [Y/n] y
... Success!

Cleaning up...
Thanks for using MariaDB!
=====================================================================

- check MariaDB version
Code:
mysql -V
]]>
<![CDATA[How to block brute-force attack on Wordpress]]> https://www.webhostingask.com/showthread.php?tid=33 Mon, 28 Jun 2021 05:13:07 +0000 StevenB]]> https://www.webhostingask.com/showthread.php?tid=33 Hi,

For those who have a server that running with CSF, this is how to block WordPress login attack.

/usr/local/csf/bin/regex.custom.pm

Code:
if (($globlogs{CUSTOM4_LOG}{$lgfile}) and ($line =~ /(\S+).*] "POST \/wp-login\.php.*" 200/)) {
    return ("Failed Wordpress login from",$1,"wordpress","5","80,443","3600");
}
You can replace 3600 with 1 if want to block IP permanently.

/etc/csf/csf.conf

Code:
CUSTOM4_LOG = "/var/log/apache2/domlogs/*/*"
The load on the server will not high. Mine load only load average: 9.78, 10.68, 10.16.

You can check this using tail -f /var/log/lfd.log

Cheers!]]>
Hi,

For those who have a server that running with CSF, this is how to block WordPress login attack.

/usr/local/csf/bin/regex.custom.pm

Code:
if (($globlogs{CUSTOM4_LOG}{$lgfile}) and ($line =~ /(\S+).*] "POST \/wp-login\.php.*" 200/)) {
    return ("Failed Wordpress login from",$1,"wordpress","5","80,443","3600");
}
You can replace 3600 with 1 if want to block IP permanently.

/etc/csf/csf.conf

Code:
CUSTOM4_LOG = "/var/log/apache2/domlogs/*/*"
The load on the server will not high. Mine load only load average: 9.78, 10.68, 10.16.

You can check this using tail -f /var/log/lfd.log

Cheers!]]>