Archived entries for general

How to setup a WAMP working environment

Most of you probably work on multiple projects, at the same time, with multiple workspaces defined in your IDE, with different Apache server configurations on each of them. That’s a lot of variables, isn’t it? What about unifying things? What about getting all together? In the last years, I’ve managed to work with several server configurations, but most of them focused on Apache (both v1 and v2). Experience tells me that separating server from your workspace is the best way to do:

  1. your projects should not be in the server’s folder
  2. all projects should be in one folder, a workspace
  3. both projects and workspace should not be near the OS (I’m thinking about Windows here)

So, either you work on Windows, OS X, or Linux, either you use XAMP, WAMP or MAMP, or pure httpd/apache, your system&server configuration can be used for multiple projects. Bellow I’ve sketched a step-by-step guide on how to rapidly configure a Win box for this purpose. The guide can be ported to both OS X & Linux machines, with the appropriate software. Here we go:

  1. download WampServer
  2. install wampserver in a E:\server folder
  3. sort & get your projects into a E:\workspace folder
  4. open E:\server\bin\Apache2.2.11\conf\httpd.conf
    • enable mod_rewrite.so by removing the hash sign
    • enable conf/extra/httpd-vhosts.conf by removing the hash sign
  5. now, for each domain.tld you should:
    • open C:\windows\system32\drivers\etc\hosts
      • add the following line
      1
      127.0.0.1               domain.tld
    • open E:\server\bin\Apache2.2.11\conf\extra\httpd-vhosts.conf
      • replace the old NameVirtualHost by commenting the directive, and add a new record for each domain
      1
      2
      #NameVirtualHost *:80
      NameVirtualHost domain.tld
      • add following for the localhost
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      <VirtualHost localhost>
          ServerAdmin webmaster@localhost
          DocumentRoot "E:/server/www"
          DirectoryIndex index.php
          <Directory "E:/server/www">
              AllowOverride All
              Allow from All
          </Directory>
          ServerName localhost
          ErrorLog "logs/localhost-error.log"
          CustomLog "logs/localhost-access.log" common
      </VirtualHost>
      • add vhost settings for your domain.tld, and for each other domains, as much as you want
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      <VirtualHost domain.tld>
          ServerAdmin webmaster@domain.tld
          DocumentRoot "E:/workspace/domain.tld"
          DirectoryIndex index.php
          <Directory "E:/workspace/domain.tld">
              AllowOverride All
              Allow from All
          </Directory>
          ServerName domain.tld
          ErrorLog "logs/domain.tld-error.log"
          CustomLog "logs/domain.tld-access.log" common
      </VirtualHost>

Now you can happily drink a beer and enjoy! ;)

Leaving the ship

At last, I can make this official.

Starting 30th of October I’ll leave Waterford Research Institute Romania. It was a pleasure to work and collaborate with Waterford Romania, but it is time to move forward to new challenges and new responsibilities.

So, the following steps will be to reboot (for the 3rd time) this blog, even there aren’t so much posts as expected, and redesign/rethink my whole online presence.

Thank you all!

Premio Dardos Award

As my fellow friend has awarded me with the Premio Dardos Awar, it is my duty to uphold the tradition. Thanks to Daniel’s awarness, I will follow the buzz and reward other fellows for their outstanding work and contribution to the Internet sphere and interest for a better world:

  1. Daniel Secareanu
  2. Emil Tamas
  3. Dan Patrascu
  4. Valentin Vieriu (update)
  5. Diana Campean (update)

These are my first line fellow bloggers. Please read’em and follow them, because they represent several domains and have different type of approaches. Much thanks!



Copyright © 2004–2009. All rights reserved.

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.