Category: Code or Hosting

  • cPanel License Verification and Update Script

    /usr/local/cpanel/cpkeyclt You can run the above to re sync the local status/key.  To verify your machine is licensed, browse to the following and enter in the external IP address: https://verify.cpanel.net/ Personal use case scenarios for needing to run the aforementioned script are changing the IP on the machine, or if the license has been upgrades, from…

  • Solved Internal Server Error 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_dotDefender.cgi): The subprocess exited with statu s 2 (ENOENT).

    After a recent installation of dotDefender, the following error came up: “Internal Server Error 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_dotDefender.cgi): The subprocess exited with statu s 2 (ENOENT).” The log file for dotDefender, /usr/local/APPCure-full/log/dotDefender_bpd.log, gives further detail: Can’t locate Crypt/Passwd/XS.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/per l5 /usr/share/perl5 .) at…

  • Starting Services That Should Be Running RHEL

    I recently came across a server that ran services, I was not familiar with, and services were unclear as to the issues I was troubleshooting. As a quick fix, I decided to get a list of services that should be running and start any that were not from that list: chkconfig –list | grep “2:on”…

  • SOLVED SmarterMail Error This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.

    When logging into a fresh installation of SmarterMail 13 and below, I was given the following error: Oops! There was an issue that caused this page to malfunction. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms. at…

  • Microsoft Rich Copy

    So, there is this tool, and if you Google for it, Microsoft Rich Copy, you end up here: http://social.technet.microsoft.com/Forums/en-US/w7itproperf/thread/33971726-eeb7-4452-bebf-02ed6518743e/ Click the ‘download Microsoft Rich copy’ link, and you will be prompted to download HoffmanUtilitySpotlight2009_04.exe, its 5.8 MB. Run this, Agree to the License Agreement, give it a path. It will export the HoffmanUtilitySpotlight folder to…

  • A handful of HTML and ASCII Symbol Codes

    OTHER HTML & ASCII SYMBOL CODES: ↓ Down arrow ↓ ‾ Overline ‾ ← Left arrow ← → Right arrow → ↑ Up arrow ↑ ℠ Service Mark ℠ ℃ Celsius ℃ ℅ care of ℅ ℉ Farenheit ℉ № numero symbol – number sign № ℗ Sound Recording Copyright &#8471 ℞ Prescription Take pharmaceutical…

  • ApplicationPoolIdentity user in Users & IIS_IUSRS

    “ApplicationPoolIdentity is assigned membership of the Users group as well as the IIS_IUSRS group.” Source: http://stackoverflow.com/questions/5437723/iis-apppoolidentity-and-file-system-write-access-permissions I often need to add Users in particular to give the permissions needed.

  • Apache SetEnvIf Logical AND with Two Variables

    In trying to adjust the method of logging in Apache, it was found logical to have the configuration perform an AND on two variables to validate one format vs another. I had not found much detail on this, until making my way to: http://stephane.lesimple.fr/blog/2010-01-28/apache-logical-or-and-conditions-with-setenvif.html. From the page archived, I had the following: CustomLog /var/log/apache2/loopback_posts.log combined…

  • Command Line Add woff Mime Type

    Easily add in the woff mime-type with the below command: %systemroot%\system32\inetsrv\appcmd set config /section:staticContent /+”[fileExtension=’.woff’,mimeType=’application/font-woff’]” To note, the above placed the configuration within the applicationHost.config and not in a web.config. As desired in my scenario as I had wanted the configuration to be server wide.

  • Testing http header IP forwarding

    I need to determine what the application sees versus what is being sent, these scripts helped me see the discrepancy and validate the change once resolved: <?php header(‘Expires: 0’); // Proxies. header(‘Cache-Control: no-store, no-cache, must-revalidate’); // HTTP 1.1. header(‘Cache-Control: post-check=0, pre-check=0’, FALSE); header(‘Pragma: no-cache’); // HTTP 1.0. $client = @$_SERVER[‘HTTP_CLIENT_IP’]; $forward = @$_SERVER[‘HTTP_X_FORWARDED_FOR’]; $remote =…