Netedge Blog

 Home / Archive by category "Uncategorized"
27Nov, 2013
0

How to check apache memory

Here is the command to use apache memory apache2 -V | grep -A 2 'MPM:'


Read more
15Oct, 2013
0

How to configure firewall in linux

Follow this Steps: This may help you Step1. Lets install csf firewall 1.1 Download CSF Firewall Code: wget http://www.configserver.com/free/csf.tgz 1.2 Extracting downloaded files Code: tar -xzf csf.tgz 1.3 Changing the directory for installation Code: cd csf 1.4 Installation of CSF Code: sh install.sh 1.5 Now lets test csf Code: perl /etc/csf/csftest.pl 1.6 Remov...


Read more
07Oct, 2013
0

How to read mysql binary log file

Here are the steps of how to ready mysql binary log file. 1) Loging to server 2) go to /var/log/mysql 3) Use this command mysqlbinlog binlog.000001(bin filename)  


Read more
02Oct, 2013
0

How to install Cpanel on CentOS

Login to your server using SSH Then you need to enter in to screen mode using command #Screen If this command is not available in your server you can install by just using " yum install scree". After you are entered in screenmode follow these commands. iptables -F /etc/init.d/iptables save cd /home wget http://httpupdate.cpanel.net/latest chmod +x latest screen ./latest  


Read more
08Sep, 2013
0

How to find mails older than 100 days

You may need to find mails older than some specific days like 100 days of 125 days because you may need to delete it as its not possible to delete it from outlook. You can use this command to find the mails older than specified days. Here I have mentioned command to find mails older than 100 days. find -P /home/pchmpl/mail/pchmpl.com/*/cur -mtime '+100' | xargs ls -l


Read more
04Feb, 2013
0

How to assign Name Server in Cpanel

Steps to assign NS in Cpanel 1) Login to WHM 2) Go to basic Cpanel & WHM Settings. 3) At the right page go to bottom of page. 4) assign Nameserver 1, Nameserver 2, Nameserver 3 and Nameserver 4. 5) Click on save changes. That is it. You are done.


Read more
28Jan, 2013
0

How to check DDOS attack on your server

Here are command to check DDOS attack on your server 1. To find the number of HTTP connections to a particular IP address, use the following command. netstat -nee | grep "\:80" | awk ' { print $4 }' | awk -F: '{ print $1 }' | sort|uniq -c


Read more
07Jan, 2013
0

How to make a file password protected

You need to use htaccess to make a single file password protected and add these lines in to it. <FilesMatch file.php> AuthName "Restricted Area" AuthType Basic AuthUserFile /path/to/.htpasswd AuthGroupFile /dev/null require valid-user </FilesMatch> then run command htpasswd -b .htpasswd username password


Read more
31Dec, 2012
0

Mysql commands

To login (from unix shell) use -h only if needed. # [mysql dir]mysql  -u username -p Create a database on the sql server. mysql> create database [databasename]; List all databases on the sql server. mysql> show databases; Switch to a database. mysql> use [db name]; To see all the tables in the db. mysql> show tables; To see database’s field formats. mysql> describe [ta...


Read more
10Dec, 2012
0

qmailadmin was not found on this server

If you get message "qmailadmin was not found on this server" while browsing qmailadmin then it must be something with script alias. add this in your httpd.conf and restart the service ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/" <Directory "/usr/lib/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory>


Read more
03Dec, 2012
0

INSTALL PERL IN UBUNTU

1.    Download the perl from below command wget http://www.cpan.org/src/5.0/perl-5.14.2.tar.gz 2.    Unzip it tar -xzf perl-5.14.2.tar.gz 3.    Change working directory to perl cd perl-5.14.2 4.    Configure it with below commands ./Configure -des -Dprefix=/usr/bin/perl make make test make install 5.    Once you have done this you can check your new version of perl ...


Read more