Monday, August 29, 2011

How to set up awstat enable button in cpanel


<<  How to enable "update now" button in awstats is give below  >>:--

***********************------------------------***************************

On every users [ tmp ] folder there is a awstats configuration file 

$:/> pico /home/username/tmp/awstats/awstats.domain.com.conf 

Now in this file search for the "AllowToUpdateStatsFromBrowser" parameter. This parameter will be 0. Set this to 1. 

Now refresh your awstats page you can see "update now" button.

***********************-------------------------**************************

Saturday, August 27, 2011

apf.flush


pico /apf.flush

#!/bin/bash
cat /etc/apf/deny_hosts.rules.orig > /etc/apf/deny_hosts.rules
/etc/init.d/apf restart
echo "APF flushed on :" `hostname`

chmod 700 /apf.flush

***********----------***********

pico /etc/apf/deny_hosts.rules.orig

##
# deny_hosts
#
# Trust based rule file to define addresses that are implicitly denied.
#
# Format of this file is line-seperated addresses, IP masking is supported.
# Example:
# 192.168.2.1
# advanced usage
#
# The trust rules can be made in advanced format with 4 options
# (proto:flow:port:ip);
# 1) protocol: [packet protocol tcp/udp]
# 2) flow in/out: [packet direction, inbound or outbound]
# 3) s/d=port: [packet source or destination port]
# 4) s/d=ip(/xx) [packet source or destination address, masking supported]
#
# Syntax:
# proto:flow:[s/d]=port:[s/d]=ip(/mask)
# s - source , d - destination , flow - packet flow in/out
#
# Examples:
# inbound to destination port 22 from 192.168.2.1
# tcp:in:d=22:s=192.168.2.1
#
# outbound to destination port 23 to destination host 192.168.2.1
# out:d=23:d=192.168.2.1
#
# inbound to destination port 3306 from 192.168.5.0/24
# d=3306:s=192.168.5.0/24

Friday, August 26, 2011

APF allow

986  pico -w /etc/apf/deny_hosts.rules 
--------------------------------------------------  
987  apf -a 81.86.158.140
--------------------------------------------------  
988  service apf restart
--------------------------------------------------  
989  service iptables restart
-------------------------------------------------- 
990  traceroute 81.86.158.140
--------------------------------------------------  
991  cd /etc/apf
-------------------------------------------------- 
992  ls
-------------------------------------------------- 
993  cat deny_hosts.rules
--------------------------------------------------  
994  /etc/init.d/apf stop
-------------------------------------------------- 
995  cd /root
--------------------------------------------------  
996  ls
--------------------------------------------------  
997  cd bfd-0.9
-------------------------------------------------- 
998  ls
--------------------------------------------------  
999  sh uninstall.sh
-------------------------------------------------- 
1000  exit
*********------------------------------***********

Thursday, August 25, 2011

Apache configure command

<< Configure commands are as given below >>:-

*************************---------------------------------------****************************
./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--with-mm' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mm' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-safe-mode' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-xmlrpc' '--with-zip' '--with-zlib' 

**************************--------------------------------------****************************

Tuesday, August 23, 2011

An error occurred while processing this directive

To fix it, log into your server via SSH as root and run :--

/usr/local/cpanel/bin/cachelangfiles

===========================

The above fix works when it's a issue with cpanel and occurs server wide.

If you get this error for a particular account, check the cpanel logs at /usr/local/cpanel/logs/error_log

The error indicates the file name causing the issue.

===========================

Accordingly you'll need to check the ownership and permission of the following files :--

===========================

1- ownership of the domain name under /etc/valiases/

2- ownership of the domain name under /etc/vdomainaliases

3- ownership of /etc/wwwacct.conf should be root.root and permission 644

4- ownership of /home/username/.contactemail

---------------------****************---------------------

Monday, August 22, 2011

Addon domain


You can add your addon domain through your control panel,

Please follow the following steps to add your domain as an addon domain >>:--


****************---------------------****************

Login to your control panel >> Click on Server >> Click on Addon Domains.

****************---------------------****************  

Here you have to fill the following details :--
New Domain Name :--New addon domain which you want to add

