Search results

  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/ 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 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 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 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 > >...
  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 :
  16. H

    How to Disable SELinux on CentOS 7?

    First of all check the status of SELinux on your system You can temporarily change the SELinux mode from targeted to permissive with the following command: To permanently disable SELinux, open the file /etc/selinux/config : and set the SELINUX mod to disabled Save the file and then...
  17. H

    How to access phpMyAdmin directly without cPanel access?

    If you want to directly access phpMyAdmin without login into the cpanel account. You need to upload phpMyAdmin application files in your hosting account. Steps to follow : Download the latest version of the PhpMyAdmin application from here. Extract the ZIP or TAR file in your computer. You...
  18. H

    How to suspend/UnSuspend cPanel account via SSH?

    Suspend/UnSuspend cpanel account via SSH : Log into the server via SSH To suspend cpanel account run below command: To UnSuspend cpanel account run below command:
  19. H

    How to change DirectAdmin admin passsword from SSH?

    You can change the DirectAdmin password by executing the following command in SSH : $ passwd admin
  20. H

    How to change DirectAdmin’s default port number 2222?

    - SSH to your server as root user - Modify DirectAdmin configuration file in the file find the line with port=2222 and replace it with something like and save : port=1111 And then restart the DirectAdmin Then make sure to open port 1111 in server firewall and try to access Directamin in a...