Wednesday, January 14, 2009

Set email filtering from your cpanel.

You can set the mail filter from your cPanel.Please refer the following steps to set the filter.

1] Go to cPanel
2] Go to Mail >> email filtering
3] Click on Add filter option

This option is also very useful when your clients domain marked as Spam in your mail box.For example if mail came from example.com marked as Spam mail then you can set the filter in following manner to avoid Spam mail problem for your domain example.com

1] Go to cPanel
2] Go to Mail >> email filtering
3] Click on Add filter option
4] Then as per your email headers you can set the filter here
5] Destination should be allow
6] Click on activate option.

So that all the mails from example.com not be treated as spam.

Also refer following blog to collect more information http://theperfectarts.com/

Common problem for VPS clients about Hostname?

Hostname:

Hostname is the name of your VPS and should point to your VPS main IP address. It should be Fully Qualified Domain Name like server.example.com or vps.example.com, where example.com should be hosted on your VPS. So after receiving the login details of your VPS you need to change the hostname. Hostname will be set from the main hardware node on which your VPS is hosted. Due to that you can't change the Hostname.To change the Hostname for your VPS you need to contact company where you have buy a VPS for you.

The one most common error with the Hostname is a "Missing A record entry for your servers hostname"

This error is occur because your servers hostnames domain is not pointing to your VPS.For example the Hostname for your VPS is vps.example.com.You need to update the name servers from your domain name registrar end for your domain .com.As soon as your domain example.com pointing to your VPS you will not receive Hostname A record missing error.

Also refer following blog to collect more information http://theperfectarts.com/

How to set name servers from WHM for new Server/VPS?

You will need an IP address for each nameserver which you want to set for your server.

Under 'Basic cPanel/WHM Setup' -> Scroll Down to 'Primary Nameserver'.

Now you should be add your nameservers in the fields available. Click on Assign IP Address next to each nameserver to assign it an IP. Then add an A entry so they will resolve through DNS. As well as make sure that you scroll down and click on 'Nameserver Setup' under 'Service Configuration' and enable the nameserver.

The main thing you must remember while setting new name server for your domain you need to register the name servers from your domain name registrar end.

For example if you set name servers for your server is as follows.

ns1.example.com ip 91.186.188.188
ns2.example.com ip 91.186.188.189

Then you should be register the above name servers at your domain name registrar end.The domain name registrar is a company where you have buy a domain example.com.The name server will take 24 to 72 hours to resolved worldwide with your server.

Also refer following blog to collect more information http://theperfectarts.com/

Tuesday, December 30, 2008

How to check on cPanel server SuExec configured values.

To check the suexec configured value use following command suexec -V on server by using root login details.

root@server [~]# suexec -V

It will give you following result.

-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"

To collect more information about above value refer following URL

Check it


Definition for PHP accelerator

A PHP accelerator is an extension is basically created to improve the performance of software applications using the PHP programming language.PHP accelerators work by caching and its compiled bytecode of PHP scripts to keep away from the transparency of parsing and compiling source code on each an every request.It gives best result, if caching is to basically shared memory with direct execution from the shared memory and the minimum of memory copying at runtime.A PHP accelerator typically reduces server load and increases the speed.

The list of PHP accelerators is as follows.

1) Alternative PHP Cache or APC
2) eAccelerator
3) XCache
4) Zend Optimizer
5) Zend Platform

Also refer following blog to collect more information http://theperfectarts.com/

Tuesday, November 4, 2008

PHP values you can change from .htaccess

There are few good values which should be change for specific script. Use following code in .htaccess to changes the values as per your requirement.

php_flag session.use_trans_sid off
php_flag session.use_only_cookies on
php_flag register_globals On
php_value magic_quotes_runtime Off
php_flag magic_quotes_gpc off
php_admin_flag safe_mode Off

php_value post_max_size 20971520
php_value upload_max_filesize 12M
php_value max_execution_time 600
php_value magic_quotes_gpc off
php_flag session.bug_compat_warn off
php_value session.use_cookies 1
php_flag session.use_only_cookies 1

Also refer following blog to collect more information http://theperfectarts.com/