Editing the global php.ini at /usr/local/lib/php.ini does not increase values in the internal PHP for cPanel for PhpMyAdmin.

You have to edit the internal php.ini, which apparently it is reading from /usr/locafile.rather than /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini file.

nano /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
; Maximum size of POST data that PHP will accept.
post_max_size = 50M
upload_max_size = 50M

Cannot login via ftp to the domain, the following error is displayed during the logging:

530 Login incorrect.

In the ‘/var/log/secure’ file you may find the following error:

Oct 1 12:55:15 web02 proftpd[20205]: 127.0.0.1 (91.204.25.4[91.204.25.4]) – USER test (Login failed): Invalid shell: ‘/bin/false’

Cause

The string ‘/bin/false’ is missed in the file ‘/etc/shells’.
Resolution

Add ‘/bin/false’ to the ‘/etc/shells’ file
Search words:
FTP
Invalid shell
530 Login incorrect
Error 530
ftp error plesk

Install eplel repo


# rpm -ivh http://mirror.vcu.edu/pub/gnu+linux/epel/6/i386/epel-release-6-8.noarch.rpm


# yum -y install vpnc
# chmod 700 /etc/vpnc/vpnc-script
# cp /etc/vpnc/default.conf /etc/vpnc/default.conf.orig

Save your .pnc file from Networking to /etc/vpnc/ folder

Install the VPN .pnc file as a default.conf file

Get the pcf to vpnc configuration file converter


# wget http://svn.unix-ag.uni-kl.de/vpnc/trunk/pcf2vpnc

Make it executable


# chmod +x pcf2vpnc

Move it to a place in our path


# mv pcf2vpnc /usr/local/bin/


# cd /etc
# pcf2vpnc /path/username.pcf default.conf
# chown root:root default.conf
# chmod 600 default.conf

Edit the config file to either use your username and password, or to manually enter


# nano default.conf
# Uncomment for auto login
# Xauth username myusername
# Xauth password userpass
# Uncomment for manual login
Xauth interactive

Backup resolv.conf

As a final configuration step, it is a good idea to make a backup of your resolv.conf file. The vpnc program will replace the resolv.conf upon connection and will restore it when you disconnect.

Connect and Disconnect

You must be logged in as Root for this to work

# vpnc
# vpnc-disconnect

For cPanel

Main >> System Health >> Show Current CPU Usage
It will show what user is taking most cpu. However, if you suPHP is not installed on your server, you will not able to see username. It will show you just nobody user.

remote ssh

Use “top –c” and nice top to find out the process that is causing high load on the server. Get the process id and then check who owns the process running in the server.

top --c
cd /proc/<process id>
ls -l 

The above command will give the link to the directory from which the script is running. Also try installing suphp in the server.

There are various ways to checkout the processes using high percentage of CPU and RAM, like

1) WHM >> Apache Status : it will show you each request to your website + it’s CPU and RAM usage.
2) ps -auxf : it will list all the current processes running on the server + it’s CPU and RAM usage
3) top c : same as above but shows a real time view of all the processes and resource usage

Load monitoring commands

1)top -c you will see the resource usage in percentage like Memory, CPU etc.Also server load details. And pstree -pua command list the processes in the server.
2) If say a user is listed high in the above command with higher resource usage the command

ls -alh /proc/<id> |grep cwd

Where is the process id of the user. This command gives the working directory of the script.
3) Check WHM interfaces
Main >> Server Status >> Daily Process Log
Main >> Server Status >> Apache Status

Some of the security tips that will help you is :-

1) enable suPHP
2) enable mod_security
3) also close some of the security holes in the php functions using the php disable_functions.

is there any command to show the Users with CPU and Memory usages ?
Use top -c d2 -u “username” as an example top -c d2 -u mylogwp

It’s probably better to have your DNS server be able to resolve ‘puppet’ to the right address, and either to have your DHCP server hand out the DNS nameserver address and search list or else (if you have static IP addresses) to have something like the following in /etc/network/interfaces.

iface eth0 inet static
address 192.168.3.3
netmask 255.255.255.0
gateway 192.168.3.1
dns-search example.com
dns-nameservers 192.168.3.45 192.168.8.10

But if you do want to do it via the resolvconf configuration files you will want to edit /etc/resolvconf/resolv.conf.d/base. In that file, put in your info as you would in resolv.conf.

nameserver 192.168.1.XXX

Then tell resolvconf to regenerate resolv.conf.

sudo resolvconf -u

About Virtual Hosts
Virtual Hosts are used to run more than one domain off of a single IP address. This is especially useful to people who need to run several sites off of one virtual private server. The sites display different information to the visitors, depending on with which the users accessed the site.There is no limit to the number of virtual hosts that can be added to a VPS.
Set Up
The steps in this tutorial require the user to have root privileges. You can see how to set that up in the here Initial Server Setup. You can implement whatever username suits you.

Read More

About Virtual Hosts
Virtual Hosts are used to run more than one domain off of a single IP address. This is especially useful to people who need to run several sites off of one virtual private server. The sites display different information to the visitors, depending on with which the users accessed the site.There is no limit to the number of virtual hosts that can be added to a VPS.

Read More