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