UnixServerAdmin

Server Administration & Management

How to empty cPanel Server logs in one stroke

You can empty cPanel servers logs by using following commands, Login into server as root

# vi logs
————————————————————
echo > /usr/local/apache/logs/error_log
echo > /usr/local/apache/logs/access_log
echo > /usr/local/apache/logs/access_log
echo > /usr/local/apache/logs/error_log
echo > /usr/local/cpanel/logs/access_log
echo > /usr/local/cpanel/logs/error_log
echo > /var/log/exim_mainlog
echo > /var/log/exim_rejectlog
echo > /var/log/maillog
echo > /var/log/messages
echo > /var/log/messages.1
echo > /var/log/maillog.1
————————————————————

:wq!

# chmod 755 logs

# ./logs

It will empty all logs present on your server.

Advertisements

July 31, 2011 Posted by | cPanel | , , | Leave a comment

How to set E-mail size in exim

You can set the E-mail size limit from your WHM.

1. Login into WHM
2. Select “Exim Configuration Editor”  present unde ” Service Configuration” section.
3. Scroll down and  click on  “Advanced Editor” optoin.

You will see  the empty box (remember select first empty box) where you can type (right underneath where you see #!!# cPanel Exim 4 Config), enter in the following:

message_size_limit = 100M

4. Fourth scroll down to the bottom of that screen and click “Save” option.

Exim configuration will be rebuilt with the new option and your Exim will be restarted.

July 30, 2011 Posted by | Exim | , | Leave a comment

Spamd failed and does not restart (exim)

Issue:- You may get the spamd failed error on exim restart.

Fix:- When you disable spamd from  whm –> service manager, cPanel willl automatically creates a file “/etc/spamdisable”. If you enable  this feature  again the file /etc/spamdisable may not get deleted automatically.  In this case remove it manually and restart exim.

# rm -f /etc/spamdisable

# /scripts_restartsrv_exim

If the issue is still there, reinstall spamd on the server. Here is the steps:-

# wget http://www.hightechimpact.com/Apache/spamassassin/source/Mail-SpamAssassin-3.3.2.tar.gz

# cd Mail-SpamAssassin-3.3.2

# perl Makefile.PL

# make

# make install

The issue may also arise when the perl module “Mail::SpamAssassin”  is missing on the server. Install it manually.

# /scripts/perlinstaller  –force Mail::SpamAssassin

# /scripts/restartsrv_exim

Issue should be fixed now. You may also get the error message like this:-

“Starting spamd: [9128] error: spamd: spamd script is v3.001000, but using modules v3.001001 “

July 29, 2011 Posted by | Exim | | Leave a comment

Spamd causing high server loads (Exim)

When dealing with load issues, certain times you will see “spamd” in the top list. By default 5 spamd process will be started when exim starts. You can reduce/increase the spamd processes as follows.

1. open /etc/rc.d/init.d/exim

# vi /etc/rc.d/init.d/exim

2. search “spamd” or “maxchildren”

3. edit “–max-children=${maxchildren=5}”

Note:- Spamd consumes lot of memory and increasing it may increase memory usage and in turn increasing load. Reducing spamd too much also hangs exim (slow mail processing) and can cause load too. Use your judgment here.

July 28, 2011 Posted by | Exim | | Leave a comment

How to Enable PHP function for a one account

IF you disable PHP function in php.ini file and if you want to enable any particular function only one account . Then You can however use suhosin to enable a function for one domain only.

After installing suhosin, remove all functions from disable_functions in php.ini and add in php.ini suhosin.executor.func.blacklist = “exec,passthru,shell_exec” and all the functions that you want to disable globally.

After that for each domain in the virtual host section you can add suhosin.executor.func.blacklist again, but without the function that you need to enable. And so you will enable that function only for one domain.

Example:
————————————————————————————————–
<VirtualHost 127.0.0.1>
………..
………..
<IfModule mod_php4.c>
php_admin_value open_basedir “/usr/lib/php”
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir “/usr/lib/php”
php_admin_value suhosin.executor.func.blacklist = “passthru,shell_exec”
</IfModule>
…….
……
</VirtualHost>
————————————————————————————————–

In this example exec has been enabled for the VirtualHost. This way it will be better as you do not neet to modify all the virtual hosts only the ones that you need to enable one or more functions.

July 27, 2011 Posted by | Apache, PHP | , , | Leave a comment

How to enable log selector in Exim

Add the following entry in advanced configuration editor in exim:-

=====================================================================
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
======================================================================

Restart exim after this :-

# /scripts/restartsrv_exim “OR”

# /etc/init.d/exim restart

Once this is done , you will be able to find the location of the script which is sending mails as nobody user. For this Just issue the following command:-

# tail -f /var/log/exim_mainlog | grep cwd

====================================================================
2011-08-26 23:03:46 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1LnPlq-000810-Sl
2011-08-26 23:03:46 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1LnPlq-000811-St
2011-08-26 23:03:46 cwd=/home/icicemac/public_html 3 args: /usr/sbin/sendmail -t -i
2011-08-26 23:03:46 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1LnPlq-000813-T9
2011-08-26 23:05:48 cwd=/home/icicemac/public_html 3 args: /usr/sbin/sendmail -t -i
2011-08-26 23:05:48 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1LnPno-00087I-CT
====================================================================

July 26, 2011 Posted by | Exim, Mail | , , | Leave a comment

How to insert module in Kernel

You can insert the module in Kernel by using “insmod” but remember you require root login details. For the 2.6 kernel, this must be a kernel object (suffixed with .ko).If symbols exist within the module then they can be initiate at install time through the “insmod”. The following example will explain installing a module with an initial steps.

# insmod your_module.ko your_option=1

An error message will occur if there was an error while installing module with the above command.

July 25, 2011 Posted by | Tips & Tricks, Unix/Linux | , , | 3 Comments

How to install BFD (Brute Force Detection)

BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation, configuration and usage. The reason behind BFD is very simple; the fact there is little to no authentication and brute force auditing programs in the linux community that work in conjunction with a firewall or real-time facility to place bans. BFD is available at: http://www.rfxnetworks.com/bfd.php This guide will show you how to install and configure BFD to protect your system from brute force hack attempts.

Requirements:
:- You MUST have APF Firewall Installed before installing BFD, it works with APF and requires some APF files to operate.
:- Root SSH access to your server

# cd /usr/local/src/

# wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz

# tar -xvzf bfd-current.tar.gz

# cd bfd-*

# ./install.sh [Run the install file]

You will receive a message saying it has been installed
.: BFD installed
Install path:    /usr/local/bfd
Config path:     /usr/local/bfd/conf.bfd
Executable path: /usr/local/sbin/bfd

Edit the configuration file & Enable brute force hack attempt alerts

# vi /usr/local/bfd/conf.bfd

Find: EMAIL_USR=”root” CHANGE TO: EMAIL_USR=”unixserv@unixserveradmin.com”

# vi /usr/local/bfd/ignore.hosts  [Prevent locking yourself out and add your own trusted IPs]

# /usr/local/sbin/bfd -s [Run the program!]

Customize your applicatoins brute force configuration, Check out the rules directory in your /usr/local/bfd Here you’ll find all kinds of pre-made rules for popular services such as Apache, and PureFTPD w00t! If you have any clue about shell scripting you can customize them or create new rules for enhanced brute force detection and prevent attacks.

July 24, 2011 Posted by | CSF, Firewall, Security, Tips & Tricks, Unix/Linux | , , , , , | Leave a comment

How to increase IP_CONNTRACK value

The Linux Netfilter system (commonly known as the iptables firewall) includes a facility to track connections provided by the ip_conntrack kernel module. The state of a connection is tracked to allow an efficient traversal through the Netfilter firewall tables, as well as to provide the ability to filter based on detailed state of a connection. You may temporarily increase IP_CONNTRACK by echoing a high value to ip_conntrack_max file.

# echo 400000 >> /proc/sys/net/ipv4/ip_conntrack_max

Please note that  /proc is a virtual space. So if you restart iptables or if you reboot the machine the value set will be lost.
If you want to keep the ip_conntrack value permanently, then add the ip_conntrack_max value to  the /etc/sysctl.conf file. Open the file  /etc/sysctl.conf and add the following lines:-

# vi /etc/sysctl.conf

net.ipv4.ip_conntrack_max = CONNTRACK_MAX

Save the changes quit the editor. Execute the following command:

# sysctl -p

You can also do the same from the console  also.

# sysctl -w net.ipv4.ip_conntrack_max=CONNTRACK_MAX

# sysctl -p

To see the new value  execute the following command:-

# sysctl -a | grep conntrack

net.ipv4.ip_conntrack_max = 34576
net.ipv4.netfilter.ip_conntrack_tcp_max_retrans = 3
net.ipv4.netfilter.ip_conntrack_tcp_be_liberal = 0

For servers with APF you need to add the entries in the /etc/apf/conf.apf configuration file. Locate  the entry SYSCTL_CONNTRACK  in the  file /etc/apf/conf.apf and change the value of it. Restart APF once this is done. That’s it.

Another option is to add the following entry in the  /etc/rc.d/rc.local file.

# echo 400000 > /proc/sys/net/ipv4/ip_conntrack_max

July 23, 2011 Posted by | Tips & Tricks, Unix/Linux | , , , | Leave a comment

How to install RVsitebuilder in cPanel

RVsitebuilder requires the license to be purchased from http://www.rvsitebuilder.com, Then you can go for installation steps.

# cd /usr/local/cpanel/whostmgr/docroot/cgi/

# rm -rf rvsitebuilderinstaller.tar

# wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar

# tar -xvf rvsitebuilderinstaller.tar

# rm -rf rvsitebuilderinstaller.tar

# chmod 755 addon_rvsitebuilder.cgi

Now go to your WHM –> Plugins –> RVSiteBuilder Installer menu.

Click RVSiteBuilder Installer to begin the installation.

The installer may Promt you to set Mysql root password in case you have not set it before.

You may set it via WHM –> SQL services –> Mysql root password.

July 22, 2011 Posted by | cPanel | , , | 9 Comments

How to Auto Logout TimeSet

Ques : What is this auto logout?
Ans :  Auto logout is a concept to force user to logout from the remote server. If the open session to remote server is idle for a given time.

Ques :- So why actually we require auto logout?
Ans : As a security measure, This is good practice to set this, because its not a good idea/practice to keep open terminal idle.

Ques : How to accomplish this?
Ans : This can be achieved by two ways.

1. Open /etc/profile and append TMOUT variable. See my below example

# vi /etc/profile

add following line
————————————————————–
Export TMOUT=600 # 10 minutes in seconds
typeset -r TMOUT
————————————————————–

This will set time-out to 600 sec(ie 10mins) and I have given typeset -r which read-onlyand will not allow users to change this. Save the file and exit.

2. By creating /etc/profile.d/sessiontimout.sh file then keeping above mention entries in it.

# cd /etc/profile.d/

# touch sessiontimout.sh

# vi sessiontimout.sh

————————————————————–
Export TMOUT=600 # 10 minutes in seconds
typeset -r TMOUT
————————————————————–

Now save and exit the file, As this is a script we have to change the permissions too.

#chmod +x /etc/profile.d/sessiontimout.sh

July 21, 2011 Posted by | Unix/Linux | , , | Leave a comment

How to compile C program in linux

This article is for those guys who used to write a lot of programs under Windows.. and now have entered the Linux territory. You have probably heard a lot about Linux and how you can do some real good programming under Linux. But right now you cant even get the simplest of Hello World programs to compile. Here’s how you do it –

Procedure :

You can type you C program using any of the editors that are available under Linux such as vi or emacs or any other editor. Once you have written and saved your C program using any editor return to the prompt. An ls command should display your C program. It should have the .c extension. Now at the prompt type the following

# gcc -o firstprogram firstprogram.c

If your file is named firstprogram.c then type ‘-o firstprogram’ as the parameter to gcc. This is basically your suggested name for the executable file that gcc would create. In case you typed something like the following

# gcc firstprogram.c

You would be having a a.out in the same directory as the source C file. This is the default name of the executable that gcc creates. This would create problems when you compile many programs in one directory. So you override this with the -o option followed by the name of the executable

# gcc -o hello secondprogram.c

Would create an executable by the name hello for your source code named secondprogram.c Running the executable that you created is as simple as typing the following at the prompt.

# ./firstprogram “OR”

# ./hello

Or whatever you named your executable.

This is the absolute basics of compiling C programs under Linux. Watch out for the articles that shall explain multiple file program compilation using make and other such tools. Compiling a simple C program. What you need

Debian packages: gcc, cpp, binutils, libc-dev. C++ programs also require: g++, and libstdc++

RedHat packages: egcs, cpp, binutils, glibc-devel. C++ programs also require: egcs-c++, libstdc++. gcc and egcs

gcc is the standard Linux compiler, 2.7.2 is the latest stable version.

egcs is a breakaway development of gcc. This has since been renamed to gcc.

As of gcc-2.95, optimisation at level 2 (-O2) and higher includes an optimisation which breaks C code that does not adhere to the C standard. Such code occurs in the Linux kernel, and probably other places.

There are a couple of 272 packages for Debian potato (unstable) to get around this – gcc272, gcc++272. The program

/* hello.c */
#include <stdio.h>
int main(int argc, char *argv[])
{
if (argc > 1)
printf(“Greetings %s.n”, argv[1]);
else
printf(“Please tell me your name.n”);
return 0;
}

Compile using:
> gcc -Wall -o hello hello.c
Run with:
> ./hello Linus
Greetings Linus.

gcc options

-o –> output file name, (a.out if omitted)
-Wall –> display warnings for many possible errors
hello.c –> file to be compiled, can specify multiple .c files

The info pages (info gcc) has much more information about gcc. These are in the gcc-doc package.

July 20, 2011 Posted by | Tips & Tricks, Unix/Linux | , , | Leave a comment

How To Disable Control Panel in Windows Se7en

If you have a shared computer that your family and friends can access, you might not want them to mess around in the Control Panel, and luckily with a simple tweak you can disable it.

Disable Control Panel with Group Policy

Note: This process uses Local Group Policy Editor which is not available in Home versions of Windows 7. Skip down below for the registry hack version that works on Home editions as well.

1. First type gpedit.msc into the Search box in the Start menu and hit Enter.

2. When Local Group Policy Editor opens, navigate to User Configuration Administrative Templates then select Control Panel in the left Column. In the right column double-click onProhibit access to the Control Panel.

3. In the next window, select Enable, click OK, then close out of Local Group Policy Editor.

4. After the Control Panel is disabled, you’ll notice it’s no longer listed in the Start Menu.

5. If the user tries to type Control Panel into the Search box in the Start menu, they will get the following message indicating it’s restricted.

Disable Control Panel with a Registry Tweak

1. You can also tweak the Registry to disable Control Panel. This will work with all versions of Windows 7, Vista, and XP. Making changes in the Registry is not recommended for beginners and you should create a Restore Point, or backup the Registry before making any changes.

2. Type regedit into the Search box in the Start menu and hit Enter.

3. In Registry Editor navigate to

HKEY_CURRENT_USER –> Software –> Microsoft –> Windows –> Current Version –> Policies –> Explorer

Then right-click in the right pane and create a new DWORD (32-bit) Value.

4. Name the value NoControlPanel. Then right-click on the new Value and click Modify…

5. In the Value data field change the value to “1” then click OK. Close out of Registry Editor and restart the machine to complete the process.

6. When you get back from reboot, you’ll notice Control Panel is no longer listed in the Start menu.

7. If a user tries to access it by typing Control Panel into the Search box in the Start menu.

8. If you want to re-enable the Control Panel, go back into the Registry and change theNoControlPanel value back to “0” then reboot the computer.

9. This comes in handy if you have inexperienced users working on your machine and don’t want them messing with Control Panel settings.

July 19, 2011 Posted by | Windows | , | Leave a comment

How to uninstall MSDN Visual Studio

Next Step: Uninstall additional components

Additional components might have been installed on your computer by Visual Studio during setup. These components must be manually uninstalled using Add or Remove Programs in the order listed below.

Note: Uninstalling these components might affect other applications you have installed that rely on these components.

The following components might have been installed with Visual Studio:

1.    Microsoft MSDN 2005 Express Edition
2.    Microsoft Visual Studio 2005 Tools for Office Run-time Language Pack
3.    Microsoft Visual Studio 2005 Tools for Office Run-time
4.    Microsoft Device Emulator version 1.0
5.    Microsoft .NET Compact Framework 1.0
6.    Microsoft .NET Compact Framework 2.0
7.    Microsoft SQL Mobile 2005 Development Tools
8.    Microsoft Visual J# 2.0 Redistributable Package
9.    Microsoft Visual J# 2.0 Redistributable Language Pack
10.    Microsoft Document Explorer 2005
11.    Microsoft Document Explorer 2005 Language Pack
12.    Microsoft Data Access Components 2.8 SP1 (Windows 2000 only)

Uninstall is complete.

Next Step: Uninstall additional components

Additional components might have been installed on your computer by Visual Studio during setup. These components must be manually uninstalled using Add or Remove Programs in the order listed below.

Note: Uninstalling these components might affect other applications you have installed that rely on these components.

The following components might have been installed with Visual Studio:

1.    Microsoft MSDN 2005 Express Edition
2.    Microsoft Visual Studio 2005 Tools for Office Runtime Language Pack
3.    Microsoft Visual Studio 2005 Tools for Office Runtime
4.    Microsoft Device Emulator version 1.0
5.    Microsoft .NET Compact Framework 1.0
6.    Microsoft .NET Compact Framework 2.0
7.    Microsoft SQL Mobile 2005 Development Tools
8.    Microsoft Visual J# 2.0 Redistributable Package
9.    Microsoft Visual J# 2.0 Redistributable Language Pack
10.    Microsoft Document Explorer 2005
11.    Microsoft Document Explorer 2005 Language Pack
12.    Microsoft Data Access Components 2.8 SP1 (Only on Windows 2000)
13.    Microsoft Visual Studio 2005 64bit Prerequisites (Only on 64bit)
14.    Microsoft .NET Framework 2.0 SDK (x64) (Only on 64bit)
15.    Microsoft Visual Studio 2005 Remote Debugger (x64) (Only on 64bit)
16.    Microsoft Visual Studio 2005 Remote Debugger Light (x64) (Only on 64bit)

The following components might have been installed with SQL Server Express, and need to be removed in the order listed below:

Note: Uninstall of the SQL Express instances will leave behind the user-created databases, which can then be re-attached to the new instance.

17.    Microsoft SQL Server 2005 Express CTP
18.    Microsoft SQL Server 2005 Express Tools CTP
19.    Microsoft SQL Server Setup Support Files
20.    Microsoft SQL Native Client

The following components must be uninstalled last:

21.    MSXML 6.0 Parser and SDK (only on 32bit)
22.    MSXML 6.0 Parser and SDK x64 (Only on 64bit)
23.    Microsoft .NET Framework 2.0 Language Pack
24.    Microsoft .NET Framework 2.0

July 18, 2011 Posted by | Windows | , | Leave a comment

MSDN Visual Studio just in time debugger unhandled win32 exception occurred

Method – 1

1. Install Internet Explorer 7.0 instead of  Internet Explorer 6.0

2. Restart the PC.

Method – 2

1. Start –> Run –> regedit –> OK

2. After Visual Studio is installed on a server, the default behavior when an unhandled exception occurs is to show an Exception dialog that requires user intervention to either start Just-In-Time debugging or ignore the exception. This may be undesirable for unattended operation.

3. To configure the server to no longer show a dialog when an unhandled exception occurs (the default behavior prior to installing Visual Studio), use the registry editor to delete the following registry keys:

HKEY_LOCAL_MACHINE –> SOFTWARE –> Microsoft –> Windows NT –> CurrentVersion –> AeDebug –> Debugger

HKEY_LOCAL_MACHINE –> SOFTWARE –> Microsoft –> .NETFramework –> DbgManagedDebugger

detect this value and restart…….debugger error will not seen….

July 17, 2011 Posted by | Windows | | 1 Comment

How to configure Windows Server 2003 to display a message when users log on

You can configure Windows Server to display a message to users when they log on. You can use the message display functionality to personalize the logon process, provide news or information, and for other similar purposes. The message appears after the user presses CTRL+ALT+DEL and disappears after the user clicks OK. After the message disappears, the user can complete the logon process.

How to Use a Group Policy Setting to Turn On the Message Display

To configure Windows Server to display a message, you can either use a Group Policy setting to configure a domain, an organizational unit, or a computer or you can use Registry Editor to modify the registry on the target computers.

Configuring a Group Policy Setting for a Domain

1) On the domain controller, start the Active Directory Users and Computers snap-in.
2) Right-click the domain objects in the left pane, and then click Properties.
3) Click the Group Policy tab.
4) Click Default Domain Policy, and then click Edit.
5) Expand the following folder:

