Services Plans Sign Up How we work Affiliates Contact us

June 22, 2011

How to check the server is Suexec

Filed under: Server Security — admin @ 1:26 am

Login into you server with the root login details and run following command
[root@server]# /usr/local/cpanel/bin/rebuild_phpconf –current

If server is Suexec then result would look like
==============
DEFAULT PHP: 5
PHP4 SAPI: suphp
PHP5 SAPI: suphp
SUEXEC: enabled
==============
If you are not sure about Shell then you can also check the SuExec is enabled or not from your WHM. Login into your WHM and in the menu find Configure PHP and SuExec

Check the drop down box for “PHP 4/5 Handler” – and if beside that it says “suPHP” – then the sever is SuExec enabled.

If you don’t have server root login details or WHM access, then you can create a php file under your account from cPanel >> File Manager and change the permissions on that file to 777 and open it in a browser. If it gives 500 Internal Server Error, then most probably running suPHP.

As well as you can also create the phpinfo page under your account from your cPanel >> File manager For ex. phpinfo.php with the following code

After creating phpinfo.php page browse it http://yourdomainname.com/phpinfo.php and if it shows “ “Server API = Apache then server is not running PHP in Suexec mode” and if Server API = CGI the server is running PHP in Suexec mode.

AddThis Social Bookmark Button

April 27, 2011

How to disable redirection to SSL while accessing WHM,cPanel,Webmail

Filed under: Server Security — admin @ 11:49 pm

If you want to disable redirection to SSL connection while accessing WHM, cPanel, Webmail, please follows these steps.
Login to WHM >> Tweak Setting >> Uncheck the following options under Redirection.
Always redirect users to the ssl/tls ports when visiting /cpanel, /webmail, etc.
Also you have to uncheck the following option under Security in Tweak Settings.
Require SSL for all remote logins to cPanel, WHM and Webmail. This setting is recommended.
Also you can disable those options from the shell.
SSH to the server as root.
Open /var/cpanel/cpanel.config and set the following options to 0 (zero).
alwaysredirecttossl
requiressl
—-
alwaysredirecttossl=0
requiressl=0
—–
Save the file and exit.

AddThis Social Bookmark Button

April 5, 2011

Server Level PCI Compliance & Procedures

Filed under: Server Security — admin @ 6:00 am

PCI DSS (Payment Card Industry Data Security Standards) are the official security standards created by the PCI Security Standard Council to reduce payment card frauds. It provides elaborate and comprehensive standards to enhance payment card data security. The core purpose of PCI DSS this is to create as secure of an environment as possible for users to process their credit cards. To adhere by PCI DSS, service providers and merchants who sell products over the web are required to have a periodic PCI Security Scans that are usually defined by the credit card companies. PCI Security Scans are initiated over the Internet by an Approved Scanning Vendor (ASV). These scans pinpoint the vulnerabilities and misconfiguration of websites, servers, applications and IT infrastructures.

In most cases the ASV consults with the customer to determine if the active IP addresses are within the scope. There are two segmentation methods that can be used to reduce the scope of the PCI Security Scan.

 • Having a physical segmentation between the segment handling cardholder data and other segments can help ensure PCI Security.

• Employing appropriate logical segmentation where traffic is prohibited between the segment or network handling cardholder data and other networks or segments

The final responsibility for defining the scope of PCI Security Scan rests with the merchants and service providers, though they may require the expertise of ASVs.

PCI Scanning Procedures

 The PCI council puts forward 12 main security requirements that all merchants are required to follow in order to be truly become PCI DSS Compliant. The procedures are as follows

1. All Scans should be executed by an ASV selected from the list of approved scanning vendors provided by the PCI Security Standards Council. ASVS are required to follow the “Technical and Operational Requirements for Approved Scanning Vendors (ASVs)” procedures.

2.Scans are to be in accordance with PCI DSS Requirement 11.2 and should be done on a quarterly bases.

3. Merchants and Service providers are required to:

• Provide the ASV with a list of all Internet-facing IP addresses and/or IP address ranges

• Provide the ASV with a list of all domains that should be scanned if domain-based virtual hosting is used

4. The network is scanned to determine which IP addresses and services are active based on the list of IP address range provided by the customer.

5. Merchants and service providers should contract the ASV to perform periodic scans of all active IP addresses and devices.

 6. The scan must cover all filtering devices including firewalls or external routers. If a firewall or router is used to establish a demilitarized zone (DMZ), these devices must be scanned for vulnerabilities

7. The ASV must scan all web servers, as they are fully accessible from public internet and are vulnerable.

8. ASV must scan application servers as they act as the interface between web server and back end databases and legacy systems. Most hackers exploit the vulnerability of web servers to get access to internal databases that store credit card details.

9. DNS servers are vulnerable to attacks as the hacker can spoof a service providers webpage and collect credit card details.

10. Mail servers should be scanned as they are highly vulnerable to hacker attacks.

11. The ASV must scan Virtual Hosts. If a website is hosted in a virtual environment, the merchant should require the hosting provider to scan their entire IP range and demonstrate compliance while merchants are required to have their own domains scanned.

12. Wireless LANs introduces data security risks hence they must be scanned.

13. The intrusion detection system/intrusion prevention system (IDS/IPS) should be configured to accept the originating IP address of the ASV.

Compliance Reporting

Most payment card companies provide their own compliance reporting requirements to merchants and service providers. While scan reports must follow a common format, the results must be submitted in accordance to each payment card company’s requirement.

AddThis Social Bookmark Button

March 29, 2011

How to disble root logins in the cpanel server

Filed under: Server Security — admin @ 10:28 pm

If you are using cPanel server make sure you add your admin user to the ‘wheel’ group so that you will be able to ‘su -‘ to root, otherwise you may lock yourself out of root.

1. SSH into your server as ‘admin’ and gain root access by su

2. Copy and paste this line to edit the file for SSH logins vi /etc/ssh/sshd_config

3. Find the line Protocol 2, 1

4. Uncomment it and change it to look like Protocol 2

5. Next, find the line PermitRootLogin yes

6. Uncomment it and make it look like PermitRootLogin no

7. Save the file

8. Now you can restart SSH /etc/rc.d/init.d/sshd restart

Now, no one will be able to login to root with out first loggin in as admin and ‘su -‘ to root, and you will be forcing the use of a more secure protocol.

AddThis Social Bookmark Button

March 11, 2011

How to restrict number of simultaneous connections per vhost/dir and limit the bandwidth for files on vhost/dir

Filed under: Server Security — admin @ 5:25 am

By enabling ‘mod_bw’ module in apache we can control bandwidth in the server for a domain. When you find a domain using bandwidth via apache service and it need to be controlled within a certain limit and on basics of files , we can use mod_bw module in apache.

(more…)

AddThis Social Bookmark Button
Next Page »

Powered by WordPress