Monday, October 5, 2009

How to install or check pear package?

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

Thursday, July 16, 2009

What is NFS server?

NFS word belongs to "Network File System". NFS allows to access files on server from network users which stored on computers of different types.NFS allow to access files by using Virtual File System (VFS) that runs on top of TCP/IP. With NFS, computers connected to a network as a client while accessing remote files, and as servers while providing remote users access to local shared files. With NFS we can mount all or a portion of a file system which will allow client to access partition or specific file/directory which we defined in NFS mount point for specific user or network.
Also refer following blog to collect more information http://theperfectarts.com/

Monday, July 13, 2009

How to check run level on Linux Server?

To check run level run "who -r" on shell it will show you current run level set on your server.


root@Gunjan [~]# who -r
run-level 3 2009-01-07 21:19 last=S
Also refer following blog to collect more information http://theperfectarts.com/

What is process ID zero and process ID one?

Process ID zero

All idle task has process ID zero and never exits.



Process ID one

The init process having process ID 1, which is never be used but waiting around for its child processes to die. Usually started for /etc/inittab

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

Sunday, May 17, 2009

Safari browser downloading .html pages.

Some time we are facing very strange problem with the browser like when we are browsing the .html pages in Safari its asking for downloading pages on local machine.To resolve such errors you need to add following code in .htaccess file.


AddHandler application/x-httpd-php5 .htm .html .php5 .php4 .php .php3 .php2 .phtml
Affiliate Program ”Get Money from your Website”
AddType application/x-httpd-php5 .htm .html .php5 .php4 .php .php3 .php2 .phtml

It will resolve you issue with the Safari browser for .html pages

Also refer following blog to collect more information http://theperfectarts.com/
Affiliate Program ”Get Money from your Website”

Wednesday, February 4, 2009

MySql server error "Client does not support authentication protocol".

After upgrade server to 5.1 generally we are getting following error message.

Client does not support authentication protocol requested by server; consider upgrading MySQL client.

The above error message are receiving because latest version of MySql uses a new format for the password in that case to use older client to use older version Mysql with new version Mysql you have to set the passwords on the server to their old format.Refer following steps to set the password.

Login into shell as root user and access mysql with root user and password

[root@gunjan.com]#mysql -u root -p


Then, copy and paste the following command in shell, editing commands if necessary, to change the password of the user to the old format.

[root@gunjan.com]#UPDATE mysql.user
[root@gunjan.com]#SET password=OLD_PASSWORD('password')
[root@gunjan.com]#WHERE user='username'
[root@gunjan.com]#AND host='host';

After running above commands flush the tables.

[root@gunjan.com]#flush privileges;

Then exit the mysql client.

[root@gunjan.com]#\q

It will sort your problems :)

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

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/