Install Memcached on cPanel Server

Login to WHM as user root, go to Terminal or login to SSH as user root. Then run the command yum install memcached Enable memcached to start on boot. systemctl enable memcached Configure memcached Default configuration on AlmaLinux 9 look like the following PORT=”11211″ USER=”memcached” MAXCONN=”1024″ CACHESIZE=”64″ OPTIONS=”-l 127.0.0.1,::1″ edit configuration file vi /etc/sysconfig/memcached Lets … Read more

How to Benchmark Cpanel server

cPanel Server

Benchmarking a server helps to determine its performance score. By benchmarking a server, you can also compare its performance score with other servers. Benchmarking can also help identify any issues with the server that may be causing poor performance, such as faulty hardware or software. To benchmark a Cpanel Server, I will use Geekbench 5. … Read more

How to install PHP 7.4 mcrypt module in Cpanel Server

cPanel Server

mcrypt is a PHP module, that was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0. mcrypt is removed from PHP, now it is available as a PECL module at https://pecl.php.net/package/mcrypt To install mcrypt on Cpanel Server, first, install libmcrypt-devel package with yum yum install -y libmcrypt-devel To install the module with PHP 7.4, run … Read more

Enable WebSocket in Cpanel Server with Nginx

cPanel Server

On a Cpanel server, WebSocket server was running on port 8080. It worked fine with HTTP. After enabling HTTPS, it stopped working. The website code had the following entry var websocket_server = new WebSocket(“ws://domain.com:8080”); This Cpanel server had ea-nginx (Nginx provided by Cpanel) installed. To fix the error, I created a file vi /etc/nginx/conf.d/ws-domain.com.conf In … Read more

How to Increase size of /tmp on cpanel server

cPanel Server

To increase the size of /tmp folder, first, stop monitoring services, so it won’t get auto started while we resize /tmp folder whmapi1 configureservice service=cpsrvd enabled=1 monitored=0 whmapi1 configureservice service=mysql enabled=1 monitored=0 whmapi1 configureservice service=httpd enabled=1 monitored=0 Now stop Cpanel, MySQL and Apache services /scripts/restartsrv_cpsrvd –stop /scripts/restartsrv_mysql –stop /scripts/restartsrv_httpd –stop Unmout current /tmp folder umount … Read more

How to install PHP ssh2 module in Cpanel Server

PHP ssh2 module allows you to connect to SSH servers. On Cpanel servers, this module is not available under EasyApache. You need to install using PECL. The PECL module installer in WHM does not list this module. The module is available to download from https://pecl.php.net/package/ssh2 To install it, log in to the Cpanel server as … Read more