Archive for April, 2007

How to enable/disable PING

Wednesday, April 25th, 2007

To Enable PING on the server

echo “0″ >> /proc/sys/net/ipv4/icmp_echo_ignore_all

To Disable PING on the server

echo “1″ >> /proc/sys/net/ipv4/icmp_echo_ignore_all

Enjoy

Ninad

RAM disk

Wednesday, April 25th, 2007

A RAM disk is a portion of RAM which is being used as if it were a disk drive. RAM disks have fixed sizes, and act like regular disk partitions. Access time is much faster for a RAM disk than for a real, physical disk. However, any data stored on a RAM disk is lost when the system is shut down or powered off. RAM disks can be a great place to store temporary data.The Linux kernel version 2.4 has built-in support for ramdisks. Ramdisks are useful for a number of things, including:

  • Working with the unencrypted data from encrypted documents
  • Serving certain types of web content
  • Mounting Loopback file systems (such as run-from-floppy/CD distributions)

Ninad

Installing Fileinfo using PECL Modules

Tuesday, April 24th, 2007

The PHP Extension Community Library (PECL) is a collection of modules/extensions that you can install to enhance your version of PHP. The categories range wildly from Authentication to Image Handling, and from Encryption to XML. However, installation of the PECL libraries can sometimes be a bit tricky for the beginner. There are two main ways to install the PECL libraries. Note that if you installed PHP from an RPM or similar package, you will also need the PHP-devel package as well.

You can view all the PECL modules available at the PECL website. Some useful modules are:

We will be installing Fileinfo 1.0.4 for this tutorial.

Installation using the PECL binary

If you are using a more recent version of PHP, chances are you have the pecl binary installed as well. As root from the command line, try running ‘pecl’. If found, it will give you a list of options that can be used to compile your extensions. To install Fileinfo, simply type

pecl install fileinfo

This will download the fileinfo source files, phpize the source, and then compile and install the extension.

You will need to activate the extension by editting your php.ini and add:

extension=fileinfo.so

Restarting your webserver should result in PHP starting with the fileinfo extension active and ready for use.

Installing from Source

Some systems don’t have pecl available due to running an older version of PHP. However, you can still install the extension, albeit with a bit more work. The first step is to download the extension, unpack the file, and phpize the contents. You then need to perform a normal configure and make routine to install the module:

wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz
tar -zxf Fileinfo-1.0.4.tgz
cd Fileinfo-1.0.4
phpize
./configure
make
make install

This will install the fileinfo.so module in your php extensions folder. As per above, add this to your php.ini file by adding

extension=fileinfo.so

in the extensions section. It would be wise to check that your php.ini has the correct extensions directory set as well and this is set via the extension_dir directive.

Installing on Windows

Installation of the PECL modules on windows is alot easier, as all the hard work has been done. Simply locate the extension on the PECL Windows page and simply place the dll in your extensions directory. Add the extension to the php.ini file as described above, restart your web server, and you are good to go!

Set wildcard DNS

Monday, April 23rd, 2007

Follow the steps below to set the wildcard dns for your domain.

Edit the httpd.conf and add the line in virtual host of domain.

ServerAlias *.domain.com www.*.domain.com

restart httpd/apache service.

Now edit the DNS file or db file of domain and add the line as

*.domain.com.    14400   IN      A       IP of server
www.*.domain.com.        14400   IN      A       IP of server

restart named service

Hari

njoy

How to upgrade Perl on cPanel Server

Monday, April 23rd, 2007

To upgrade your perl on the Cpanel server you need to
go through the below steps.You need to perform all the steps
on the shell :

1. Download the latest perl installer tar file
from http://layer1.cpanel.net :

wget http://layer1.cpanel.net/perl587installer.tar.gz
tar -vzxf perl587installer.tar.gz
cd perl587installer
./install

2. After installation you need to run
upcp on the server.

/usr/local/cpanel/bin/checkperlmodules
/scripts/upcp –force

3. Checkout the perl version after upgradation.
You can checkout the perl version through below command :

perl -v

————-

What is CSS ?

Monday, April 23rd, 2007

What is CSS?

CSS is an acronym for Cascading Style Sheets.

What can I do with CSS?

CSS is a style language that defines layout of HTML documents. For example, CSS covers fonts, colours, margins, lines, height, width, background images, advanced positions and many other things. Just wait and see!

HTML can be (mis-)used to add layout to websites. But CSS offers more options and is more accurate and sophisticated. CSS is supported by all browsers today.

After only a few lessons of this tutorial you will be able to make your own style sheets using CSS to give your website a new great look.

Which benefits will CSS give me?

CSS was a revolution in the world of web design. The concrete benefits of CSS include:

* control layout of many documents from one single style sheet;
* more precise control of layout;
* apply different layout to different media-types (screen, print, etc.);
* numerous advanced and sophisticated techniques.

How to catch spammer using simple command..

Monday, April 23rd, 2007

Follow this —

1. Open exim.conf
pico /etc/exim.conf

2) Find this;
Ctrl + W: hostlist auth_relay_hosts = *