Configuration –> Windows Settings –> Security Settings –> Local Policies –> Security Options

6) In the right pane, double-click Policies, and then follow these steps to create the message text:

6.1) On a Windows Server 2003-based domain controller:
6.1.1) Click Interactive logon: Message title for users attempting to log on, and then type the text that you want to appear in the title bar of the message dialog box.
6.1.2) Click Interactive logon: Message text for users attempting to log on, and then type the text of the message that you want to appear in the message dialog box.

6.2) On a Windows 2000-based domain controller:
6.2.1) Click Message title for users attempting to log on, and then type the text that you want to appear in the title bar of the message dialog box.
6.2.2) Click Message text for users attempting to log on, and then type the text of the message that you want to appear in the message dialog box.

Configuring a Group Policy Setting for an Organizational Unit

1) On the domain controller, start the Active Directory Users and Computers snap-in.
2) Right-click the organizational units object in the left pane, and then click Properties.
3) Click the Group Policy tab, and then click New.
4) Type a name for the Group Policy object (GPO), and then press ENTER.
5) Click Edit.
6) Expand to the following folder:

Computer Configuration –> Windows Settings –> Security Settings –> Local Policies –> Security Options

7) In the right pane, double-click Policies, and then follow these steps to create the message text:

7.1) On a Windows Server 2003-based domain controller:
7.1.1) Click Interactive logon: Message title for users attempting to log on, and then type the text that you want to appear in the title bar of the message dialog box.
7.1.2) Click Interactive logon: Message text for users attempting to log on, and then type the text of the message that you want to appear in the message dialog box.

