This blog will be helpful in solving the most basic issues that occur in the websites.
Sunday, 11 December 2016
MP4 video is not playing - IIS/Plesk
You have to add the MIME Type to resolve this issue. You can add the MIME type in Virtual Directories > MIME Types or in web.config file.
Thursday, 8 December 2016
Checking log for hacked site
Hacked
info will be present in the domlog. Get the path of the domlog for
the domain from httpd.conf file.
sudo
grep user /usr/local/apache/conf/httpd.conf
Grepping
the hacked log :
sudo
grep domain.com /usr/local/apache/domlogs/domain.com | grep
03/Jun/2016 | grep POST
Grepping
the IPs:
sudo
grep domain.com /usr/local/apache/domlogs/domain.com | grep
03/Jun/2016 | grep POST | awk '{print $1}' | cut -d: -f1 | sort |
uniq -c | sort -n
You
can check the location of the IP by going to
http://www.ipligence.com/iplocation
You
can block the IP by going to cPanel > IP deny manager
Subscription is not synced with the service plan in windows plesk panel
Please
follow the below steps to sync the plan:
Login
to Plesk
Click
on subscriptions
Customize
Adjust
the resources as per the available resource and save the plan.
Thursday, 8 September 2016
Enable Jail Shell using Command in cPanel
To
setup jailshell access for a user from the command line interface,
simply use the operating system's change shell command as root :
#
chsh -s /usr/local/cpanel/bin/jailshell ${username}
Username
= cPanel username
Sunday, 26 October 2014
Show the inode usage for folders within your working directory
Following
command will list complete inode usage from different folders with in
the present working directory:
echo
"Detailed Inode usage for: $(pwd)" ; for d in `find
-maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d
|wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total:
\t\t$(find $(pwd) | wc -l)\n"
Limiting number of HTTP Connections Per IP/Host
You can limit number of HTTP
connections from single IP or Host using IPTABLES
The syntax is as follows :
/sbin/iptables
-A INPUT -p tcp --syn --dport $port -m connlimit --connlimit-above N
-j REJECT --reject-with tcp-reset
Example:
/sbin/iptables
-A INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 20 -j
REJECT --reject-with tcp-reset
Above command will limit 20
HTTP connections per IP
Sunday, 19 October 2014
Data error in File Manager
When you click on the File
Manager in cPanel you get the following error :
Data error!
This error is caused by a
corrupt mime type cache file. Rename the file and cPanel will
generate a new one.
mv
-v /home/<user>/.cpanel/datastore/SYSTEMMIME{,.bak}
Subscribe to:
Posts (Atom)
ERR_CONTENT_DECODING_FAILED
If you are getting the error as ERR_CONTENT_DECODING_FAILED while accessing the domain then add the below extension in php.ini ++++++++...
-
Website showing the following error: Notice: wp_localize_script was called incorrectly. Scripts and styles should not be registered or ...
-
Inorder to manually remove the cPanel account from the server , please follow the below steps : (Note: For example consider the domain...
-
The admin panel of the Datalife Engine Platform installed on the domain is logging out automatically , when we click on any button. ...