SharePoint Stuff



Faster PHP in IIS? Use FastCGI

Written by admin. Posted in Microsoft

Faster PHP? use FastCGI

 

Ever thought that PHP runs a bit slow on your IIS (6/7) server, well with the new addition of FastCGI you can get an increase in performance of up to 20 times faster.

 

What you need to do for IIS 6 and PHP 5.2.6;

 

First download the latest PHP version from http://www.php.net/downloads.php  

User the Installer version

Install to c:program filesphp – or a folder of your choice

When installing select IIS Fastcgi

 

Second download FastCGI for IIS6 from http://www.microsoft.com/downloads/details.aspx?FamilyID=2d481579-9a7c-4632-b6e6-dee9097f9dc5&displaylang=en

Edit C:WINDOWSSystem32inetsrvfcgiext.ini

Add the following to the bottom of the file

 

[Types]

php=PHP

 

 

[PHP]

ExePath=C:Program FilesPHPphp-cgi.exe

InstanceMaxRequests=10000

EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000

RequestTimeout=500

ActivityTimeout=900

 

Save the file

 

Restart IIS

Confirm that PHP works

 

============

PHP test file phptest.php

 

<?php phpinfo(); ?>

 

============

 

Bit more of a boost Install eAccelerator http://www.eaccelerator.net/

 

============

 

Troubleshooting

 

If you receive the following error, it is likely that you have a configuration issue with PHP, or the requests are timing out

 

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

FastCGI Error
The FastCGI Handler was unable to process the request.
——————————————————————————–

Error Details:

The FastCGI process exceeded configured activity timeout
Error Number: 258 (0x80070102).
Error Description: The wait operation timed out.
HTTP Error 500 – Server Error.
Internet Information Services (IIS)

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

 

First check PHP; rename php.ini to php.old (make sure that no other php.ini file exists) iisreset, now confirm that PHP loads if PHP now works disable all extensions and test each on in turn.

 

If page is timing out increase the ‘requesttimeou’ in fcgiext.ini

 

Sender Policy Framework (SPF)

Written by admin. Posted in Microsoft

To help reduce spam, domain name owners should configure Sender Policy Framework (SPF). SPF allows email servers (which are configured) to identify messages which are allowed (or not) to use that domain name for sending emails. RFC 4408 defines SPF standards.

SPF helps to reduce spam, for more information please see http://www.openspf.org/Introduction

http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/default.aspx

http://tools.bevhost.com/spf/

http://en.wikipedia.org/wiki/Sender_Policy_Framework

At minimum the following TXT record should be created in DNS

TYPE: TXT

RECORD Name: <blank>

TEXT: v=spf1 a mx ~all

Clustering Hyper-V Much Needed Improvements 951308

Written by admin. Posted in Microsoft

Last night whilst attempting to configure our Hyper-V cluster I managed to hit the following problem when trying to add additional VM’s, which were contained on the same Disk LUN and Server

‘an error was encountered while loading the list of available virtual machines’

”Cannot find path xxx’

HotFix 951308 http://support.microsoft.com/kb/951308 now resolves this issue.

It turns out that you were only ever able to have one VM per Service or Application group which isn’t much good if you have multiple VM’s running on the same Disk LUN. this is now resolved under the following heading ‘Allow for more than one virtual machine in a “Services or Applications” group’

Think I’ve gain a couple more grey hairs over this one!!

Just need Microsoft to resolve the issue where by you cannnot add virtual machines to an already created serviceapplication group which has assign SAN storage. Instead you will need to use the wizard to detect the VM’s and then add your cluster resources to that group (File Share For Example)

Also addedresolved in this hotfix are the following;

  • Changes to the virtual machine view
  • Changes to virtual machine actions
  • Add support for mount points or volumes without a drive letter
  • Changes to the virtual machine refresh action
  • Behavior changes if any node of the failover cluster has a disconnected virtual machine
  • Behavior change when you add a pass-through disk to a virtual machine
  • Behavior change when the parent differencing disk is not on shared storage
  • Volume path copy