How to stop all services on a cpanel server
To stop all services on a cPanel server, you can follow commands in the command line interface. Back to Cpanel Server
To stop all services on a cPanel server, you can follow commands in the command line interface. Back to 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
When using Cloudflare, website visitors visit the Cloudflare CDN server configured as a reverse proxy server. Cloudflare CDN server fetches pages from your web server and caches them for a while, serving them to subsequent visitors. Your web application may report Cloudflare CDN server IP ad visitor IP as all requests to your website are … Read more
CentOS Linux was discontinued at the end of 2021 in favor of CentOS Stream. CentoS 7 will continue to be supported through the remainder of the RHEL 7 life cycle, which will end on June 30, 2024. If you are using CentOS 7 server with cPanel, it is better to upgrade to AlmaLinux 8, which … Read more
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
cPanel server supports MySQL and MariaDB. In most cases MySQL and MariaDB are compatible, you will be fine with either of them. Find current MySQL version Before you upgrade, find out what version of MySQL or MariaDB you are using with the command mysql –version In this server, we have MariaDB 10.3.37. You can note … Read more
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
Symlink attack exploits the way Linux operating systems handle symbolic links (symlinks). A symlink is a pointer to another file or directory that is used by the operating system to access the linked file or directory. In a symlink attack, an attacker creates a symbolic link that points to a file or directory that the … Read more
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
Cpanel control panel recently started supporting Ubuntu Operating System. Ubuntu support was announced after RedHat stopped supporting RHEL-based CentOS. When I install Cpanel on Ubuntu 20.04 server, I got the following error message To fix the error install package “libfindbin-libs-perl” with apt Back to 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
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