WAMP Setup Guide - Window 7/Vista


Posted by Ben Johnson on 10 November 2012 | 0 Comments

Tags: ,,,,,

This is a quick reference guide on setting up WAMP for development on Windows 7 with:

  • Memcached
  • Send Mail

1. Download/Install WAMP.

Latest is not always the best and well supported. I had a issue with ionCube only suport 32 bit versions of PHP

http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.1/WampServer2.1d-x32.exe/download

Apache: 2.2.17
MySQL: 5.5.8
PHP: 5.3.4

Set auto start: Right click My Computer -> Manager -> Services and Applications -> Services:

Enabled services: "wampmysqld/wampapache", right clicking select properties and set to Auto.

Also WAMP can sometimes cause conflict with Skype when they try to start together.

2. Memcached

Download: http://code.jellycan.com/memcached into: c:\wamp\memcached

Edit properties of memechaced.exe set "Run as administrator"

Run -> cmd
- c:\wamp\memcached\memcached.exe -d install
- c:\wamp\memcached\memcached.exe -d start
- c:\wamp\memcached\memcached.exe -d runservice -m 512 (increase memory limit)

Download: http://code.google.com/p/thinkam/downloads/detail?name=php_memcache-cvs-20090703-5.3-VC6-x86.zip
Into: c:\wamp\bin\php\php5.3.4\ext\php_memcache.dll

php.ini add: extension=php_memcache.dll (or do this all later)

3. Send Mail

Download: http://glob.com.au/sendmail into: c:\wamp\sendmail
Update setting with your email address or make up a testing gMail account. Ensure you enable the settings in gmail to allow external

smtp_server=mail.domain.co.uk
auth_username=mail@domain.co.uk
auth_password=password
;pop3_server=
;pop3_username=
;pop3_password=
hostname= yourdomain.co.uk

3. Set Apache Settings

From the WAMP icon on the desktop, left click: Apache -> Apache Modules

Enabled the follows, or ensure they are selected:

  • autoindex_module
  • expires_module
  • filter_module
  • headers_module
  • rewrite_module
  • vhost_alias_module (c:\wamp\bin\apache\Apache2.2.17\conf\extras)

4. Set PHP.ini Settings

From the WAMP icon on the desktop: PHP -> php.ini (Or manually open from C:\wamp\bin\apache\Apache2.2.17\bin\php.ini)

Find/Update the following options. Manily so there is no limit whne importing into phpmyadmin and you can run large utility scripts via the browser.

post_max_size = 256M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M
upload_max_filesize = 750M
include_path = ".;c:\wamp\www\php\includes"
sendmail_path = c:\wamp\sendmail\sendmail.exe –t

extension=php_curl.dll
extension=php_memcache.dll

Create the php include directory: c:\wamp\www\php\includes

MySQL Settings:

To fix this error: ERROR HY000: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA

From the WAMP icon open: MySQL -> my.ini

Added/replace:

log_bin_trust_function_creators = 1
lower_case_table_names=2

Fix Apache Auto Index Icons:

Edit: c:\wamp\bin\apache\Apache2.2.17\conf\extra\httpd-autoindex.conf
Find: "/httpd-2.2-x64/icons" or some reference to a locations/folders and replace with:

Alias /icons/ "c:/wamp/bin/apache/Apache2.2.17/icons/"
    ** MAKE SURE YOU HAVE FORWARD SLASH AT END
    
<Directory "c:/wamp/bin/apache/Apache2.2.17/icons">

Example vHost:

<VirtualHost *>
    ServerName www.example.local
    ServerAlias example.local *.example.local
    DocumentRoot "c:\wamp\www\"
    <Directory "c:\wamp\www\">
        Options Indexes FollowSymLinks Includes
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Post your comment

Comments

No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments