Generate csr and install ssl certificate through shell prompt

Web Hosting Tutorials, Cpanel Hosting No Comments »

Generate csr through shell on cpanel server using following command

root@server1[/]# /scripts/gencsr

Type the information as per script requested. It will create hostingcomments.com.csr file under directory /usr/share/ssl/cert also create hostingcomments.com.key file under directory /usr/share/ssl/private

* Check following steps to install ssl certificate.

1) Go to directory /usr/share/ssl/certs
root@server1[/]# cd /usr/share/ssl/certs
Create .crt file and paste ssl certificate into .crt file as per below
root@server1 [/usr/share/ssl/certs]# vi hostingcomments.com.crt
paste ssl certificate and save the file.

2) Add hostingcomments.com.cabundle file under directory /usr/share/ssl/certs
root@server1 [/usr/share/ssl/certs]# vi hostingcomments.com.cabundle
paste .cabundle cert provided by client and save the file.
cabundle certificate not provided by client nt then skip the above step.

3) Go to directory /usr/share/ssl/private and check .key file is already present for domain name.

4) Now you have to add ssl virtual host entry in httpd.conf.
Sample ssl virtual host entry is as per below. You have to replace domain name and dedicated as per your domain name and ip.

<IfDefine SSL>
<VirtualHost 165.75.54.25:443>
ServerAlias hostingcomments.com
ServerAdmin webmaster@hostingcomments.com
DocumentRoot /home/username/public_html
BytesLog domlogs/.com-bytes_log
ServerName hostingcomments.com
User username
Group username
CustomLog /usr/local/apache/domlogs/hostingcomments.com combined
ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/
SSLEnable
SSLCertificateFile /usr/share/ssl/certs/hostingcomments.com.crt
SSLCertificateKeyFile /usr/share/ssl/private/hostingcomments.com.key
SSLCACertificateFile /usr/share/ssl/certs/hostingcomments.com.cabundle
SSLLogFile /usr/local/apache/domlogs/hostingcomments.com-ssl_data_log
SetEnvIf User-Agent “.*MSIE.*” nokeepalive ssl-unclean-shutdown
</VirtualHost>
</IfDefine>

5) If cabundle is not given by client then remove following line from your ssl virtual host entry
SSLCACertificateFile /usr/share/ssl/certs/hostingcomments.com.cabundle
6) Save httpd.conf file and restart the httpd service.
7) SSL certificate is installed and you are able to access domain with https://

Generate csr and install ssl certificate through whm

Web Hosting Tutorials, Cpanel Hosting No Comments »

* To generate csr go to

whm >> Web SSL/TLS >> Generate a SSL Certificate and Signing Request
Add the information as per requested
click on create button.
It will create .csr and .key file.

* To install ssl certificate go to

whm >> Web SSL/TLS >> Install a SSL Certificate and Setup the Domain
Paste the ssl certificate in 1st text box
press the Tab button on keyboard and domain name, user and ip automatically added, if not then add it manually.
Paste .key file in second text box
Paste .ca-bundle file in 3rd text box
Click on submit button it will install ssl certificate.

Creating an account in WHM

Web Hosting Tutorials, Cpanel Hosting No Comments »

The following quick guide covers the creation of hosting packages and accounts in WHM.Firstly, before proceeding it may be useful to set out the differences between a package and an account .

1] What is meant by PACKAGES in WHM ?
Packages are the hosting plans which you intend to sell to your clients.Accounts are where the client’s domain, username and password are set up after they purchase a package.

2] How to Log in into WHM ?
Access to WHM is achieved by logging into www.yourdomain.com/whm/ replacing yourdomain.com with the main domain of your hosting account. You may try using an IP to login to WHM as for eg: 192.0.0.1/WHM. Also you can use port number for WHM as 2086 www.yourdomain.com:2086.

3] How to set up Packages ?
The first step you should follow is to set up packages which you can then sell to your clients.

1. Click on the Add Packages link in the Packages menu.
2. Enter the name you wish to give the package and the maximum disk space the client can use in the Package Name and Quota fields.
3. Enter the maximum number of items allowed in the Max Ftp Accounts, Max Email Accounts, Max Email Lists, Max SQL Databases, Max Sub Domains, Max Park Domains, and Max Addon Domains fields.
4. Select if CGI access and FrontPage Extensions are allowed in the relevant tick boxes.
5. Enter the maximum bandwidth in megabytes allowed by the account in the Bandwidth Limit field.
6. Select a default CPanel Theme for the package.
7. Click on the default feature list for the account in the Feature List field.
8. Click on the Add button at the bottom of the screen.

