Category: How to

  • How to disconnect Remote Desktop sessions

    How to disconnect Remote Desktop sessions

      Is there an easy way  to close a Remote Desktop sessions on a windows server? Open command prompt window (Programs / Accessories / Command Prompt ) and get the session number: query session Enter “tsdiscon”  from a command line: (the n should be replaced with the session number) tsdiscon n  

  • How to avoid logging of 404 missing files into error_log

    How to avoid logging of 404 missing files into error_log

      how to stop logging of 404 error? The Simple Method to to disable logging of 404  error into Apache error_log file is: – open .htaccess file – domain for which you want to disable logging missing files ( 404) – put bellow code into .htaccess file: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond…

  • Where did all of the core files come from

    Where did all of the core files come from

      I was recently surprised to see that my wordpress install folders have swelled up in size like anything. I have 3 installs of WP and I noticed that in the root of each install there were dump files with a name pattern “core.*” and with sizes to the tune of 12MB each. core files…

  • Prevent hostname from changing after VPS restart

    Prevent hostname from changing after VPS restart

    Every time I reboot the vps,  it comes as hostname “defaulthostname”.  How to prevent this?   1. You can change its hostname with the command ‘hostname‘ # hostname without parameter it will output the current hostname. # hostname your-hostname will set the hostname of the system to your-hostname 2. Login to SSH as root and…