Allow IP address in iptables
June 17th, 2011 by ayadYou may use the command below:
iptables -A INPUT -s XXX.XXX.XXX.XXX -j ACCEPT
You may use the command below:
iptables -A INPUT -s XXX.XXX.XXX.XXX -j ACCEPT
You may use the command below to block:
iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP
To create local php.ini in Registry Editor, please follow to stepas below:
1. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PHP\5\Per Directory
Values\C\inetpub\vhosts\<domain name>
2. Add the domain if it does not listed yet
3. Add the value that you want to change “binary data”. For example, register_globals and the value in ON/OFF
If you see the stats is not showing correct data in cPanel, you can run the command below to update it manually:
/scripts/runweblogs <username>
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. If
you see the above error, you can simply fix it by issuing the command below in command prompt:
%SystemRoot%\system32\inetsrv\appcmd migrate config “Path to the application/site/”.
Example:
%SystemRoot%\system32\inetsrv\appcmd migrate config “abc.com.my/abc/”.
Another solution is to edit web.config and then amended the code below:
<system.webServer>
<validation validateIntegratedModeConfiguration=”false” />
</system.webServer>
Sorry, you are out of ips to assign as nameservers
If you see the error above, you need to manually add it from the server in order to assign the IP address for the
nameserver.
vi /etc/nameserverips
Edit the line as below:
111.222.333.444=ns1.abc.com
111.222.333.444=ns2.abc.com
In you want to check the version of ImageMagick, simply ssh to the server and run the command below:
# convert -version
You will get the answer like below:
Version: ImageMagick 6.2.8 10/20/10 Q16 file:/usr/share/Imag
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
If you see the error below:
[Tue May 24 18:17:16 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
You need to increase the value for MaxClients and ServerLimit in /etc/httpd/conf.d/swtune.conf
After that remember to restart apache service by using the command below:
# service httpd restart
In order to restart Tomcat service, you need to:
# cd /usr/local/jakarta/tomcat/bin/
After that, you firstly stop the service:
# ./shutdown.sh
Now you may restart it by using the command below:
# ./startup.sh
If you see the result as below, then the Tomcat already running:
root@server [/usr/local/jakarta/tomcat/bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/jakarta/tomcat
Using CATALINA_HOME: /usr/local/jakarta/tomcat
Using CATALINA_TMPDIR: /usr/local/jakarta/tomcat/temp
Using JRE_HOME: /usr/local/jdk
Using CLASSPATH: /usr/local/jakarta/tomcat/bin/bootstrap.jar
You may follow the steps below to install Horde webmail:
# cd /usr/local/psa/admin/bin
After that run the autoinstaller:
# ./autoinstaller –select-release-current –install-component horde
Please wait until the command finish install.