7.2) On a Windows 2000-based domain controller:
7.2.1) Click Message title for users attempting to log on, and then type the text that you want to appear in the title bar of the message dialog box.
7.2.2) Click Message text for users attempting to log on, and then type the text of the message that you want to appear in the message dialog box.

Configuring a Group Policy Setting for Windows XP

1) Click Start, click Control Panel, click Performance and Maintenance, and then click Administrative Tools.
2) Double-click Local Security Policy.
3) In the left pane, expand Local Policies, and then click Security Options.
4) In the right pane, click Interactive logon: Message title for users attempting to log on, and then type the text that you want to appear in the title bar of the message dialog box.
5) In the right pane, click Interactive logon: Message text for users attempting to log on, and then type the text of the message that you want to appear in the message dialog box.

Configuring the Group Policy Setting by Using Registry Editor

1) Click Start, click Run, type regedit, and then click OK.
2) Locate and then click the following registry key:

HKEY_LOCAL_MACHINE –> Software –> Microsoft –> Windows –> CurrentVersion –> policies –> system

3) In the right pane, double-click legalnoticecaption, and then type the text that you want to appear in the title bar of the message dialog box.
4) In the right pane, double-click legalnoticetext, and then type the text that you want to appear in the message dialog box.
5) Close Registry Editor.

