AAndyina-ndy.dev·Aug 7, 2021 · 1 min readDisable XML-RPC in Wordpress to Prevent DDoS AttackAdd the following code to wp-config.php add_filter('xmlrpc_enabled', '__return_false'); Input the following code near the top of .htaccess file: # START XML RPC BLOCKING < Files xmlrpc.php > Order Deny,Allow Deny from all < /Files > FINISH XML RPC BL...00
AAndyina-ndy.dev·Aug 7, 2021 · 1 min readSetup Let's Encrypt With Apache on Ubuntu 16.041. Install Let's Encrypt $ apt-get install git $ git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt 2. Generating a Let's Encrypt SSL certificate $ ./letsencrypt-auto --apache -d domain.com -d www.domain.com 3. Forcing SSL RewriteE...00
AAndyina-ndy.dev·Aug 7, 2021 · 1 min readCannot set LC_CTYPE to default localeGenerate the missing locale $ locale-gen "en_US.UTF-8"00
AAndyina-ndy.dev·Aug 7, 2021 · 1 min readSecure your SSH accessCreate New Account $ adduser admin1 --home /var/www Add New Account as Sudoers $ nano /etc/sudoers Disable root account $ nano /etc/ssh/sshd_config Change root login PermitRootLogin yes change to PermitRootLogin no Change SSH port Port 22 change to...00
AAndyina-ndy.dev·Aug 7, 2021 · 1 min readExport and import all Mysql database except schemaExport All Database Create export_db.sh MYSQL_USER=root MYSQL_PASS=rootpassword MYSQL_CONN="-u${MYSQL_USER} -p${MYSQL_PASS}" # Collect all database names except for mysql, information_schema, and performance_schema # SQL="SELECT schema_name FROM info...00