Archive

Archive for the ‘cPanel Help’ Category

Windows Hosting control panel from Cpanel

July 19th, 2010

Finally we see feature rich windows hosting control panel from Cpanel Inc.
The below excerpts from their web site.
========
The control panel for Windows Server
It’s here! We’ve been working hard to develop the world’s only Windows web hosting control panel worthy of carrying the cPanel logo — and now it’s arrived.

The simple yet powerful Enkompass interface offers a rich assortment of features that can save your business time and money.

Top Business Features

* Reduce software licensing costs
Quickly add servers as your business grows, paying only for the licenses you need on each type of server.
* Gain access to 30% more market share
According to Netcraft, Microsoft IIS7 is is one of the two leading web server technologies, installed on over 60,000,000 servers worldwide.
* Reduce support costs
Single sign-on provides easier management, greater time savings, and the ability to add new resources.
* Accurate & fast reporting
Easily run reports on bandwidth utilization, disk space utilization, active accounts, resource availability and more, for instant access to valuable decision-making tools.
* Offer premium hosting plans
As a commercial technology, Windows® web hosting can command premium prices. This provides you the opportunity to increase your bottom line.

For more information visit http://www.cpanel.net/windows/overview.html

cPanel Help ,

Secure Your Server in ten steps

March 3rd, 2009

So many people are getting their own dedicated servers but are completely clueless about security. Usually they leave it up to the  company where they purchase it or hire someone. That’s fine but   make sure you have these 10 items covered.

1) Use a Firewall

Make absolutely sure that your server has a firewall running all the time. A firewall is like a screen door to your porch. It blocks out flies, rodents and other pests but you can still walk out and use your BBQ. If someone ever were to get into your server, which is very very likely, the first thing they’re going to try and do is upload something to start a daemon or their own service like an IRC server or use a port to launch attacks to other systems. A firewall with egress and ingress protection can stop both incoming and outgoing attacks even when you’re not aware of it. We recommend using APF on Linux systems or TinyFirewall on Windows Servers. These are software firewalls so there’s no extra monthly cost like a hardware firewall. For very busy systems a hardware firewall is recommended so it takes the burden off your system CPU/RAM and resources to do the work.

Know what ports are open and why, know how to block and unblock an IP. These are basic things you need to understand in the daily security of your system. If someone from an IP begins a brute force attack you want to know how to stop them, right away.

2) Update your kernel and OS

Make sure your server is using current, updated software. Use the stable version which has been tested more than any beta and update as soon as possible. An old kernel can lead to an easy target for your server. If you’re not sure then ask your provider for the latest update.

3) Monitor Logs

Do you know what logs record which activities? How often are they updated and rotated?
LogWatch is a great tool to email you the daily reports of your systems activity of anything it determines unusual, EG repeated failed logins. Besides using this you should check your logs manually to see what’s up. Tail –f /var/log/messages and view your Apache logs as well.

4) Backups
I still never understand why no one backs up their data yet you spend hundreds of hours working on your website or application then you absolutely must have a second hard drive for backups or use a remote back up system or a combination of these.

5) Limit Access to a Minimum

Do not give users more access than the absolute minimum they require. Never give them shell access, restrict file access to a bare minimum and leave other services turned off by default until specifically requested and you determine that its safe to do so.

6) Lock down PHP and use Mod_Security with Apache

PHP is actually a large security risk but there are a few things to do to help lock it down. CGI has Suexec,which helps runs proccesess as the user and PHP has something similar called PHPSuexec but there are a few downfalls. You should also use open_base directory protection, have safe_mode on system wide, turn off register_globals, enable_dl and allow_url_open to help lock things down further.
You can use server wide protection with mod_security, a web server filter that can watch all requests to see if they match a rule and react by logging, denying the request or other programs. I highly recommend this on Apache based servers and can be extremely useful in blocking attacks and stopping hackers before they do any damage. Mod_Security Installation

7) Lock /tmp /var/tmp and /dev/shm partitions

On Linux each partition can have certain access restrictions. Since /tmp /var/tmp and /dev/shm are world writable directories they’re often home to uploads, sessions storage and hacker executables. Since anyone can read-write-excute anything from these directories it becomes a major security concern. With /etc/fstab however you can limit what can be done in these locations. If you see defaults beside the /tmp line remove it and replace it with noexec,nosuid this will stop any executables from being allowed to run. Do the same for /dev/shm and make /var/tmp and shortcut (symbolic link) to /tmp.

8) Intrusion Detection System (IDS)

An intrusion detection system or IDS is like a burglar alarm on your server. It keeps a record of which files were changed when and alerts you of anything new or altered. This is critical because hackers usually try to replace binary applications like ps, top, netstat and others. This means when you run this new version of ps or top to see processes running they make it so it actually HIDES their hacker software, even though its running it won’t show up. Some IDS systems include TripWire, Snort and AIDE. Chkrootkit installation

9) Review Processes Running and Remove Extra Software

You can’t protect a system if you don’t know what’s on it. If a hacker adds an extra process that you see in PS but you wouldn’t notice if you didn’t know what should be there usually. Know what runs on your system and why which user. How does Perl or Apache run, under which user? You can check your processes usually with top or ps auxfww which gives you a tree view. Check these every time you login to your server.

10) Keep an Eye on the Servers Performance

Know what speed your server is running at and how much bandwidth it uses on a daily basis. If an attacker compromises your system and you don’t know you’ll probably notice the system responding slowly or using a lot of bandwidth. If you don’t know what your system is usually like how will you notice something out of the ordinary. This is all common sense but some people never bother to check until they ask their provider after a system has been slow for 2 weeks

