Setting Up Localhost Server Windows 7 64bit
Steps on setting up (WAMP) a localhost for testing developing parallel to (LAMP) many of my web environments... Also useful for secure inner office, small business databases.
1. First download and install apache:
http://httpd.apache.org/download.cgi
Win32 Binary without crypto (no mod_ssl) (MSI Installer)
Network Domain, Server Name, etc. = localhost
Choose custom and select the directory where you want to install the server files. For my work station all server files will be on a separate drive.
2. Now install PHP:
http://windows.php.net/download/
VC9 x86 Thread Safe zip...
Create a folder to store PHP. Anywhere, in this case in the root of server drive. Unzip php files. Copy and rename desired php.ini file. Update httpd.conf add the following lines (s:/ is my server drive):
LoadModule php5_module "s:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "s:/php"
While you are in there find these lines and edit as needed:
DocumentRoot "S:/websites"
<Directory "s:/websites">
DirectoryIndex index.php index.html index.htm
3. Install MySQL:
http://dev.mysql.com/downloads/
manual install for more control or installer (!64bit version)
Create a new folder for s:\mysql extract files... create my.ini
[mysqld]
basedir="s:/mysql/"
datadir="s:/mysql/data/"
Run cmd.exe as admin, change root password as needed, flush privileges
cd mysql\bin
mysqld --install
Configure php as needed
extension_dir = "s:\php\ext"
extension=php_mysql.dll
extension=php_mysqli.dll
4. Finally phpMyAdmin:
http://www.phpmyadmin.net/home_page/downloads.php
Download and unzip in websites directory, create config.inc.php, edit as needed
$cfg['Servers'][$i]['host'] = '127.0.0.1';