PHP with MySQL extensions Server 2008 x64

August 3, 2008

Problems arises because the php binaries are 32 bit only.

  • Enable CGI by adding it as a Role Service to IIS.
  • Download http://www.fusionxlan.com/PHPx64/php-5.2.5-x64-2007-11-12.zip and extract to C:\php.
  • Copy libmysql.dll to C:\Windows\System32
  • Copy php.ini-dist to C:\Windows\php.ini
  • Edit php.ini and:
  • Set extension_dir to c:\php\ext
  • Set cgi.force_redirect to 0 and uncomment the line.
  • Enable php_mysql.dll by uncommenting the line.
  • Go to Handler Mappings in IIS
  • Add Module Mapping:
  • Request path: *.php
  • Module: CgiModule
  • Executeable: c:\php\php-cgi.exe
  • Name: PHP
  • Recycle the application pool to reload php.ini

The error 0x80072f0d is received when sending/receiving from outlook 2007 connected to exchange 2007

July 10, 2008

If you have a self signed certificate on your server, continue reading:)

The problem is that the certificate is not installed on the client; navigate to https://your-server and install the certificate.

To make this work, your OAB URL should use a secure connection to your exchange server. To see this, hold ctrl down and right click on the outlook icon next to the watch (on a client). Press test connection, and fill in your password. Look for OAB URL and ensure that it starts with https. If not, go to your exchange server, Exchange Management Console, Server Configuration, Client Access, Offline Address Book Distribution, Right click on OAB, select properties, URLs; replace http with https, so it looks like https://server.domain.dk/OAB.

Wait until the setting is replicated to the outlook clients (restart outlook), and run the test tool again. Now everything should be running.

NB: If you have a Vista client, you have to run internet explorer as administrator to install the certificate. Do this by starting a terminal and type “runas /user:administrator iexplorer”. When installing the certificate, you have to choose the “Place all certificates in the following store”, and then “Trusted Root Certification Authorities”. Good luck…

Making Hyper-V working on HP Proliant ml350 on Server 2008 x64

July 9, 2008

Making this work have taken a couple of days, because different BSODs have appered randomly. I have been talking with HP support, and browsed almost the complete Internet for a solution. Now what I found out…

First, I installed Server 2008 from the DVD without the smartstart CD. This might be wrong, as some of the problems (as far as I know) could be avoided using the CD.

When the server was first installed (2 months ago), Hyper-V where in beta, it was later updated to a RC, and the final version can now be downloaded from:
http://www.microsoft.com/downloads/details.aspx?FamilyId=F3AB3D4B-63C8-4424-A738-BADED34D24ED&displaylang=en.
When upgrading to RC/final, hell began…

To make everything work, make shure that you remove the old Hyper-V role before this final version is installed (did not do that: many things went wrong). When removing the role, the server might not shut down, wait, wait more, then give up and shut it down the hard way.

Start up, the removal might go wrong by saying installing updates stage 3 ??%, if you cannot boot, try again. If still no luck, start in fail safe mode, then reboot.

Install the updated version and reboot, this might go wrong as well (for me it stopped at stage 3, 71%), reboot, try again…

BEGIN NOT NEEDED

Now, if you get some strange errors like that the server gets a STOP 0x000000F4, try to install the newest Broadcom Netxtreme II for BCM5708C from IBM:
http://www-304.ibm.com/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-5070012&brandind=5000020.
It will install the newest driver available.

END NOT NEEDED

Some other strange things happend like I where unable to copy big files (10gb approx) from one place to another on the same disk; it resulted in the same type of blue screen. This issue was resolved by installing the Proliant Support Pack:
http://h18004.www1.hp.com/products/servers/management/psp/index.html.

UPDATE: If you get some strange encryption errors when remotely connecting to your guest OS, then disable “IPv4 Large Send Offload” for the broadcom nic in the advanced tab in device manager; more info:
http://forums.technet.microsoft.com/en-US/winserverhyperv/thread/9a6a45a9-76c2-4067-8fd0-73b5254681d5/.

If the virtual machines looses network connection and have problems stopping, try to set “IPv4 Checksum Offload” to None.

Now, Hyper-V runs smoothly:)
Leave a comment if you have questions, it took me long to find this out:)

XSD Editor in Eclipse 3.4

June 27, 2008

For some reason the nice xsd editor have been removed from the default eclipse installation. To get it back, start eclipse, go to help, software updates, available software, and search for “Web Developer Tools”.

Install this add-on, and you are ready to go.

Xinerama support in rdesktop

June 26, 2008

As of rdesktop version 1.5.0 Xinerama is not supported, but ideas for a patch are in http://joyce.webcreations.ca/rdesktop/rdesktop-1.4.1-xinerama.patch.I have slightly modified the patch, and result can be found in http://kom.aau.dk/~raller/rdesktop-xinerama.patch.

sudo apt-get install devscripts build-essential fakeroot
sudo apt-get build-dep rdesktop
apt-get source rdesktop
cd rdesktop-1.5.0
patch  -p0 < /tmp/rdesktop-xinerama.patch
debuild -us -uc
cd ..
sudo dpkg -i rdesktop*.deb

Now, when entering fullscreen using Ctrl+Alt+Return, fullscreen only runs on the monitor where rdesktop runs.

Move windows between workspaces using keyboard shortcuts

June 18, 2008

Ok, this little how-to describes how to make the moving of windows between workspaces more convenient using shortcuts, instead of the usual way where you have to press on the menu, and choose to which workspace it should be put.

The following instructions makes you able to move the window to another workspace by, when already moving the window, pressing the number of the workspace; e.g. when moving a window around on the screen, press 1, and it will change to workspace 1.

The following assumes that you run ubuntu (8.04), and that you desktop effects are disabled (running metacity). I will come up with a solution for compiz whenever i have time.

First, install required packages.

sudo apt-get install devscripts build-essential fakeroot
sudo apt-get build-dep metacity

Now, download the patch from http://kom.aau.dk/~raller/window_move_workspace.patch, the metacity source, and perform the patching;

apt-get source metacity
cd metacity-2.22.0
patch -p0 < /tmp/window_move_workspace.patch
debuild -us -uc
cd ..
sudo dpkg -i metacity*.deb

That is it. Restart the computer, and you are able to move the windows around easier then ever before:)