[en] XAMPP for Windows x64

Xampp x64

Although there is no official version of XAMPP for the 64 bit version of Windows, it’s pretty easy to set it up on your own using the official packages.

The whole XAMPP package doesn’t need x64 – some binaries don’t even exist for x64!
There are no visible advantages of the 64-bit version, I would even go so far as to say there are probably more drawbacks as you are left with using unofficial releases. I personally strongly advice you to use the original XAMPP (32 bit) package!

I wrote this tutorial when I just bought a new x64 processor and thought that everything should run like that. The only real advantage is the RAM usage over 4 GB, though this kind of memory management is done by the operating system.

Step 1: Download necessary data

Apache 2.x.x x64 (httpd-2.*x64*.zip) (Apache)
PHPx64.zip (PHP)
Windows (x86, 64-bit), MSI Installer (5.x.x) (mysql-5.5.25-winx64.msi)

Step 2: Unpacking the apache

Unpack the httpd-xx.zip to an arbitrary directory (it really doesn’t matter, you just have to have write access there and you have to consistently use it throughout this tutorial. I have used C:\apache\)

Step 3: Configure

Customize the path variables in C:\apache\conf\httpd.conf:

ServerRoot "C:/apache"
ServerName localhost:80
DocumentRoot "C:/apache/htdocs"
DirectoryIndex index.html, index.htm, index.php
ScriptAlias /cgi-bin/ "C:/apache/cgi-bin/"

Now remove the comment (remove the “#” sign at the beginning of the line) of the entry

LoadModule rewrite_module modules/mod_rewrite.so

Step 4 – Starting Apache

Open the Windows command line (Start -> Run-> cmd) and navigate to your Apache folder (cd c:\apache)

Now run the following commands:

bin\httpd.exe -k install bin\httpd.exe -k start

Your Apache should be running now. Open the “bin” directory in the explorer and start ApacheMonitor.exe.
This tool allows for easy actions on your apache – starting, stopping and restarting

The files for the websites (CMS or forum, blog, etc.) belong in C:\apache\htdocs.

If you want to check if the apache is running properly, create a simple .html document and try navigating to localhost/FILENAME.html in your browser

Step 5 – installing php

Now create a folder in your apache directory called “php” (for example: C:\apache\php).
Extract the contents of the php-zip file here.

Open the Apache configuration file ( C:\apache\conf\httpd.conf ) to specify the path to the PHP module.
Under the existing LoadModule – block add the following statement:

LoadModule php5_module "C:/apache/php/php5apache2_2.dll" AddType application/x-httpd-php .php

Also add the following two lines to be able to tell Apache where to find PHP:

# configure the path to php.ini PHPIniDir "C:/apache/php"

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

No Comments »

No comments yet.

RSS feed for comments on this post.

© Copyright Asmodiel.de