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

How To Add an Additional IP Address in cPanel Server

WHM IP functions

Cpanel servers allow you to add multiple IP addresses. Additional IP addresses are useful for running name servers, hosting sites on different IP addresses (many use dedicated IP for SEO), and mail servers. Before you can add additional IP addresses to a server, you need it purchased from your server provider. To add an IP … Read more