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
| boby@hon-pc-01:~/www/server-setup/ubuntu (master)$ ssh -p 3333 root@132.148.26.228 | |
| Last login: Mon Aug 8 23:37:11 2016 from 59.98.136.78 | |
| [root@ip-132-148-26-228 ~]# perl /etc/csf/csftest.pl | |
| Testing ip_tables/iptable_filter...OK | |
| Testing ipt_LOG...OK | |
| Testing ipt_multiport/xt_multiport...OK | |
| Testing ipt_REJECT...OK | |
| Testing ipt_state/xt_state...FAILED [FATAL Error: iptables: No chain/target/match by that name.] - Required for csf to function | |
| Testing ipt_limit/xt_limit...OK | |
| Testing ipt_recent...OK |
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
| boby@hon-pc-01:~ $ cat ~/bin/pingw | |
| #!/usr/bin/python3 | |
| import sys | |
| import subprocess | |
| world_number = sys.argv[1] | |
| server_hostname = "world" + world_number + ".runescape.com" | |
| subprocess.run(['ping','-c 5', server_hostname]) |
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
| boby@hon-pc-01:~ $ alias mkpasswd | |
| alias mkpasswd='~/www/projects/pwgen/pwgen.py' | |
| boby@hon-pc-01:~ $ cat ~/www/projects/pwgen/pwgen.py | |
| #!/usr/bin/python | |
| """pwgen: Generate secure password.""" | |
| __author__ = "HostOnNet.com" | |
| __email__ = "admin@hostonnet.com" | |
| __copyright__ = "Copyright 2016, HostOnNet.com" |
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
| To allow FTP access for a web site, login to Server via SFTP, download the file | |
| /etc/iptables.rules | |
| At end of the file, add a line like | |
| -A INPUT -s 111.93.162.110 -p tcp -m tcp --dport 21 -j ACCEPT | |
| Where 111.93.162.110 is the IP to white list. |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4gjNM1Rf9qXOqKk1wHs9ymAWA65cW01Gz89S7ctPYeO6Mg9G1E6G5AtcFzeqh9GfXpXvkUGsGJ7DEVDEloepBoVEWyh0TBbcQi7l/7iXjUNALTHYPkALkwp8K8HN9KB/JLSzaHvSgMJ6jRMaXDr7cIn7RcgGltV9sNyC2/4VwxT/JlIQcmeYWvTwRE7baCKca38VRLdfVvKHZ83nyhN91AmQydCW/vDLPMdLzja/JOBw5iJ41Fa3Sdw8e/VSS3Xpw9gUVMd63X2le12oG+BdhCcvP3jm0TX95h3VAQ+tmbMkDyijdRmyHEASQ64jHEWP19YI7AWNWRwItOclJPNif admin@hostonnet.com |
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
| 191.96.249.70 - - [03/Feb/2017:17:34:05 +0000] "POST /xmlrpc.php HTTP/1.0" 200 770 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" | |
| 191.96.249.70 - - [03/Feb/2017:17:34:05 +0000] "POST /xmlrpc.php HTTP/1.0" 200 770 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" | |
| 191.96.249.70 - - [03/Feb/2017:17:34:07 +0000] "POST /xmlrpc.php HTTP/1.0" 200 770 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" | |
| 191.96.249.70 - - [03/Feb/2017:17:34:19 +0000] "POST /xmlrpc.php HTTP/1.0" 200 770 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" | |
| ::1 - - [03/Feb/2017:17:34:21 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g (internal dummy connection)" | |
| 191.96.249.70 - - [03/Feb/2017:17:34:12 +0000] "POST /xmlrpc.php HTTP/1.0" 200 770 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)" | |
| ::1 - - [03/Feb/2017:17:34:24 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g (internal dummy connection)" | |
| 191.96.249.70 - - [03/Feb/2017:17:34:13 +0000] " |
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
| Hi, | |
| We need to edit some DNS entry for our site as some of the A records point to our sites dedicated IP causing problem with google indexing. | |
| So can you please enable Advaned DNS editor in Cpanel ? | |
| https://documentation.cpanel.net/display/1144Docs/Advanced+DNS+Zone+Editor | |
| This you can do by logging into |
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
| nslboby@hon-pc-01:~/www/flashwebhost.in $ cd | |
| boby@hon-pc-01:~ $ nslookup edusig.ht | |
| Server: 8.8.8.8 | |
| Address: 8.8.8.8#53 | |
| Non-authoritative answer: | |
| Name: edusig.ht | |
| Address: 192.230.79.89 | |
| Name: edusig.ht | |
| Address: 199.83.135.102 |
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
| boby@hon-pc-01:~ $ curl -I blog.dedicatedsupport.info/2006/03/install-alternative-php-cache-on.html | |
| HTTP/1.1 301 Moved Permanently | |
| Date: Fri, 10 Feb 2017 20:47:11 GMT | |
| Server: Apache | |
| X-Powered-By: PHP/5.5.29 | |
| Location: http://blog.hostonnet.com/install-alternative-php-cache-on-freebsd | |
| Content-Type: text/html | |
| boby@hon-pc-01:~ $ |
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
| The multiple url is fixed by editing index.php and adding following code | |
| if ($_SERVER['HTTP_HOST'] != 'kingashoes.com') { | |
| $newUrl = 'https://kingashoes.com' . $_SERVER['REQUEST_URI']; | |
| header('Location: '. $newUrl, true, 301); | |
| exit; | |
| } | |
| if ($_SERVER["SERVER_PORT"] == '80') { | |
| $newUrl = 'https://kingashoes.com' . $_SERVER['REQUEST_URI']; |