Mentioned this before, Windows Apache is 32bit strict. Period.
So, how can I overcome the gap this produces in my productivity? Well, no way around a virtual pc installation. The greatly announced XPMode, which is a blend of Virtual PC and RDP, does no good here, as far as I've tested. So, VPC it is. After setting up XP on a virtual machine, I configured the desired apache vhosts and modified the vpc's hosts file accordingly. In order to make a call to those host names from my 64bit system, I also had to touch the win7 hosts file and enter the same host names, but redirect them to the VPC this time. Note that the resolution was a bit fussy - using the VPC's machine name failed, it had to be its IP.
Eventually, one more thing to consider : Where will my document root be? Clearly, the best way would have been putting it on a double-secured NAS, but no such thing is available here =) So I tried two ways:
1) Host Filesystem (Physical), then making this path available to the server to access via VPC Setting. This caused some trouble when the webserver tried to write back the compiled Templates. Probably solvable, but don't feel like trying now.
2) Server Filesystem (Virtual), Sharing the Document Root so that the host system can access it as a Network share. This works like a charm, but one drawback is that in the Eclipse-based Zend IDE linking Source Folders (PHP Explorer->build path->link source) works with local files only. Attaching a Network drive to the share circumvents this. Another drawback is that the files reside in that virtual harddisk and not as files on the physical disk.
This way, I can use my IDE in Win7 64bit and have a webserver on the same machine (sort of). I'd be most gracious if anybody told me that Apache could be run natively (and I don't mean blackdot.be's build) under 64bit Windows 7...
No comments:
Post a Comment