Entries Tagged as 'Windows 2008 Server'

ZendPHPviaFastCGI Gives 500 Internal Server Error

WEBBY STUFF , Windows 2008 Server 3 Comments »

Been having a fun time today trying to get Magento CMS working. The bizarre situation was that PHP would work fine under the default web site, but not under any other web site, which would result in a 500 Internal Server Error caused by the ZendPHPviaFastCGI PHP handler mapping. See screenshot below. I of course tried every possible solution without success, the cause turned out to be rather obscure.

 

fastcgi error

 

 

What was required to fix this was to manually add this attribute to the handler mapping in the applicationHost.config file, which you will find in C:\Windows\System32\inetsrv\config.

 

allowPathInfo="true"

 

PathInfo refers to the additional path information that may follow the file name and extension in a Uniform Resource Identifier (URI). For example, if you request the URI http://localhost/test.dll/myinfo, the PathInfo portion of that URI is /myinfo

This parameter does not seem to exist in the IIS Manager and is not even mentioned in the handler docs so I really do really not know why this is required or why it is not there by default and why you cannot add it via the GUI.

 

So the final entry for my ZendPHPviaFastCGI handler looked like this.

 

<add name="ZendPHPviaFastCGI" path="*.php" verb="*" modules="FastCgiModule"

scriptProcessor="C:\Program Files (x86)\Zend\ZendServer\bin\php-cgi.exe"

resourceType="Either" requireAccess="Script" allowPathInfo="true" />

 

Credit must go to my buddy Matt Gahan for working this one out.

1402 Error when installing Microsoft Office

Jibber Jabber , Windows 2008 Server 2 Comments »

 

I recently had a total nightmare with Office 2007 Enterprise on windows 2008 server. Some of my office applications stopped working so I tried to repair it, but the setup file would not run off the DVD nor would add/remove programs run, always failing with the error below, as a result I was not able to uninstall office.

 

"setup has stopped working"

 

I originally thought it was my DVD player, so I went out and bought a new one, which didn't help.

 

The solution to get the office installer to work was quite a PITA to say the least

 

  1. First read this Microsoft KB article
    How to manually uninstall the 2007 Office system if you cannot uninstall it by using the "Add or Remove Programs" feature
  2. Also run the Windows Installer Cleanup Utility
    http://support.microsoft.com/kb/290301

 

After doing all this and getting office off my PC I was finally able to run the office setup, but alas this then threw another error during installation.

 

**************

Microsoft Office Enterprise 2007 encountered an error during setup.

Error 1402. Setup cannot open the registry key

UNKNOWN\Components\3D5095D39455BD341908312EDABA9DD8\00002109F10090400000000000F01FEC. Verify that you have sufficient permissions to access the registry or contact Microsoft Product Support Service (PSS) for assistance.

***********

 

Now this was especially confusing as that registry key does not actually exist. I tried numerous things to resolve this and ultimately failed, so now I was stumped and thought I was going to have to either re-install windows or stump up £250 for Microsoft support. Then I wondered if I could get any free partner support through my Microsoft Action Pack Subscription (MAPS), and discovered these forums. Which surprisingly turned out to be very helpful as I got a reply from a Microsoft Tech who helped me resolve this issue.

As I had already tried everything they suggested, they decided it was in fact a permissions issue, somehow my registry permissions had got screwed, but thankfully they also have a fix for this.

 

How do I restore security settings to the default settings?

http://support.microsoft.com/Default.aspx?id=313222

 

After applying this fix I was finally able to re-install Office 2007.

 

This solutions above should help anyone on XP, Windows Vista, Windows 2003 or 2008 server, it can also be applied to other software you are getting similar errors with.

wmiprvse.exe process memory leak consumes CPU

Windows 2008 Server 1 Comment »

resource monitorOn my windows 2008 server (64bit) I started having a problem whereby the wmiprvse.exe process was consuming up to 40% of my CPU (22% average) and causing major slowdown of my system.

I managed to narrow this down to the "Windows System Resource Manager" and if I stopped this service, then the problem would go away. None of the solutions I found on Google applied to my scenario or my OS, which is one of the issues I guess I will face for running windows 2008 server as a workstation.

 

Anyway after much searching, I discovered the following hot fix solved my problem, despite the fact that the symptoms or cause do not apply to my scenario at all as I am not doing any monitoring from an external machine. After installing this hot fix, my average CPU usage for wmiprvse.exe is now around 10% and only seems to hit about 20% max, so it is an improvement. Of course if you do not need the Windows System Resource Manager then you could just disable this permanently.

 