****************---------------------****************

UserName/SubDomain Name :--

 FTP Username for addon domain ( With this username a folder will get automatically created in your   public_html( i.e.,public_html/username ) for your addon domain,

 This folder will contain files for your addon domain.) .

****************---------------------****************

Password  :- FTP Password for addon domain (Password for your addon domain)

Please note that the FTP login details for your addon domain should not be same as your main domain for example (educom.org.uk)

------------------------------------------------------------------------------

Saturday, August 20, 2011

How to add new domain in plesk


 Please follow these steps to add another domain into your control panel >>:


--------------------------------------------


1** Login into your control panel and click on your main domain.


2** Then click on the limits and set all the limits to half of existing. (eg: if space is set to 500 make it 250).


The above steps will divide all your limits in to two parts, one for each domain.


3** Click on OK.


4** Again go on the main page by clicking on "Up Level" on top right corner.


5** Click on Add New Domain and enter the new domainname.


6** Select template as : Create domain without tamplate and click Ok


7** Select Physical hosting and click Ok


8** Add your FTP details and click Ok


9** Goto the limits of your newly added domain and set the limits to same as your main domain but please note that you cannot have mysql database as you can have only one database with your package.

These steps will create another domain and now your package will have two domains hosted at a time.

Friday, August 19, 2011

what is addon domain error

<< Bind reloading on server using rndc zone: [custdomain.com] The subdomain, custdomain.domain.com has been added. Add-on domain could not be added abc.custdomain is owned by another user.>>


This error occurs when addon is not added correctly and a entry is left somewhere :--

Check following files and remove the entry of the addon domain that you are not able to add :--


---------------------*************----------------------

/var/cpanel/users
/var/named/  del the domain.db file
/etc/named.conf
/etc/httpd/conf/httpd.conf
/etc/localdomains
/etc/userdomains
/etc/valiases/
/etc/vdomainaliases

---------------------*************----------------------

<<** any entry left in one of these files will not allow you to add the domain. after removing all entries it should be fine **>>

Thursday, August 18, 2011

what is 0x800CCC79 ?

//** what is 0x800CCC79 **// :--

------------------

Solution :-

------------------

Run the below script :--


./updateuserdomains and ./mailperm

cd /scripts -> run ./fixpop

Quota : fix quota run


--------**************---------

Wednesday, August 17, 2011

what is YUM

After installing CentOS x86_64 Bit VPS You need to install the following RPMs for yum install so that yum updates are available.



*********-------------***********



http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/



*********-------------***********



rpm --import http://mirror.centos.org/centos-5/5.3/os/x86_64/RPM-GPG-KEY-CentOS-5

rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm

rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm

rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm

rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/m2crypto-0.16-6.el5.3.x86_64.rpm

rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm

rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/sqlite-3.3.6-2.x86_64.rpm

rpm -ivh http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/rpm-python-4.4.2.3-9.el5.x86_64.rpm

rpm --nodeps -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm

rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.7.x86_64.rpm

rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/yum-metadata-parser-1.1.2-2.el5.x86_64.rpm

rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm



yum update



libxml dependency error install this url first.



rpm -ihv http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.7.x86_64.rpm


*********-------------***********

Direct admin installation



wget http://www.directadmin.com/setup.sh

chmod 755 setup.sh

./setup.sh

===================***************===================



* Install Cpanel :-





The VPS is now ready for cPanel installation.



mkdir /home/.cpins

cd /home/.cpins

wget http://layer1.cpanel.net/latest 

sh latest

------------------------------------------------------------
 All done...

Monday, August 15, 2011

How to do windows initial setup


** There is no special need to do with windows after win server installation ** :--

---------------------------------------------------------

 Just run the win update ->
 From start >>> programs >> update
 also install security check from here

http://www.microsoft.com/downloads/details.aspx?FamilyID=F32921AF-9DBE-4DCE-889E-ECF997EB18E9&displaylang=en#filelist

Note :--check this URL and install security analyzer

Question : -- There are 8 files to download in the link which one i should prefer.
Answer  :-- You need to install EN version.

depend on windows type 32 bit OR 64 bit.

---------------------------------------------------------