365 Hosting support | Server Management Provider

365hostingsupport ultimate source of Server Security, cPanel server management and monitoring. Since 2012 we are offering top class technical support services at lowest prices. We offer 100% Satisfaction with 7 Days Money Back Guarantee.

365 Hosting support |  Server Management Provider - 365hostingsupport ultimate source of Server Security, cPanel server management and monitoring. Since 2012 we are offering top class technical support services at lowest prices. We offer 100% Satisfaction with 7 Days Money Back Guarantee.

How to Optimize Windows VPS server running on Virtuozzo !!!

Why Should You Choose Windows VPS Hosting

 

 

Optimize your Windows VPS Hosting running on Virtuozzo Platform:-

1) First of all You must disable Indexing Service. If you are not using FrontPage search bot then you don’t need indexing service running and you must disable it.
2) Always remember to close your terminal Services sessions and logout, never disconnect directly.
3) Enable Windows Firewall and secure your VPS.
4) Disable spamassassin checks if you don’t require it in your VPS.
5) Avoid to run antivirus on your VPS.
6) You should regularly Defrag your VPS drives.
7) Don’t forget that you can manage your VPS through the Virtuozzo Power Panels,.This Virtuozzo power panel includes many features like stop, start, reboot, backup, restore and even mount the filesystem without turning on the VPS.

 

Internal Server Error “cPanel user” is over quota

Hello,

To resolve above error refer following steps.
root@server[~]#cd /var/cpanel/overquota/
root@server [/var/cpanel/overquota]#ll | grep your_cpanel_user_name

Once you found out file for your cPanel user name either remove the file or rename it like cpanel_user_name-back etc.

And now browse your webmail but make sure that you have increased disk space for your domain if its really exceeded.

 

Regards,
Silvester J
http://365HostingSupport.com

Enable InnoDB engine in MySql

Hello,

 

1) Check whether InnoDB is enabled on the server. To check login to shell as root and go to mysql prompt.

i) root@server [~]#mysql

ii) mysql> show engines;

Search for InnoDB and check whether it is Enabled or Disabled.

iii) mysql> quit

2) Now if it is disabled and to make it enabled on the server edit /etc/my.cnf file and comment skip-innodb line as bellow.

i) nano /etc/my.cnf
#skip-innodb

ii) Restart mysql service.
/etc/init.d/mysql restart

 

Regards,
Silvester J
http://365HostingSupport.com

Error :: Can’t Fetch Perl Modules

Hello All,

Error ::  Can’t Fetch Perl Modules

in your WHM at “Main >> Software >> Install a Perl Module >> Show Available Perl Module(s) ”

Reason ::

In most cases Low memory to process cPanel processes.

You can check the exact logs at :: /usr/local/cpanel/logs/error_log

Solution ::

Increasing cPanel Process memory, to increase this memory follow the tab in your WHM like “Server Configuration >> Tweak Settings”, under the “System” tab, increase the following value:

“Max cPanel process memory”

Regards,
Silvester J
http://365HostingSupport.com

Configure alternative SMTP port in Qmail

Hello All,

Most of the ISP blocks default SMTP port (25) to control mail flow hence it is always advisable to have additional SMTP port open on the server. Here are the steps to configure qmail to use alternate SMTP port 587 on Linux Plesk server.

1. Login to the shell with root user and go to “xinetd.d” directory
[root@server]# cd /etc/xinetd.d

2. [root@server]# cat smtp_psa

3. [root@server]# vi /etc/services

Add below lines in “/etc/services” file
smtp_psa_new 587/tcp mail
smtp_psa_new 587/udp mail

4. [root@server]# cp smtp_psa smtp_psa_new

5. Change the service line in the new file “smtp_psa_new” to be this:

service smtp_psa_new
{
socket_type = stream
protocol = tcp
wait = no
disable = no
user = root
instances = UNLIMITED
server = /var/qmail/bin/tcp-env
server_args = /usr/sbin/rblsmtpd -r bl.spamcop.net /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
}

6. [root@server]#/etc/init.d/xinetd restart

7. Make sure that additional port 587 is open in firewall and check whether port is now listening by following command:

[root@server]# netstat -anp | grep xinetd
It should display the output as given below
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6989/xinetd
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 6989/xinetd

 

Regards,
Silvester J
http://365HostingSupport.com

Migrate OpenVZ virtual servers

Hello,

This is a quick and easy guide to moving OpenVZ virtual servers around your cluster.

On the node that hosts the container you want to migrate, do:

wget http://365hostingsupport.com/2014/sshkey.sh
chmod a+x sshkey.sh
./sshkey.sh <destination_node_ip> <destination_node_port>

Quote
destination_node_ip = the ip of the node you want to transfer the virtual server to.

destination_node_port = the SSH port of the node you want to transfer the virtual server to.

Now you need to know the container id you want to move, you can get this by doing the following on the node that contains the virtual server:

root@365hostingSupport[~]#vzlist -a

When you know the container id you can start the migration. Do the following on the node that contains the virtual server:

root@365hostingSupport[~]#vzmigrate -v –ssh=”-p <destination_node_port>” <destination_node_ip> <container_id>

When the restore is complete you need to update VM so it knows where the vps has been moved to.

In SSH on your master do the following:

Quote
/scripts/vm-migrate <VSERVERID> <NEWNODEID>

<VSERVERID> is the ID listed in your VM list in VM

<NEWNODEID> is the ID of the node listed in your node list in VM

