How to empty a MySQL database via SSH or phpMyAdmin

There are two ways to empty a MySQL database: via phpMyAdmin and SSH. NOTE 1: By default, SSH access is disabled on all our shared servers. If you need SSH to be enabled, contact our Hosting support via Live Chat or submit a ticket to the Hosting Support department. NOTE 2: We recommend making a backup of your database before proceeding with any changes. […]

Continue Reading

accidentally deleted /var/log/apache2 and now can’t restart apache

This happen when you deleted tmp files and /var//log* files then this types of error as apache not rebuild , service httpd restart error or modsecurity failed to open the audit log file /etc/apache2/logs/modsec_audit.log or Login with ssh, then try: Code: sudo mkdir /var/log/apache2/ sudo touch /var/log/apache2/ {access,error,other_vhosts_access,suexec}.log sudo chown -R root:adm /var/log/apache2/ sudo chmod […]

Continue Reading

cpanel whm service restart command list via putty or ssh

Here is the command list for use in putty on ssh connection. this is the general command which use every time in cpanel hosting service httpd restart service httpd start|stop|restart|status service mysql restart # service network stop # service network start # service network restart /usr/local/cpanel/cpkeyclt /etc/init.d/crond restart /etc/init.d/crond restart /etc/init.d/syslog restart service nginx start […]

Continue Reading

Common configuration files and directories for cpanel ssh command

You can find common configuration files and directories in the following locations on your server: Exim /etc/exim.conf /var/log/exim_mainlog /var/log/exim_rejectlog /etc/valiases/ /etc/vfilters/ home/username/.forward MySQL® /root/.my.cnf /etc/my.cnf /var/lib/mysql/ Apache 1 2 /usr/local/apache/conf/httpd.conf /usr/local/apache/domlogs/ System 1 2 /var/log/messages /var/log/dmesg ProFTPD /etc/proftpd.conf /var/log/xferlog /etc/proftpd/ SSH /etc/ssh/sshd_config

Continue Reading

FFMPEG Linux Centos server for all latest version centos 7.xx

Here is working ffmpeg for all linux centos operating system . all types of converter will work in server. libavcodec – an audio/video codec library libavutil – utility library to aid portable multimedia programming libavformat – library which provides framework for multiplexing and multiplexing video/audio and subtitle streams libavfilter – library which enhances a generic […]

Continue Reading

Internal Server Error 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_nginx.cgi

When using WHM -> Plugins -> Nginx Admin: Internal Server Error 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_nginx.cgi): The subprocess reported error number 2 when it ended. cpsrvd/11.62.0.7   Solution : Go to /usr/local/cpanel/whostmgr/docroot/cgi/addon_nginx.cgi  and Comment the line whmlib.pm and commenting the line: use whmlib; to #use whmlib; and Save it

Continue Reading

EasyApache4 revert to EasyApache3 on fresh install working

when you try to revert or migrate EA3 to EA4 then yoy get error like /scripts/migrate_ea3_to_ea4 –revert –run This system never had EasyApache 3. Reverting is not possible. here i have solved this issue   EasyApache4  are very useful and most advanced EA 4 for centos 7, 7.2, 7.3 but if you have old scripts […]

Continue Reading