Troubleshooting

If you use a Group Policy setting to configure Windows Server to display a message when users log on, the operating system writes the registry changes that are described in the preceding section. However, the same registry values appear in the following registry key:

HKEY_LOCAL_MACHINE –> Software –> Microsoft –> Windows NT –> CurrentVersion –> Winlogon

You can set the registry values described in the preceding section to this key to get the same results as if you configured a Group Policy setting. However, if you set the registry values in both registry keys, the values in the following registry key take precedence:

HKEY_LOCAL_MACHINE –> Software –> Microsoft –> Windows –> CurrentVersion –> policies –> system

Note If you do not use carriage returns in your display message, the maximum number of characters that you can add to the logon box is 512. If you add carriage returns, you can add up to 2048 characters (512 characters per line).

July 16, 2011 Posted by | Windows | , | Leave a comment

cPanel & WHM 11.30 released to STABLE tier With CentOS/RHEL 6 Support

Stable Version of cPanel-WHM 11.30.08 Release on 14 July and its compatible with RHEL/CentOS 6

http://docs.cpanel.net/twiki/bin/view/11_30/InstallationGuide/SystemRequirements

Supported Operating Systems
(i386 and x86-64 ONLY)
CentOS versions 4.x, 5.x, 6.x
Red Hat® Enterprise Linux® versions 4.x, 5.x, 6.x
FreeBSD®-RELEASE versions 7.3, 8.0, 8.1
Operating System cPanel End of Life Date
CentOS 3.x, RedHat Enterprise Linux 3.x April 30, 2011
CentOS 4.x, RedHat Enterprise Linux 4.x August 31, 2012
CentOS 5.x, RedHat Enterprise Linux 5.x September 30, 2014
CentOS 6.x, RedHat Enterprise Linux 6.x May 31, 2018
FreeBSD 7.3 September 30, 2012
FreeBSD 8.0 May 31, 2011
FreeBSD 8.1 January 31, 2013

