Archive for April 2012

FTP over SSL setup in cPanel

As we know that SFTP can only be used to Secure FTP connnections for only cPanel users and not for regular FTP  accounts but for regular FTP accounts you can setup FTP over SSL/TLS

You can follow the below simple steps to  the same ::

 

Enable TLS Encryption support from WHM
WHM >> Main >> Service Configuration >> FTP Server Configuration

and set TLS Encryption Support to optional.

Once done that you can access FTP over  SSL by  using server type as ::  FTPES stands for FTP over explicit TLS/SSL

You can use the below settings to access FTP over SSL

 

Host  :: domain.com or IP

User  :: FTP user name

Pass  :: FTP password

Port  :: 21

Server Type ::  ftpes

example ::

fptes://domain.com

 

That’s all .

 

Enable httpd fullstatus to Monitor Apache Status

Apache has built in utilities that help’s  a  administrator to monitor the performance and activity of their web server. The Apache Status is one such tool that allows real time monitoring of Apache connections and resource usage.

The Apache Status provides  information that will help in performance monitoring and Apache tuning.

The Apache module mod_status  is required to enable apache status . Mod_status will provide the following information to the viewer:

 

 The number of worker serving requests
 The number of idle worker
 The time the server was started/restarted and the time it has been running.

The status module can also be set to an extended mode, which will display additional information:

 

The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker
A total number of accesses and byte count served
The current CPU used in % by each worker and in total by Apache
The current hosts and requests being processed

Enable status in Apache

By  default mod_status is already installed and enabled in apache on  Centos and Redhat Linux, however to access the information, the Apache configuration  must be updated to set the handler for the request.

To set the handler, open the  Apache config file /etc/httpd/conf/httpd.conf  and search for the following block:

#<Location /server-status> 
#SetHandler server-status 
#Order deny,allow 
#Deny from all 
#Allow from .example.com #</Location>

Un-Comment the  above lines  ::

<Location /server-status>
 SetHandler server-status
 Order deny,allow
 Deny from all
 Allow from 127.0.0.1
 </Location>

Save  the changes and restart  the apache service

Enable Extended Status in Apache

Open  the httpd.conf file and search  for the line

 

#ExtendedStatus On 

Just uncomment the above line as ::

 

ExtendedStatus On 

Note :: Add the line, if not present

and finally restart  the apache service.

 

That’s all you are done.