http://support.microsoft.com/kb/970520

 

Note that the hot fix says it is for Vista, but it does also apply to windows 2008 server.

IIS7 Search Engine Optimization Toolkit

Windows 2008 Server 1 Comment »

iis7 SEO toolkit

For those of you playing with Windows 2008 server, Microsoft have released another funky new tool for IIS7. The IIS Search Engine Optimization (SEO) Toolkit helps Web developers, hosting providers, and Web server administrators to improve their Web site’s relevance in search results by recommending how to make the site content more search engine-friendly.

 

The components of IIS Search Engine Optimization Toolkit include the following features:

  • Site Analysis:

    • Fully featured site crawling engine - in order to perform detailed analysis of site's structure and content, Site Analysis tool uses a built-in web crawler, called "iisbot

      ", to download and cache all the publicly available web site content. The web crawler is fully compliant with robots exclusion protocol.

    • Report summary dashboard - the results of site analysis are presented in an easy to use dashboard page that serves as a start page for various types of analysis. In addition this page includes a large set of pre-built queries for most common reports.

    • Query builder - Site Analysis tool includes a powerful and flexible query builder user interface that lets you create any custom queries that are run against the cached web site content.

    • Detailed URL information - you can obtain various detailed information about every URL in your web site, such as response headers and content, the pages that link to that URL as well as all the referenced URLs.

    • Detailed Violations descriptions - each content or SEO violation found on a web site has a detailed description as well as a recommended corrective action.

    • Word Analysis - any web page can be analyzed with regards to the most commonly used words and phrases within the content of that page. The results of that analysis can be used to select the keywords that most accurately describe the content of the page.

    • Route Analysis - unique routes to any page can be displayed in a separate report. This kind of information helps better understand how search engine and site visitors reach a particular page on your web site.

  • Robots Exclusion

    • User interface for editing robots.txt file - the content of the robots exclusion file - robots.txt - can be edited by using IIS Manager GUI

    • Selecting URL paths from physical view of web site - the paths that are specified for "Allow" and "Disallow" directives in robots.txt file can be selected from the physical file system layout of your web site.

    • Selecting URL paths from virtual view of web site - the paths that are specified for "Allow" and "Disallow" directives in robots.txt file can be selected from the logical view of your web site obtained from the results of site analysis.

  • Sitemaps and Sitemap Indexes

    • User interface for managing sitemap and sitemap indexes files - the content of the sitemap and indexes files can be edited by using IIS Manager GUI

    • Selecting URLs from physical view of web site - the URLs that are specified within a sitemap can be selected from the physical file system layout of your web site.

    • Selecting URLs from virtual view of web site - the URLs that are specified within a sitemap can be selected from the logical view of your web site obtained from the results of site analysis.

 

Articles
Forum

 

CF on IIS7 - internal server error

ColdFusion , Windows 2008 Server 2 Comments »

As you will see elsewhere on my blog, I have recently setup windows 2008 server 64bit as my new desktop. For the most part everything has worked ok, but there have been a few interesting quirks.

 

One of these quirks was that any new site I setup in IIS7 resulted in a "500 internal server error" identifying the AboMapperCustom wildcard application mapping for ColdFusion as the cause.

 

Now my Default Web Site from where I run the CFADMIN was working fine, so I was rather perplexed as to why other sites did not work when they seemed to be setup exactly the same.

Now I am actually using DotNotPanel on my local machine to setup and manage sites, so this may be a contributing factor, but still the cause of the problems may affect others, so hopefully the solutions may help.

 

Using the Web Server Configuration Tool I tried to disable then enable CFML on the server several times to no avail, then when checking the Handler Mappings" for the site, I noticed that the wildcard application map for CF was actually there twice, which I am sure may well have been a contributing factor, so I removed one of them. I also then noticed this alert on the handler mappings page.

 

This site is in an application pool that is running in classic mode, so you can manage ISAPI extension and native modules that are mapped to

paths. You must manage managed handlers (system.web/httphandlers) directly

in the configuration files.

Now if I recall "classic mode" means 32bit, so this seemed likely to be causing a problem, although I am not sure how I ended up using this application pool by default.

Anyway to change this, open the IIS manager, find your site, right click and select

Manage Web –> Advanced Settings

And change the application pool at the top to "Default Application Pool". In my case this fixed the problem and the alert went away, hopefully this may help someone else having issues with IIS7 and CF.

Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds