Category: Uncategorized

CPanel / WHM, Uncategorized

Some usefull Cpanel scripts

Some usefull Cpanel scripts /scripts/adddns – Adds a DNS zone. /scripts/addnetmaskips – Add the netmask 255.255.255.0 to all IPs that have no netmask. /scripts/addnobodygrp – Adds the group nobody and activates security. /scripts/addpop – Add a Pop Account. /scripts/addservlets – Add JSP support to an account (requires tomcat). /scripts/adduser – Add a user to the …

Security, Uncategorized

Common Ingress Ports for all control panel

 Common Ingress Ports for all control panel Common ingress (inbound) TCP ports section. Choose the correct configuration for your control panel from following  available options :- FOR PLESK =================================== =-=-=-=-=Plesk =-=-=-=-= # Common ingress (inbound) TCP ports IG_TCP_CPORTS=”20,21,22,25,53,80,110,143,443,465,993,995,8443″ # Common ingress (inbound) UDP ports IG_UDP_CPORTS=”37,53,873″ EGF=”1? # Common egress (outbound) TCP ports EG_TCP_CPORTS=”20,21,22,25,53,37,43,80,113,443,465,873,5224″ # Common …

MySql, Uncategorized

How to check if InnoDB engine is enabled in MySQL

How to check if InnoDB engine is enabled in MySQL If you want to check , if InnoDB is enabled on the server , you can check this via two methods : [email protected][#] mysqladmin variables | grep have_innodb If the above command show the output as below : | have_innodb | YES then it means InnoDB …

Security, Uncategorized

How to disable root login in linux

How to disable root login in linux  Login to shell. Copy and paste below command to server using your favourite editor. pico -w /etc/ssh/sshd_config Find the line Protocol 2, 1 Uncomment it and change it to look like Protocol 2 Next, find the line #PermitRootLogin yes Un-comment it. It looks like PermitRootLogin no Save the …

Security, Uncategorized

How to check the RAID Drive Status

RAID – Redundant Array of Inexpensive Disks   How to check 3ware RAID drive status Login to the server via SSH. Paste the below command. 3ware /c0 show It will show the status of all RAID drives. If you are getting any error then try using the below RAID command. 3ware maint rescan How to check Adaptech RAID drive status …

MySql, Uncategorized

How to take Database Backup using phpMyAdmin

How to take Database Backup using phpMyAdmin. First you need phpMyAdmin which is a MySQL Database Administration Tool. 1 – Open phpMyAdmin 2 – Click on Export 3 – Under Export – Select the database you want to backup 4 – Select SQL 5 – Select Structure, Add DROP TABLE, Add IF NO EXISTS, Add …

MySql, Uncategorized

Mysql Commands

Mysql Commands: How to check mysql connection or login to your Database using shell ========================= [email protected][#] mysql -u username -p ========================= it will ask for password then provide the correct password.   Create Database on the Mysql Server ========================= mysql> create database [databasename]; ========================= ex : mysql>create database Dresses;   List all databases on the …

Uncategorized

How to download the files forcefully using .htaccess

How to download the files forcefully using .htaccess without displaying it in browser   Create .htacceses file under your accout and insert the below code. AddType application/octet-stream .avi AddType application/octet-stream .mpg save and quit the file.  

PHP, Uncategorized

How to enable php.ini for all the folders under one account

 How to enable php.ini for all the folders under one account Copy the php.ini file in the public_html folder of the user using below command.cp /usr/local/apache/php.ini . Then create .htaccess file and insert the below command: SetEnv PHPRC /home/username/public_html Note: In place of username you have to use the clients or your username.