Ubuntu 18.04 UFW settings, based on [1] Step 1
ens3
.. primary physical ETH interface10.243.0.0/16
.. ZT network
An analysis of Censys Public Scan 20180807 (only port 22) to estimate the number of servers {potentially} vulnerable to the recent Libssh bug.
echo "---------------------------------------------------" | |
echo "Warning: Enter Your Wordpress path in proper format as Example shown below:" | |
echo "Example: var/www/html/wordpress/" | |
echo "---------------------------------------------------" | |
read path | |
echo "enter permission type d (default is 755)" | |
read perm1 | |
echo "enter permission type f (default is 644)" | |
read perm2 | |
sudo chown -R www-data:www-data ../../../../../../../../$path |
### Sites: | |
https://gtmetrix.com/ | |
https://developers.google.com/speed/pagespeed/insights/ | |
### Plugins | |
https://wordpress.org/plugins/query-monitor/ | |
https://wordpress.org/plugins/autoptimize/ | |
https://wordpress.org/plugins/wp-super-cache/ | |
https://wordpress.org/plugins/ewww-image-optimizer/ | |
https://wordpress.org/plugins/jetpack/ |
Install Wordpress on CentOS 7
Install LAMP
$ sudo yum install httpd mariadb mariadb-server php php-common php-mysql php-gd php-xml php-mbstring php-mcrypt php-xmlrpc unzip wget -y
Enable Apache and MariaDB as service
$ sudo systemctl start httpd
#!/bin/bash | |
#set your servername and email here | |
SERVERNAME= | |
EMAIL= | |
mkdir /wpinstall | |
cd /wpinstall | |
#generate password for mysql |
## Pull in static configs | |
source ~/.bash_anchorhost | |
function wpengine_local_restore { | |
## Prompt for dynamic configs | |
read -p $'\e[31mWP Engine snapshot url\e[0m: ' wpengine_snapshot | |
read -p $'\e[31mLocal database name (will create)\e[0m: ' db_name | |
read -p $'\e[31mProduction site url ( ex: anchor.host )\e[0m: ' siteurl_production | |
read -p $'\e[31mLocal site url ( ex: anchor.dev )\e[0m: ' siteurl_local |