Archive

Archive for December, 2007

cPanel - Logging on for the first time

December 31st, 2007

Warning: file_get_contents(http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=1TJ8QTQ6ZFCVAJ3X1T02&AssociateTag=ii0c3-20&Operation=ItemSearch&SearchIndex=Books&ResponseGroup=Small,Images&Keywords=account) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/manusia2/public_html/wp-content/plugins/amazonfeed/php/amazonfeed.class.php on line 271

Logging on for the first time

Overview

When you log on to WebHost Manager for the first time you need to set up the basic settings on your server. After you have completed these initial steps you can log into WebHost Manager normally. Refer to Logging on for more information.

Steps

1 Enter the address of your WebHost Manager in your web browser. The address needs to be in the form of http://www.yourdomain.com:2086/ or https://www.yourdomain.com:2087/.

2 Enter your user name (root) and password (the root password of the server) in the User Name and Password fields.

3 Click on OK.

4 Click on Next in the first page.

5 Read the legal agreement and click on the I Agree or I Disagree button.

6 Enter the IP address you wish to use to set up virtual hosts in the Main Shared Virtual Host IP field. This IP address is the IP address that all accounts will be created on by default (unless they are accounts with dedicated IP addresses).

NOTE: This IP address is used for shared IP domains. You can add other IP addresses to the server for dedicated IP domains but should place all shared IP domains on this IP address.

7 Enter the server administrator’s contact details in the Server Contact E-Mail Address and Server Contact Pager Address fields.

8 Enter the name of the default cPanel theme that you want to use in the Default cPanel Theme field. This theme will appear for all newly created accounts whose package does not specify a theme. Refer to Themes for more information about themes.

9 If you are using a device other than eth0 as your primary connection to the internet, please enter it in the Alternate Main Ethernet Device field.

10 Enter the default home directory where new users’ accounts will be created and the prefix that matches other user partitions in the Default Home Directory and Home Directory Prefix fields. If you enter a prefix such as home, all directories with home in them will be used to store accounts. This means that entering home as your home directory prefix will create new accounts in /home /home2 /usr/home /home3 or any other directory with home in the name even if your default home directory is set to /home. For this reason, you should never use a directory with the word home in it to store backups.

11 Enter the current hostname of your server in the Hostname field.

NOTE: Your hostname should be a Fully Qualified Domain Name that will not be used elsewhere on the server. You should never set your hostname to an name that is already used (www, ftp, mail, etc) or to the name of an account on the server (www.domain.com). This means that your hostname should never be a domain name and especially not the name of your domain!!

12 Enter the name of the type of Apache logs that you want to receive. Two options are available:

combined - All information is logged, including referrers, user agents, and requested files.

access - Only information about requested files is logged.

NOTE: These log files are logs of the access to files and sites on your server. The more information included in the logs will give you more information about who is accessing the server. Beware though, the more you need to log, the more CPU power it will take to create and review the logs.

13 Enter the minimum user ID value to be assigned when creating new accounts in the Minimum UID field. Usually, values below 500 are reserved for system users and should not be used. We do not recommend setting the Minimum UID below 500 for this reason.

NOTE: Every user on the system is assigned a user ID value. These numbers go along with their username as a way for the system to identify the user.

14 Enter up to four nameserver names in the Primary Nameserver, Secondary Nameserver, Tertiary Nameserver, and Fourth Nameserver fields. The Primary Nameserver and Secondary Nameserver fields are mandatory.

NOTE: These nameservers need to be registered with a registrar before they will work. If possible, your nameservers should not be on this server. Using a nameserver on the server as well as external nameservers will help in the resolution of the domains on your server. The more diverse your nameservers are, the less chance your DNS information will be unavailable.

15 Choose whether or not to create an Apache script alias for /cgi-bin/ to /usr/local/apache/cgi-bin/. y = Yes, n = no. This alias means that Apache will treat any file in a /cgi-bin/ directory as a cgi script.

16 Enter the AIM (AOL Instant Messenger) username and password AIM Password and AIM Username fields.

17 Enter your ICQ user identification number, ICD ID and ICQ password in the Server Contact ICQ, ICQ ID, and ICQ Password fields.

18 Enter the IP address of the master nameserver in the Master Nameserver field, if required.

WARNING: This will turn your server into a slave server if this option is enabled. It is advisable to establish a key trust relationship with the master nameserver after enabling this option. Refer to Establishing a trust relationship for more information.

19 Enter the IP address of the master cluster server in the Master Cluster Server if this server belongs to a server cluster.

20 Click on Save.

21 Click on Finish.

22 Click on Continue.

Troubleshooting

You can change your initial server settings at any time. Refer to Editing your server setup for more information.

