Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've installed Apache/2.2 and PHP/5.3 lots of times under Windows XP, Windows Vista and Windows Server 2003. The official *.msi installers work fine and configure everything. Now I need to install them into a Windows Server 2008 R2 Standard 64-bit box and I'm facing nothing but problems:

  1. There are no official 64 bit binaries for Apache and no binaries at all for PHP (official or third-party). It's alright, I'll do with good 32 bits, but it's kind of surprising.

  2. Official documentation is vague, generic and completely unaware of UAC or any recent Windows security feature.

  3. The PHP installer is unable to configure mod_php and the Apache installer is unable to configure... well, Apache.

After three hours I've finally reached the point where I'm installing everything in the root folder and assigning full control access to all users in all files and directories and all I've got is a PHP-less Apache server that's able to serve static pages. So I guess it's time to stop and think. My question is:

Has anyone installed an Apache+PHP production server under Windows Server 2008 in a serious, secure and reliable way and documented the whole process? Or should I just find a bundle like XAMPP and the like that requires no installation?

=== EDIT ===

I've installed Xampp Lite 1.7.3 and everything was working in 5 minutes. I'd still like to find some documentation about installing the original packages: XAMPP installs tons of stuff I don't need and offers no tool to enable and disable PHP extensions.

share|improve this question

2 Answers 2

http://www.elxis.org/guides/developers-guides/64bit-apache-php-mysql-windows.html

I found this guide mentioning "unofficial" 64 bit versions of PHP and Apache. I have not tested this myself as I don't have a 64bit 2008 R2 install to test with, but I figured I would pass on any useful information I found concerning this. Also, the guide only mentions getting it to work on 2003/Vista and not 2008 R2. Here are the unofficial builds:

If you got it working under the Xampp 1.7.3 bundle, that might be your best option for the time being even if it does have more than you need. I will update this if I find some more information. Now I want to try and see if I can get this to work.

share|improve this answer
1  
Definitively, XAMPP seems to be the best option. Other third party binaries tend to be obsolete and do not include the MSI installers. I presume you're not supposed to install a production server under Windows Server 2008: Windows support is probably aimed for development only. –  Álvaro G. Vicario Jan 25 '10 at 12:03

I recently installed Apache on Windows Server 2008.

I just downloaded the latest stable release for both software packages. Note that for PHP, you need to keep this in mind (from http://windows.php.net/download/):

If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP.

Now the installer will list Apache 2.x as a configuration option.

If you are able to install, but not configure PHP, please comment on my answer, and I will provide you with some directives on how to set up PHP for apache with 2 lines in the configuration file.

share|improve this answer
    
I'm afraid I don't have a spare server to test (the box that made me start the thread has been in use since I got 32 bit Xampp Lite working on its own top level folder). I understand you were able to install the 32 bit official binaries in the default location and the wizard was able to configure everything properly despite User Account Control; am I correct? –  Álvaro G. Vicario Mar 9 '10 at 12:34
    
I didn't get any User Account Control warnings because I was logged in as an Administrator (which you should be when you install system-wide software). And, yes I was able to install everything just fine. –  user215361 Mar 9 '10 at 13:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.