You can use the SSH commands provided by cPanel to improve your website's performance or troubleshoot issues. These commands can help enhance your server's security, fix database problems, and accomplish many other tasks. Here are some common issues and cPanel SSH commands you can use to resolve them:

  1. Reboot the server:

reboot

  1. Fix MySQL privilege issues:

/scripts/cleanupmysqlprivs

  1. Check and recreate MySQL symlinks:

/scripts/restartsrv_mysql

  1. Reinstall MySQL RPMs:

/scripts/mysqlup –force

  1. Update Perl module:

/scripts/perlinstaller –force Bundle::DBD::mysql

  1. Recompile PHP-Apache:

/scripts/easyapache

  1. Update cPanel:

/scripts/upcp

  1. Edit cPanel configuration file:

/var/cpanel/cpanel.config

  1. Restart Apache server:

service httpd restart

  1. Stop Apache server:

service httpd stop

  1. Start Apache server:

service httpd start

  1. Check Apache configuration:

service httpd configtest

  1. List files in root directory:

dir

  1. Delete file:

rm -f filename.tar.gz*

  1. Show server specifications:

cat /proc/cpuinfo

  1. Extract RAR file:

unrar x filename.rar

  1. Extract ZIP file:

unzip filename.zip

  1. Search for a file:

locate c99.php

  1. Change user ownership:

chown -R user:user /home/user

These commands help cPanel users solve frequent issues and boost their server performance. However, use each command carefully and always back up important files before making changes.

Did you find it useful?
(51 times viewed / 0 people found it helpful)