4] How to set up New Accounts ?
1. Go to Account Functions and click on the option Create a New Account in the side panel.
2. Enter the Domain you wish to create a site (Without typing www.).
3. Press your tab key and the system will autocomplete the UserName. You may type a different username you wish to use.
4. Enter the Password you wish to use and press tab.
5. Ignoring the options to set each resource, from the drop down list select the Package you wish to assign to the domain.
6. Enter a contact email address for the account holder.
7. Click the ‘Create’ button at the bottom of the page.

You should then see a message confirming the creation of that account which will look similar to this for eg:

WWWAcct 10.1 (c) 1997-2006 cPanel, Inc.
===================================+
| New Account Info |
+===================================+
| Domain: yourdomain.com
| Ip: 192.0.0.2 (n)
| HasCgi: y
| UserName: yourdoma
| PassWord: test
| CpanelMod: x
| HomeRoot: /home
| Quota: 50 Meg
| NameServer1: ns1.domain.com
| NameServer2: ns2.domain.com
| NameServer3:
| NameServer4:
| Contact Email:
+===================================+
User yourdoma added
Changing password for yourdoma
Password for yourdoma has been changed
Account Creation Complete!!!
Ftp Password Files synced Vhost Passwords synced
This list will display the username and password which you will need to provide your client with so that they can access their account cpanel which is located at www.clientdomain.com/cpanel/ It will also confirm the nameservers which the domain will need to be pointed at in order that it points at the client account on the server.

Install Image-Magick

Web Hosting Tutorials, Cpanel Hosting No Comments »

* You are able to install imagemagick perl module through whm >> software >> Install perl module.

Enter the module name in check box click on search it will display module name.
Click on module name to install.
* You are able to install imagemagick through cpanel script. Please check following script.
# /scripts/installimagemagick
* You are also able to install imagemagick manually. Follow the following steps to install imagemagick.
Download the imagemagick from ftp://ftp.imagemagick.org/pub/ImageMagick/
# wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.2.6-8.tar.gz
# tar -xvzf ImageMagick-6.2.6-8.tar.gz
# cd imagemagick-6.2
# ./configure
# make
# make install

I have created database through cpanel but unable to access database remotely

Web Hosting Tutorials, Cpanel Hosting No Comments »

To Solve this problem …

Go to Cpanel >> MySQL Databases >> Access Hosts:

Add IP of the machine from which you want to access your database or just add %.

At remote connection you have to set Hostname = localhost/ server name.

Password protect directory error “ MySQL user springs not found: /agora/protected/”

Web Hosting Tutorials, Cpanel Hosting No Comments »

Client is not able to login to password protect directory. Apache error logs display the error “MySQL user springs not found”

Password protect directory uses .htpasswd file for username and password details but error logs showing mysql user error means two type of authentication modules are configure in your apache web server. Mod_auth_passthrough is already configure in apache later mod_auth_mysql is also installed on server due to which authentication take user as a mysql user. To solve the issue you have to add the following code in .htaccess

AuthMySQLEnable Off

What is Mysql

Web Hosting Tutorials No Comments »

Mysql is an open base relational database management system. MySQL allows you to quickly access edit and add to the database. You can create many tables under database to store actual data. Mysql provides different types of storage engines such as MyISAM Storage Engine, InnoDB Storage Engine, MERGE Storage Engine, MEMORY (HEAP) Storage Engine etc. Storage engine acts as a handler for different table types. Now introduces enterprise edition which is first paid version of mysql.

What is Exim

Web Hosting Tutorials No Comments »

Exim is a mail transfer agent (MTA) that can be run as an alternative to Sendmail. Exim mail transfer agent receives messages from different sources and to deliver them to their destinations. It handles local deliveries to mailbox files or to pipes attached to commands, also remote SMTP deliveries to other hosts. Exim supports only domain name based addressing. Exim has adopted send mail command interface. With exim you are able to configure additional features just like spam protection, rbl listing, also able set how your mail queue works, local deliveries on server and so many other features.

What is Apache

Web Hosting Tutorials No Comments »

Apache is most widely used http web server it handles web requests and serves the web pages. Apache runs on linux, windows, netscape and on various unix versions. Apache work with different programming languages; by adding the additional modules in apache web server you can speeds up the execution of components for various languages. It’s possible to create custom builds of Apache that include only the necessary modules, reducing server size and increasing security.

Apache have additional features like cgi, ssl and you are also able to add security modules like mod_security to secure your web servers. Apache 2.0 is the latest version of apache.

IPTables : Block all incoming connection at port 22 (SSH)

Web Hosting Tutorials, Cpanel Hosting No Comments »

Use of iptables to block all incoming connection at port 22  (SSH) …

1. iptables -A INPUT -p tcp -s 0/0 –sport 513:65535 -d server-ip –dport 22 -m state –state NEW,ESTABLISHED -j DROP

2. iptables -A OUTPUT -p tcp -s server-ip –sport 22 -d 0/0 –dport 513:65535 -m state –state ESTABLISHED -j DROP


WordPress Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login