How to enable and customize PHP-FPM directives/pool for a domain or server wide :: cPanel

What is PHP-FPM?

PHP FastCGI Process Manager (PHP-FPM) is an alternative FastCGI daemon for PHP that makes a website capable of handling strenuous loads. By setting specific amounts of resources, it even allows a host to process a domain’s requests. To accomplish this, the PHP-FPM maintains “pools” (workers available to respond to PHP requests) where these “pools” of workers allow the website to handle more requests than it normally could.

PHP-FPM is faster than traditional CGI-based methods such as SUPHP for multi-user PHP environments. It does not overload a system’s memory with PHP from Apache processes like ruid2+php-dso does. This method is useful when a user receives extra traffic that requires resources to process it. For example, your website may receive a spike in traffic after a TV show features it or is linked from a popular website.

Continue reading…

Access WHM/cPanel Without Root Password

The WHM/cPanel can be accessed without knowing the actual password if it satisfies a single condition i.e you must have shell access to the server. If you have the shell access through SSH Keypair or using VPS nodes on the server, you can simply access the WHM panel without knowing the actual root password of the server.

The steps to create a session to access the WHM panel for root or any reseller accounts without a password is detailed below.

whmapi1 is the command which could be executed via Linux Shell so as to accomplish this. WHM API 1 accesses the WHM interface’s features. You can make use of this API to administrate cPanel and WHM reseller accounts, perform server administration tasks and manage cPanel & WHM services.

Continue reading…

Signs You’ve Outgrown Your Web Hosting Service

Choosing an appropriate web hosting service is a stepping stone to running a successful and a visitor engaging website. Regardless of the type of website you own, a great web hosting service is like the spine that supports and powers the core of your website. Depending upon the requirement, the right kind of web hosting service can provide your website an edge over the competing ones.

Talking about the existing websites which already employ web hosting services, there is always a time for making a change when the business has outgrown it’s existing online presence. During this time, your website will undergo a lot of change to meet this requirement.

Continue reading…

High Disk Usage with VIRTFS

We have heard a lot about VirtFS disk consumption issues while checking the disk usage in cPanel server. VirtFS in cPanel/WHM is used to allot a jailed shell environment for users who can access the server through SSH. This environment acts as a container for the user and will not allow the user to access other cPanel account’s home directories on the server. Unlike a normal shell, jailed shell environment has increased security and ability to run commands like crontab and passwd which are not allowed in the normal shell environment.

You can enable jail shell access to a cPanel user by logging into WHM and choose the Manage Shell Access option. The directory structure created when a user accesses jail shell is /home/virtfs/user.

Continue reading…