Notable Changes Include:

* RHEL 6 and CentOS 6
* Support for MySQL® 5.1 (with new VIEW and TRIGGER Permissions) is now available.
* We’ve made chkservd more precise. It no longer monitors services that have been voluntarily shut down, so it produces fewer false warnings about services failing.
* DNSONLY updates are now available concurrent with cPanel & WHM updates
* The number of SQL databases displayed within cPanel now includes both MySQL and PostgreSQL databases
* We’ve optimized cpanellogd , making stats processing and bandwidth gathering much faster.
* InnoDB engine is now enabled by default on VPS systems

Also CentOS 6 Version is Release Now.

Download Link at India Based :- http://mirrors.hns.net.in/centos/6.0/isos/

July 15, 2011 Posted by | cPanel, MySQL, Security, Tips & Tricks, Unix/Linux | , , , | Leave a comment

Add Administrator Account to Log In Screen

When Windows XP is first installed it requires you to enter at least one name of a user who will access the computer. Once you create this name the default Administrator account vanishes. To access it, press Ctrl-Alt-Delete twice at the Welcome screen to retrieve the standard Windows 2000 logon dialog. Log on as Administrator from this point. To log the Administrator off, click [Start] [Log Off] and [Log Off] when the [Log Off Windows] selection box appears. The Log On screen with the available users will be displayed.

