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

PHP Functions which help hackers to hack your server ​

I am listing below some PHP Functions which you should keep disabled if you dont need them as they help hackers to deface your websites or hack the server: To disable these functions you can add following line to /usr/local/lib/php.ini disable_functions = “dl,exec,shell_exec,system,passthru,popen,pclose,proc_open, proc_nice,proc_terminate,proc_get_status,proc_close,leak, apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid, posix_setsid,posix_setuid,escapeshellcmd,escapeshellarg,shell-exec,fpassthru,crack_check,crack_closedict,crack_getlastmessage, crack_opendict,psockopen,php_uname,symlink,mkdir ,ini_restore,posix_getpwuid,error_log,print_r,scandir,copy,phpinfo,ini_set”   dl exec shell_exec system passthru popen […]

Continue Reading