Knowing your system makes you one step ahead of an intruder. Check it often and ask an expert if you’re ever over your head. There are MANY other things you can and should do to ensure your server is secure but these are a few basics that everyone should use.

REF : whmdestek.com forums.

cPanel Help

Can’t see Quota modification option in cpanel for ftp account

January 1st, 2009

Make sure that you are running proftp or pure-ftp, since in proftp there is no option for quota modification in cpanel.

If you want this option please change it to pure-ftpd, you can do this from WHM - service configuration - Ftp configuration.

cPanel Help

Problem with mysql after upgrade to 5.0

January 1st, 2009

If the mysql is not starting after mysql upgrade from 4.1 to 5.0, please do the following to get it work.

open my.cnf

vi /etc/my.cnf

comment or remove the line

basedir=/var/lib/

save and exit

service mysql start

That’s it.

cPanel Help

cPanel File Permissions

December 19th, 2008

If you unable to change the File permissions using cPanel …
Login to the ssh


open usr/local/cpanel/base/frontend/x/files/changeperm.html
Find the line with <cpanelFilema …..
Put a space between cpanel & Fileman
Save the file . ..

cPanel Help

Required properties to connect Database from scripts on cpanel servers

December 18th, 2008

The most important properties required to connect DB from scripts ( PHP,CGI or Perl ) are

database server : localhost
database name : cpanelusername_testdb
database username : cpanelusername_dbuser
database user password : *****

cPanel Help

Ports that can be opened in cPanel Servers

December 18th, 2008

Ports that can/must be open to run cPanel behind a firewall:

port service protocol direction

20  ftp tcp inbound/outbound
21 ftp tcp,udp inbound/outbound
22 ssh tcp inbound
25 smtp tcp inbound/outbound
26 smtp tcp inbound/outbound
37 rdate tcp outbound
43 whois tcp outbound
53 DNS tcp/udp inbound/outbound
(inbound is only needed if you run your own public DNS server)
80 http tcp inbound/outbound
110 pop3 tcp inbound
113 ident tcp outbound
143 imap4 tcp inbound
443 https tcp inbound
465 smtp tls/ssl tcp/udp inbound/outbound
873 rsync tcp/udp outbound
993 imap4 ssl tcp inbound
995 pop3 ssl tcp inbound
2082 cpanel tcp inbound
2083 cpanel ssl tcp inbound
2086 whm tcp inbound
2087 whm ssl tcp inbound
2089 cp licence tcp outbound
2095 Webmail tcp inbound
2096 Webmail SSL tcp inbound
3306 mysql tcp (only if you need to connect remotely)
6666 chat tcp inbound

cPanel Help

How to upgrade mysql version through cpanel ?

December 18th, 2008

For expample upgrade mysql 4.0 to 4.1

To upgrade the mysql server from 4.0 to 4.1, we need to follow the following procedure.

First take complete backup of the current databases that are there in the /var/lib/mysql using the “cp -varf” command.

cp -aprf /var/lib/mysql /var/lib/mysql.backup

Also take backup of the /var/lib/mysql/mysql database into the sql file using the command mysqldump and keep it safely as it is required to revert back from 4.1 to 4.0 incase.

mysqldump mysql > mysql.sql

Next open the WHM and go to MySQL section under the Tweak Settings page. Click on the 4.1 option and also make sure to select the check box “Use old style (4.0) passwords with mySQL 4.1″ and then scroll down and click on the save box.

With the above steps we are ready to upgrade from 4.0 to 4.1.

Next open the shell and then run the command

/scripts/mysqlup –force

and wait for it to finish. Once it is finished, run easyapache and make sure to take backup of httpd.conf and php.ini files before running easyapache.

You should not get any problem regarding the databses. If you see any high load being generated and php is taking more resources it should the php.ini file issue but not the mysql upgrade issue.

cPanel Help

Download Cpanel

December 16th, 2008

How to download cpanel and install from cpanel.net ?

cPanel can be installed/upgraded in simple steps.  To download cpanel and install use below links.

Layer 1

The Layer1 area contains the universal cPanel®/WHM™ installation package as well as the latest stable Apache/PHP releases so that you can easily upgrade. To download any of the packages on layer1, simply right click on the package you require & select Copy Shortcut, then on the command line in a root shell issue “cd /home” and then “wget paste_the_shortcut_you_copied_here”.

Packages ending in .sea can be executed with “sh package_name”; while packages ending in .tar.gz will require you to uncompress & untar them with “tar zxf package_name”; then you will have to move into the directory and execute the install script.

Note: Be sure to heed to the unsupported & alpha/beta warnings. Support will not be given for the packages that display these warnings.

Layer 2

The Layer2 area lists the versions of each cPanel and WHM installation that will be installed by the latest automatic updates. It is recommended that you update your cPanel/WHM installation through WHM or by executing “/scripts/upcp”; in a root shell. STABLE & RELEASE are recommended for production systems while EDGE & BETA should only be used in labs on test servers.

Cpanel Basics, cPanel Help, cPanel Tutorials ,

Unable to login into Horde

December 13th, 2008

If customers are unable to login into Horde. When they click on Horde icon then they are greeted with a screen saying Welcome to Horde and it asks to select a Language and click on Login button…..but after pressing the Login button it comes back to the same screen and nothing happens.

Then SSH to server as root and try the follwoing commands:

/scripts/fullhordereset
/scripts/restartsrv_cppop

If still the problem exists, then try repairing the horde db as that can be corrupted as given below from shell.

Goto mysql prompt:

mysql> use horde
mysql>repair table horde_sessionhandler;

Then
/scripts/restartsrv_cppop

You can check the result by login to Horde

cPanel Help