Friday, December 27, 2013

Change Host-Name in Linux

Display Hostname

To display the current hostname, we can use hostname command.

#hostname
server1.adminnote.com

Change Hostname

We've to update two files:

/etc/hosts
/etc/sysconfig/network  or /etc/hostname

To add/remove hosts on Redhat / CentOS / Fedora / Debian / Ubuntu

#vim /etc/hosts
123.123.123.123 server2.adminnote.com
save and close :wq
Note: add all required hosts with IP

To add/remove hostname on Redhat / CentOS / Fedora

#vim /etc/sysconfig/network
HOSTNAME=server2.adminnote.com

save and close :wq

#hostname server2.adminnote.com
#hostname
server2.adminnote.com

To add/remove hostname on Debian / Ubuntu

#vim /etc/hostname

server2.adminnote.com

save and close :wq

#hostname server2.adminnote.com
#hostname
server2.adminnote.com

Tuesday, December 24, 2013

Software - AVG Internet Security 1 Year Trial


AVG providing 1 Year free trial for huawei dongle users, We can get these trial by following links,

Have a secured PC with AVG Internet Security.

AVG Internet Security 2014 Free 1 Year Trial Version: 32 Bit;

AVG Internet Security 2014 Free 1 Year Trial Version: 64 Bit;

Note: Links available for download till AVG allowing this offer.

Monday, December 23, 2013

Enable / Disable Webmail options on WHM panel

Currently we can choose Horde Webmail, RoundCube webmail, SquirrelMail webmail.

We can Enable or Disable, what all are should be available to client by WHM. For select this use bellow steps for it,

1. Login to WHM panel
2. From left site pane, select Server Configuration -> Tweak Settings
3. Click Mail tab, and there we can see lot of mail settings,
4. Find Enable Horde Webmail, Enable RoundCube webmail, Enable SquirrelMail webmail
5. Using On,Off radio selection, we can Enable or Disable webmail options.
6. Select option and click save.

disable_functions with Easy Apache 4 and PHP-FPM

Recently I've faced the issue about disable_functions !!! I need to use 'shell_exec' for one of application with PHP. By de...