Windows Server

Start all stopped application pools in IIS 6.0

How to stop and start application pools using VBScript and ADSI in Windows Server 2003 and IIS 6.0. Iterate with vbscript and ADSI through the IIS 6.0 metabase AppPool objects, find out their .State value and start an AppPool if its state isn’t running.

Windows Server

WCF Service error: “This collection already contains an address with scheme http.”

“This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.” is a Windows Communication Foundation (WCF) error message indicating you are trying to add an already existing binding. By default the web service listens to all in IIS configured host headers. A host header is the website address, for example example.com and www.example.com. If this is not correctly added to the web.config file, the following error is thrown

Umbraco Umbraco logo blue

Umbraco CMS admin password reset

If you forgot your Umbraco admin password, use the following SQL query to reset your Umbraco admin password in SQL Server Management Studio (SSMS) or MySQL

Code base

MySQL query caching using PHP/Zend_Cache

By using the Cache.php PHP class of the Zend Framework, you can relatively easy cache MySQL query results to disk. This ensures faster consecutive results and speeds up execution. In this context, caching means: execute a MySQL query once and save the result in a temporary file. For every time that same query is executed, you can simply use the result stored in your disk cache file, as long as the database hasn’t changed. Often it is faster to save this on the web server than having it to redo the query every time.

Windows Server

Failed Request Tracing error LOG FILE MAX SIZE TRUNCATE

Failed Request Tracing error LOG FILE MAX SIZE TRUNCATE. The maximum size of an FREB log file, in IIS 7+, is 512 KB per default. Once that size is reached, the log file is cut off (truncated) and a message LOG_FILE_MAX_SIZE_TRUNCATE is logged. Use AppCmd.exe to increase the maximum size for failed request logs.

GNU Linux

Check IP address blacklist status in Bash

Bash script to check an IP address reputation status in several blacklists. I’ve added HttpBl as backlist and an API key is required for this list. Using this script in Bash you can quickly test if an IP address is blacklisted.

Windows Server IIS 10 Module Mappings for *.php handler

PHP on IIS: No input file specified.

Here is how to resolve the no input file specified error with PHP and IIS. When you host your PHP website on Windows Server IIS, you may receive an “No input file specified” error message, when a HTTP request is made to non-existing .php files. When this happens you probably have no Request Restrictions configured in IIS’ PHP handler set

Windows Server

“Forensic Log Parsing with Microsoft’s LogParser”

Just stumbled upon: Forensic Log Parsing with Microsoft’s LogParser. Log parser is a powerful, versatile tool that provides universal query access to text-based data such as log files, XML files and CSV files, as well as key data sources on the Windows® operating system such as the Event Log, the Registry, the file system, and Active Directory®.

Windows Server

Inexplicable COM+ error messages

Inexplicable COM+ error messages, like “The run-time environment has detected an inconsistency in its internal state.”. This one can be fixed by increasing the Windows Desktop Heap size in the registry.