Tags: account, Apache, backup, cPanel, cPanel, domain, domain name, ftp, manage, password

Related posts

cPanel , , , , , , , ,

cPanel Installation

December 31st, 2007

Installation

cPanel and WHM uses comprehensive installers that take most of the effort out of installing the complex cPanel and WHM software package. You will need the following to install cPanel and WHM:

  • A basic server install of one of the supported operating systems listed at http://www.cpanel.net/products/cPanelandWHM/linux/sys_requirements.htm

NOTE: You can obtain a license from an authorized cPanel distributor or partner. For a list of distributors, please see http://www.cpanel.net/partners/index.html. A free 15 day  test license can be obtained at http://www.cpanel.net/store.

Before you begin:

cPanel and WHM should only be installed on a blank server with a fresh operating system install. No data should be on the server that you wish to keep. This includes but is not limited to web pages, configuration files, scripts, user accounts. The installer makes many changes to your system including downloading needed packages and configuring them for you. Because of the considerable amount of changes that cPanel will make to the system, the suggested method of uninstalling the cPanel and WHM software is to reformat the server.

  • A fresh install with minimal installation options is recommended. Development tools libraries (gcc, C, etc) and wget are required. cPanel and WHM will install Apache, MySQL, exim, PHP, etc. You do not need to install any of these services beforehand.

  • You should ensure your package management (or ports) system is properly configured (yum, apt-get, up2date, ports).

  • You also need to make sure that /etc/resolv.conf contains valid nameservers that allow you to resolve domains properly. To test this, try :

dig domain.com@serverip

(replace domain.com with the name of a well known domain and replace serverip with the ip address of a nameserver in /etc/resolv.conf)

  • The hostname of this server should be a Fully Qualified Domain Name that will not be used elsewhere on the server. You should never set your hostname to an name that is already used (www, ftp, mail, etc) or to the name of an account on the server (www.domain.com). This means that your hostname should never be a domain name and especially not the name of your domain!!
    If you would like cPanel Inc to do your installation for you and you have obtained a license, you may request an installation at http://support.cpanel.net/. Make sure to provide your IP, the root pass of your server, and the operating system installed on the server. We do not charge for installations.

The following partition scheme is recommended:

NOTE: Different partition schemes are suitable for different types of hosting. Some servers may require space to be allocated in different ways than others. This recommended scheme is an attempt to provide enough space for many different types of hosting but it is no substitution for real world experience. This partition scheme may need to be varied to suit the needs of your specific setup.

/boot   35 Megabytes (MB)

/usr     8192+ MB (8192MB if you have an 80GB drive, 10240MB for a 100GB drive,  20480MB for a 200GB drive, etc.)

/var     2500+ MB

/tmp    512+ MB

/           2048 MB

/home  grow to fill disk

swap    2x memory size

NOTE: The "/tmp" directory is a special directory that is required to be writeable by all users and processes on the system. In general, directories that are writable by all users and processes are cause for security concern, however this directory is a special case. To minimize any security impact as a result of having an unsecured "/tmp" directory, it is recommended that "/tmp" be mounted on a seperate partition in order to take advantage of the "no exec" option available under both Linux and FreeBSD. If a separate mount point exists for "/tmp", then the installer will verify and potentially remount the partition with the "no exec" option. Additionally, the installer will ensure that the sticky bit is set on the directory and that the other permissions are correct. If "/tmp" is not mounted on a separate partition, the installer will create a file system disk image of 512 Mb and mount "/tmp" on the newly created disk image with the "no exec" directive. Under most circumstances, 512 Mb is sufficient for the "/tmp" partition; however, your system may require additional space. It is therefore recommended that you include a separate partition for the "/tmp" mount point (sized according to your size specification) prior to installing cPanel.

Minimum CPU/RAM/HD:

P266

256 Meg of ram

20 GB of space (Partition sizes required to host multiple account. Less than 500MB is needed for new files)

To install cPanel and WHM

Make sure you are logged in as root.

# cd /home

# wget http://layer1.cpanel.net/latest

# sh latest

The installer has now started, and will take between 30 and 60 minutes depending on your machine. If you are asked any questions press the Enter key, or q if there is no default. After the installation is complete, you need to setup WebHost Manager - refer to Logging on for the First Time for more information.

NOTE: You must be on a stable internet connect to install cPanel. If your shell session disconnects during the installation of cPanel, the installation will be aborted. You can restart the installation by using "sh latest" again however, we recommend reformatting your machine and starting over to ensure there are no problems with the installation.

Logging On

Please refer to Logging on for the first time or Logging on to start using your interface.

Tags: account, Apache, bsd, cPanel, cPanel, domain, domain name, freebsd, ftp, manage, mysql, php, software, WHM

Related posts

cPanel , , , , , , , , , , , ,