This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install gcc jmeter python default-jre-headless python-tk python-pip python-dev libxml2-dev libxslt-dev zlib1g-dev net-tools python-setuptools -y && pip install wheel && pip install bzt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginx php7.0 php7.0-cli php7.0-common php7.0-curl php7.0-dev php7.0-fpm php7.0-gd php7.0-intl php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-opcache php7.0-pgsql php7.0-readline php7.0-soap php7.0-xml php7.0-zip redis-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Update the Server | |
apt-get update | |
apt-get upgrade | |
##Install webserver, PHP and MariaDB | |
apt-get install nginx php php-cli php-common php-curl php-dev php-fpm php-gd php-intl php-json php-mbstring php-mysql php-opcache php-readline php-soap php-xml php-zip mariadb-server | |
##Secure Maria DB and create database | |
mysql_secure_installation | |
mysql -i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Install Admin CSS MU and paste the following CSS code */ | |
.update-nag, .updated, .error, .is-dismissible, .notice { | |
display: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt zesty-pgdg main" | |
sudo wget --quiet -O - https://postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -y postgresql-9.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_expires.c> | |
ExpiresActive on | |
<FilesMatch "\.(gif|jpeg|jpg|png|ico|js|css|swf|svg)$"> | |
ExpiresDefault "access plus 365 days" | |
</FilesMatch> | |
</IfModule> | |
<IfModule mod_deflate.c> | |
# Compress HTML, CSS, JavaScript, Text, XML und fonts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt xenial-pgdg main" | |
sudo wget --quiet -O - https://postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -y postgresql-9.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Go to the WordPress installation directory and apply following commands | |
1. To get list of users | |
wp users list | |
2. To get list of user login | |
wp users list --field=user_login | |
3. Update user password | |
wp user update <User_ID> --user_pass='Suer_Secure_Password' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
DEST_DIR=$PWD/backup/daily/database/ | |
COMPRESSED_DIR=$PWD/backup/daily/database-compressed/ | |
OSSPTH=oss://<OSS_BUCKET> | |
DATABASE_NAME=<Database_Name> | |
MYSQL_USER=<Database_User> | |
MYSQL_PASS=<Database_Password> |
OlderNewer