To Make the Administrator Account Always Visible on the Login Screen

Start –> Run –> Regedit –> Registry Key

HKEY_LOCALMACHINE –> SOFTWARE –> Microsoft –> Windows NT –> CurrentVersion –> Winlogon –> SpecialAccounts –> UserList –> Modify/Create the Value Data Type(s) and Value Name(s) as detailed below

Data Type: DWORD// Value Name: Administrator
Setting for Value Data: [0 = Disabled / 1 = Enabled]
Exit Registry and Reboot

July 14, 2011 Posted by | Windows | | Leave a comment

How to speed up Windows Se7en booting

Here are some tricks you can use to speed up the boot time of Windows 7. From the start menu, run msconfig and then select the Boot tab. You can then do the following:

1) Check the box next to No GUI boot.

2) Set the Timeout value to 0.

3) Click the Advanced Options… button. Then check the box next to Number of processors and underneath this, select the actual number of processors that your computer has.

Click OK then click OK again to save your changes. Time your boot speed before and after your making these changes, you’ll see it get faster.

July 13, 2011 Posted by | Windows | , | Leave a comment

How to speed up Windows Se7en Thumbnails

In Windows 7 the thumbnail previews that show up in the taskbar have about a 1/2 second delay before they are shown. If you want them to show up quicker, you can configure this with a registry edit.

1. Open the registry editor (Start –> Search, then type in regedit and hit Enter).

2. Once regedit is running, in the left pane navigate to HKEY_CURRENT_USER –> Control Panel –> Mouse.

3. In the right pane, double click on MouseHoverTime to change the value (which should be 400 by default).

4. Enter a new value. The value you enter is the delay, in milliseconds. Do not enter 0 as some people reported odd behavior when they do this. If you want the thumbnails to show up instantly, enter a value like ’10 or so.

Once your edit is done, close the registry editor. You’ll then need to reboot your machine for the changes to take effect.

July 12, 2011 Posted by | Windows | , | Leave a comment