Archive for October 2010

How to enable SSL3.0 on cpanel server

SSL stands for Secure Sockets Layer that provide’s security for communications over networks such as the Internet.
SSL encrypt’s the segments of network connections at the Application Layer to ensure the secure end-to-end transit at the Transport Layer.
In other words SSL is used for secure transactions and for secure transactions you need to enable SSL3.0 on your server.
You can enable SSL3.0 on your server by following the below steps :

Edit the SSL configuration file

[email protected] [#] vi /usr/local/apache/conf/ssl.conf

And then replace the line :



SSLProtocol -SSLv2 +SSLv3 +TLSv1

Then restart the Apache service

[email protected][#] /etc/init.d/httpd restart

And to test if SSLv3 is enable on the server run the below command :

[email protected][#] openssl s_client -connect hostname:443


[email protected][#] cat /usr/local/apache/conf/httpd.conf | grep -i sslciphersuite

It will show the output as :

# SSLCipherSuite can be set in WHM under ‘Apache Global Configuration’

And if you want to enable it through WHM then you can enable it from WHM >> Service Configuration >> Apache Configuration >> Global Configuration

and add the code at “SSLCipherSuite” section.


and then click on the “save” button and then click on the “Rebuild Configuration And Restart Apache” button.

That’s all you are done.

How To Enable PHP MSSQL Extension on cpanel Linux Server

If you want to enable the PHP-MSSQL extension on a CPanel linux server then follow the below steps :

Module’s Required to be installed :

1) unixODBC :

UnixODBC is an open source project that implements the ODBC API.

ODBC is an open source project for providing application developers with a predictable API with which to access Data Sources. Data Sources include SQL Servers and any Data Source with an ODBC Driver.

2) freeTDS :

FreeTDS is a free application programming library, a re-implementation of the Tabular Data Stream protocol.

FreeTDS comes with a low level library (the TDS layer) along with a number of APIs (Application Programming Interfaces). The APIs are DB-Lib, CT-Lib, and ODBC.

3) PHP

PHP-MSSQL is used to create the programs or applications with the MsSql database functionality.

Installation :

Install unixODBC package

[email protected][#] wget
[email protected][#] tar -zxf unixODBC-2.3.0.tar.gz
[email protected][#] cd unixODBC-2.3.0
[email protected][#] ./configure -prefix=/usr/local -enable-gui=no
[email protected][#] make
[email protected][#] make install

Install freeTDS package

You can install freeTDS either via yum or from a tar.gz file

Installation via yum

[email protected][#] yum install freetds*

Installation via tar.gz file

[email protected][#] wget
[email protected][#] tar -xvzf freetds-stable.tgz
[email protected][#] cd freetds-0.82/
[email protected][#] ./configure -with-tdsver=8.0 -with-unixODBC=/usr/local
[email protected][#] make
[email protected][#] make install

Normally you don’t need to configure it, as it automatically takes the default structure, but still you can configure it as

Add entry in freetds.conf
host = MyServerHOSTNAME
port = 1433
tds version = 8.0

Now configure the

[email protected][#] cd /home/cpeasyapache/src/php-5.2.13/ext/mssql
[email protected][#] phpize
[email protected][#] ./configure
[email protected][#] make
[email protected][#] make install

Then need to Enable the mssql extension in the php.ini

Usually it automatically enables the extension but if not then you can enable it manually as :

[email protected][#] echo “” >> /usr/local/lib/php.ini

Finally restart the Apache service

[email protected][#] /etc/init.d/httpd restart

That’s all you are done.

How to reset ssh port through WHM

If you mess up with the SSH setting’s on your server and lock yourself out of ssh then you can reset the SSH configuration settings from WHM by following the below steps :

Login to your WHM on a non secure port that is : 2086
for example : http://serverip:2086

And then browse the URL to reset the SSH configuration settings :

for ex :

That’s all you are done.