Recent content by HostStud

  1. H

    modsec.sqlite database corrupt error

    Error : /scripts/purge_modsec_log Cpanel::Exception::Database::Error/(XID uzrgjm) The system received an error from the “SQLite” database “/var/cpanel/modsec/modsec.sqlite”: SQLITE_CORRUPT (database disk image is malformed) at /usr/local/cpanel/Cpanel/DBI.pm line 200...
  2. H

    DNS Unable to parse zone: Error while parsing zonedata

    Error : Failed to serialize zone file. Error was “There was an error while loading the zone for DOMAIN.com. Please correct any errors in this zone manually and try again. The exact error from the parser was: expected valid serial, line 4 Check that email address use a dot “.” inplace of “@”...
  3. H

    How to optimize Linux/Centos server against a SYN-Flood attack - DDOS

    Edit file /etc/sysctl.conf and add And then run : # sysctl -p
  4. H

    How to disable cPanel CSF LFD Alerts?

    Login into WHM Go to Plugins > ConfigServer Security & Firewall Now click on “Firewall Configuration” button Search for "LF_EMAIL_ALERT " & “LF_PERMBLOCK_ALERT” Click turn "Off" buttons Click “Change” at bottom of the page On next screen click “Restart csf+lfd” to restart CSF & LFD services
  5. H

    How to change the database engine of a MySQL database table from MyISAM to InnoDB?

    You can run following SQL query in SSH or PhpMyAdmin : ALTER TABLE tablename ENGINE = InnoDB;
  6. H

    lfd on server.Hoststud.com: SYSLOG Check Failed

    You are receiving following error messages on your server with CSF installed: Check that rsyslog is running # service rsyslog status If rsyslog is not running then try to restart it # service rsyslog start You can manage rsyslog at WHM >> Service Configuration >> Service Manager"
  7. H

    How to find Other Usage' from cPanel Disk Space Usage?

    Other Usage in the cpanel Disk Space (Quota) is calculated by files that are located outside of the /home directory and are owned by that user. Files can be in /tmp directory, cache files, mailman or backups etc. Change USERNAME with your user # find / -user USERNAME # find / -user $USER >...
  8. H

    550 The mail server could not deliver mail to The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.

    Cpanel error : The response from the remote server was: 550 The mail server could not deliver mail to [email protected]. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. Check : - Where the domain and MX records are pointing? Run in shell : dig mx...
  9. H

    Wordpress: The uploaded file could not be moved to wp-content/uploads/

    If you are on the cpanel server Run: chown -R username:username /home/<username>/public_html It will give the ownership to your user. Also check the /uploads folder permission, try it with 755 then 777. In PLESK you have to check read/write permission at Plesk > Domains > example.com >...
  10. H

    How To Delete sudo Users on a CentOS 7 Server?

    You can delete the user without deleting any of their files and folders, as root run: # userdel username username is the user you have created. You can delete the user's files with the user account by running this command as root: # userdel -r username
  11. H

    How to Add User to Sudoers CentOS?

    Steps to Create a New Sudo User on Centos Log into the server as the root user. # ssh root@server_ip_address Add New System User in CentOS, replace username with name of new user. # adduser username Use the passwd command to update the New User's password. # passwd username Add User to...
  12. H

    mod_security SQLite database corrupt issue

    When you open WHM >> Security Center »ModSecurity Tools »Hits List and gets the following issue : "/var/cpanel/modsec/modsec.sqlite”: SQLITE_BUSY (database is locked) Try to run in SSH # /scripts/purge_modsec_log If problem persists then run : # /scripts/restartsrv_tailwatchd --stop # mv...
  13. H

    How to automatically reboot the server on kernel panic?

    You can edit /etc/sysctl.conf and put "kernel.panic = 30" It will reboot the server after 30 seconds of kernel panic. In SSH # echo 30 > /proc/sys/kernel/panic # /sbin/sysctl -p
  14. H

    How to change hostname on CentOS 7?

    To view the current hostname, enter the following command: In CentOS 7 to change the hostname and use the command hostnamectl Manual method to setup a CentOS 7 hostname is to edit the /etc/hostname file and type your new hostname System reboot is necessary to apply new hostname.
  15. H

    How to find large files in Linux?

    If you would like to find the files greater then 100mb in current directory run : Command to find top 5 directories in /home directory : Command to find top 5 directories and files in /home directory :
Top