This file contains 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
Edited file | |
engine/Library/Enlight/Controller/Dispatcher/Default.php | |
On line number 448, added | |
$requestUrl = $_SERVER['REQUEST_URI']; | |
$requestUrlEnd = substr($requestUrl, -1); | |
if ($requestUrlEnd != "/") { |
This file contains 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/sh | |
# Startup script for Red5 | |
# chkconfig: 2345 95 55 | |
# description: Red5 Server | |
# processname: red5 | |
PROG=red5 | |
RED5_HOME=/opt/red5-server | |
DAEMON=$RED5_HOME/$PROG.sh | |
PIDFILE=/var/run/$PROG.pid |
This file contains 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
$requestUrl = $_SERVER['REQUEST_URI']; | |
$requestUrlEnd = substr($requestUrl, -1); | |
if ($requestUrlEnd != "/") { | |
$numSlash = explode("/", $requestUrl); | |
if (count($numSlash) == 2) { | |
Header("Location: https://maxpots.eu" . $requestUrl . "/"); | |
exit; | |
} | |
} |
This file contains 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
http_port 3128 | |
cache deny all | |
hierarchy_stoplist cgi-bin ? | |
access_log none | |
cache_store_log none | |
cache_log /dev/null | |
refresh_pattern ^ftp: 1440 20% 10080 | |
refresh_pattern ^gopher: 1440 0% 1440 |
This file contains 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
ubuntu@ip-172-31-95-195:~$ linode configure | |
This will walk you through setting default values for common options. | |
Linode Manager user name | |
>> HostOnNet | |
Linode Manager password for HostOnNet | |
>> | |
Default distribution when deploying a new Linode or rebuilding an existing one. (Optional) |
This file contains 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
Current open ports (csf rules) | |
============= | |
TCP_IN = "1186,2202,4444,4568,9999,9200,9500,4567,44433,60016,40054,41690,587,10000,20,21,22,25,53,80,110,143,443,465,587,993,995" | |
# Allow outgoing TCP ports | |
TCP_OUT = "1186,2202,4444,4568,9999,9200,9500,4567,44433,60016,40054,41690,587,10000,20,21,22,25,53,80,110,143,443,465,587,993,995" | |
============= | |
This file contains 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
[root@server1 wp-content]# grep journalistindia /usr/local/cpanel/logs/access_log | awk -F' ' '{print $1}' | uniq | |
223.185.255.57 | |
47.8.10.171 | |
223.185.225.33 | |
112.133.246.113 | |
111.93.159.50 | |
112.133.246.113 | |
66.249.80.12 | |
66.249.80.10 | |
66.249.80.12 |
This file contains 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
mysql> show tables; | |
+--------------------------------------+ | |
| Tables_in_iconagen_wrdp1 | | |
+--------------------------------------+ | |
| wp_aiowps_events | | |
| wp_aiowps_failed_logins | | |
| wp_aiowps_global_meta | | |
| wp_aiowps_login_activity | | |
| wp_aiowps_login_lockdown | | |
| wp_aiowps_permanent_block | |
This file contains 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
1. Install Apache | |
2. Install MySQL | |
Above steps can be done with following scripts | |
wget https://raw.githubusercontent.com/HostOnNet/server-setup/master/ubuntu/1-basic-tools.sh | |
sh ./1-basic-tools.sh | |
wget https://raw.githubusercontent.com/HostOnNet/server-setup/master/ubuntu/2-apache-php-mysql.sh | |
sh ./2-apache-php-mysql.sh |