#########################
Runtime configuration file for Exim #
#########################

3) After hostlist auth_relay_hosts = *

add the following

log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +incoming_port +lost_incoming_connection +queue_run +received_sender +received_recipients +retry_defer +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_connection +smtp_protocol_error +smtp_syntax_error +subject +tls_cipher +tls_peerdn

4) The final result should look like this

hostlist auth_relay_hosts = *

log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +incoming_port +lost_incoming_connection +queue_run +received_sender +received_recipients +retry_defer +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_connection +smtp_protocol_error +smtp_syntax_error +subject +tls_cipher +tls_peerdn

#######################################
# Runtime configuration file for Exim #
#######################################

5) Save and restart exim DONE!
ctrl + X then Y
/etc/init.d/exim restart

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

Use this command –

grep cwd=\/home\/ /var/log/exim_mainlog| cut -d’ ‘ -f3 | sort -n | uniq -c

This will show you exact number of emails send by particular user..

What is Pear ?

Monday, April 23rd, 2007

PEAR Is short for ‘PHP Extension and Application Repository’

PEAR is having it’s primary goal to become a repository for PHP extensions and library code. The most important goal of the PEAR project is to try to define standard coding packages that can be used be developers directoly and it is re-usable coding.
Each package is a seperate project and is having a diffreent developer team.

Packages are in the gzipped tar files with a description file inside, and installed on your server using the PEAR installer.

You can install any pear package as
———–
pear install pear-package-name
———–

You can check all the PEAR packages that are available with
————
pear list-all
————

You can check installed PEAR packages on your server as
————
pear list
————

Troubleshooting Authorize.Net problems with ClientExec

Monday, April 23rd, 2007

Try this —

1) Disable TEST MODE in your Authorize.Net account. In TEST MODE Authorize.net does not return a string.

2) Reset your transaction key in your Authorize.Met account and enter the new key in Admin -> settings -> 3rd party billing.

3) Upgrade or re-install Curl to the latest available version. Curl is a free download from (http://curl.haxx.se)

4) Leave the MD5 Hash value empty

What is Clientexec and how to Install it.

Monday, April 23rd, 2007

Clientexec is a robust client management software use for managing hosting clients, as well as many other types of clients, that offers the ability for monthly billing. CE Clientexec) also offers an area for your clients to create support tickets, and allows you to respond to the tickets as well. CE integrates with Paypal, Authorize.net, and many other 3rd party online payment processors.

Here is the procedure on how to install ClientExec

Depending upon your server configuraion you will have to download exect clientExec from here.

Detail of CE
For example if you have following configuration

- PHP versions between 4.3.0 and 5.0.5
- MySQL versions till 4.1

Downloading ClientExec
All customers with access to the latest ClientExec release will be able to download the release via the files module of the support center. After logging into http://www.clientexec.com/members click on files->overview from the main menu, then on ClientExec Stable folder.

Click on the zip file for the release to download onto your desktop

———————————————————————————-
Now To install ClientExec:

- The first step is to create a database. (You need to create a mySQL database, database
username, and database password.)

- Upload the entire contents of the zip file to your server in BINARY mode.

- Apply any patches as needed.

- Change CHMOD permissions on the config.php file to 666.

- Also modify the config file as per your database configuration.

- Point your browser to http://domain.com/install.php

- After the installation is complete, delete or move the install.php file

That is it. You should have a clean install and ready to go.

READ the CHANGELOG.txt file

1) First step in any upgrade is to backup your database. You can do so using an application
like phpmyadmin which is commonly found with your hosting control panel utilities.
NOTE: We can not stress this step enough. We can not help you easily with any issues to
your data unless you have a backup before any upgrade.
2) Unzip the contents of your compressed ClientExec file.
3) FTP to your server, which contains the domain of your ClientExec installation.
4) Remove all of your files except for:
config.php
license.php – If upgrading from 2.2.x you do not need to keep your license file
uploads/files – Do not remove this folder if you have files in your files manager
5) Upload all the content files from the ClientExec zip file. Ensure that you do not overwrite
config.php or license.php
6) Visit http://yourceurl/install.php and click on Upgrade. Follow the steps until completion.
7) If you are getting any error o the above URL then please check that you have change the file permission to 666.
8) Delete install.php.

Upgrading Notes:
-If you see the install option available when you run the install.php script then you need to
check your config.php and ensure that you didn’t overwrite by mistake.
-If you are upgrading from beta 2.2.x then you do not need to keep your license.php file prior
to running the upgrade.
-After you have upgraded your version of CE you can now delete your license.php file.
-After you have upgraded your version of CE make sure you remove your install.php file.
-If after upgrading you find that you have unauthorized version installed message do not stress,
just follow the instructions below on obtaining a new license.
-After each upgrade go to admin->settings->3rd party invoices to ensure all plugins are synched properly

———————————————————————————–
You can have detail info for clientexec at following URLS:

http://www.clientexec.com/manual

http://www.clientexec.com/kb

http://www.ce-talk.com/

————————————————————————————