For this example i shall be using a dedicated server from Hertzner.https://www.hetzner.de/en/. A shout out to hetzner if your looking for cheap and beefy dedicated hosting then these guys are your best bet.
This guide assumes your server has Debian 8 (Jessie installed)
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 | |
| # Installation: | |
| # | |
| # 1. vim /etc/ssh/sshd_config | |
| # PrintMotd no | |
| # | |
| # 2. vim /etc/pam.d/login | |
| # # session optional pam_motd.so | |
| # |
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 | |
| # Installation: | |
| # | |
| # 1. vim /etc/ssh/sshd_config | |
| # PrintMotd no | |
| # | |
| # 2. vim /etc/pam.d/login | |
| # # session optional pam_motd.so | |
| # |
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
| <?php | |
| function my_http_request_args ( $r ) | |
| { | |
| $r['timeout'] = 15; # new timeout | |
| return $r; | |
| } | |
| add_filter( 'http_request_args', 'my_http_request_args', 100, 1 ); |
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
| <?php | |
| /* | |
| Our Template Page for Single Locations created with Local SEO by Yoast | |
| Local SEO is good at at formatting this data use the schema format, please make sure you continue to support it. | |
| */ | |
| get_header(); ?> | |
| <h1>Locations</h1> |
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
| <img src="..wp-content/uploads/2016/02/animat-rocket-color-static.png" onmouseover="../wp-content/uploads/2014/02/testclue-rocket.gif'" onmouseout="this.src='..wp-content/uploads/2016/02/animat-rocket-color-static.png'"> | |
| This is the main code and get broken in this after saving it: | |
| <img src="..wp-content/uploads/2016/02/animat-rocket-color-static.png" /> |
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 | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro | |
| # | |
| WP_OWNER=changeme # <-- wordpress owner | |
| WP_GROUP=changeme # <-- wordpress group | |
| WP_ROOT=/home/changeme # <-- wordpress root directory |
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 | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| WP_OWNER=www-data # <-- wordpress owner | |
| WP_GROUP=www-data # <-- wordpress group | |
| WP_ROOT=$1 # <-- wordpress root directory |
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
| Warning – Location defined as regex has a valid regex operator, but does not include a regex pattern. It is generally more efficient to configure exact or prefix matching for locations that do not really require regex matching. Please refer the documentation describing location directive. | |
| Check the following file(s): | |
| /etc/nginx/conf.d/default.conf, line 114 | |
| Warning – location defined as regex has a regex pattern that does not include ^ or $. It is recommended that the regex pattern always includes anchors ^ and $. | |
| Check the following file(s): | |
| /etc/nginx/conf.d/default.conf, line 114 | |
| Warning – location defined as regex is set up for case-insensitive matching. It is recommended to generally avoid case-insensitive matching for regex locations since it’s prone to many errors. |