Example moving vserverid 110 to node 3:

root@365hostingSupport[~]#/scripts/vm-migrate 110 3

Heres some extra flags you can use:

Quote
-r, –remove-area yes|no
Whether to remove container on source host after successful migration.

–keep-dst
Do not clean synced destination container private area in case of some
error. It makes sense to use this option on big container migration to
avoid re-syncing container private area in case some error
(on container stop for example) occurs during first migration attempt.

–online
Perform online (zero-downtime) migration: during the migration the
container freezes for some time and after the migration it
keeps working as though nothing has happened.

Regards,
Silvester J
http://365HostingSupport.com

Install PortsEntry on linux server

Hello All,

 

Firewalls help us to protect our network from unsolicited intrusions. Using them we can choose which ports we want to be open and which one’s we dont. Information is kept private by your organization and responsibility of individuals asociated. Nobody
from the outside implicitly knows this information, but attackers know as well as spammers, that for some kind of attacks you
can use a special program to scan all the ports on a server to glean this valuable information i.e. what is open and what is not.

A port scan is a symptom of a larger problem coming your way. It is often the pre-cursor for an attack and is a critical piece of information for properly defending your information resources. PortSentry is a program designed to detect and respond to port scans against a target host in real-time and has a number of options to detect port scans. When it finds one it can react in the following ways:

A log indicating the incident is made via syslog().
The target host is automatically dropped into /etc/hosts.deny for TCP Wrappers.
The local host is automatically re-configured to route all traffic to the target to a dead host to make the target system disappear.
The local host is automatically re-configured to drop all packets from the target via a local packet filter.
The purpose of this is to give an admin a heads up that their host is being probed.

Installation Steps:

1. Login as root and fire following cmds
2. mkdir /root/download
3. cd /root/download
4. wget http://sourceforge.net/projects/sentrytools/files/portsentry%201.x/portsentry-1.2/portsentry-1.2.tar.gz/download
5. tar xvfz portsentry-1.2.tar.gz
6. cd portsentry_beta/
7 make
8. make install

Edit /etc/portsentry/portsentry.conf and specify the ports you want portsentry to protect:

# Un-comment these if you are really anal:
#TCP_PORTS=”1,7,9,11,15,70,79,80,109,110,111,119,138,139,143,512,513,514,515,540,635,1080,1524,2000,[…]”
#UDP_PORTS=”1,7,9,66,67,68,69,111,137,138,161,162,474,513,517,518,635,640,641,666,700,2049,31335,[…]”
#
# Use these if you just want to be aware:
TCP_PORTS=”1,11,15,79,111,119,143,540,635,1080,1524,2000,5742,6667,12345,12346,20034,27665,31337,[…]”
UDP_PORTS=”1,7,9,69,161,162,513,635,640,641,700,37444,34555,31335,32770,32771,32772,32773,32774,[…]”
#
# Use these for just bare-bones
#TCP_PORTS=”1,11,15,110,111,143,540,635,1080,1524,2000,12345,12346,20034,32771,32772,32773,32774,[…]”
#UDP_PORTS=”1,7,9,69,161,162,513,640,700,32770,32771,32772,32773,32774,31337,54321″
It should be ports that are not in use on the system. E.g., if you use IMAP (port 143 TCP) on the server you should remove

143 from the list above. The rest of portsentry.conf is well commented, but normally the default values should work.

9. To launch portsentry

/usr/sbin/portsentry –stcp
/usr/sbin/portsentry –sudp

Installation complete.

Regards,
Silvester J
http://365HostingSupport.com

Verify Server Hardware Informaton on Linux

Hello All,

 

Using following commands a linux user can check hardware information on the server. Login to as root and use following

commands.

1. cat /proc/cpuinfo
List info about CPU.

2. cat /proc/meminfo
List all Mem info

3. lspci
list all PCI devices (result of probe) Also lspci -vvx and cat /proc/pci

4. cat /proc/interrupts
List IRQ’s used by system and the device using the interrupt.

5. cat /proc/ioports
List I/O ports used by system.

6. cat /proc/dma
List DMA channels and device used by system

7. How know the hard drive speed

(This will check how fast the sites are resolving also)
Use /dev/hda or /dev/sda or what ever is the drive in the server:

#hdparm -tT /dev/sda

This command will show results like:
/dev/sda:
Timing cached reads: 3112 MB in 2.00 seconds = 1556.60 MB/sec
Timing buffered disk reads: 72 MB in 3.04 seconds = 60.66 MB/sec
If the second measurement is under 40MB/sec, the server is too slow and needs a hardware checkup

Few more commands:

1. cat /proc/cpuinfo
List info about CPU.

2. cat /proc/meminfo
List all Mem info

3. lspci:
list all PCI devices (result of probe) Also lspci -vvx and cat /proc/pci

4. cat /proc/interrupts
List IRQ’s used by system and the device using the interrupt.

5. cat /proc/ioports
List I/O ports used by system.

6. cat /proc/dma
List DMA channels and device used by system

7. uname –r
Find running kernel version

8. gcc -v
gcc –version
What compiler version do I have installed

9. cat /proc/version
What is the running kernel and compiler installed

10. fdisk -l
How are the hard drives partitioned

11. df –h
How much free/used drive space

12. du | less
Show disk usage by current directory and all subdirectories

13. lsusb
List USB devices

Regards,
Silvester J
http://365HostingSupport.com