Portable WEMP/WNMP

I am a big fan of portable applications. I love them the way they are instantly usable in different computers. As I am trying my hands on web development, I use XAMPP, WAMP, MAMP all those make use of Apache webserver, MySQL and PHP. I read that http://www.wordpress.com is serving the service with nginx server and I want to try it, if possible in portable way.

And I found the Xeoncross’s WNMP (Windos, Nginx, MySQL, PHP). Here are the steps I took to install wordpress on Windows 7.

Get the files

Download only the compressed files which do not require installation to use the programs

  1. get the Xeoncross’ WNMP (Xeoncross-wnmp-v1.0.0-0-g9c1d833.tar.gz)
  2. get memcached (memcached-1.2.6-win32-bin.zip)
  3. get MySQL (mysql-5.5.11-win.zip)
  4. get nginx (nginx-1.0.0.zip)
  5. get PHP (php-5.3.6-nts-Win32-VC9-x86.zip)
  6. get phpMyAdmin (phpMyAdmin-3.3.10-all-languages.tar.gz)
  7. get wordpress (3.1.1.tar.gz)

Place the files

  1. extract the content of WNMP to d:\wemp\
  2. extract the memcached.exe to d:\wemp\memcached\
  3. extract the contents of MySQL to d:\wemp\MySQL\
  4. extract the contents of nginx to d:\wemp\nginx\
  5. extract the content of PHP to d:\wemp\PHP\
  6. extract the content of phpMyAmdin to d:\wemp\www\phpMyAdmin\
  7. extract the content of wordpress to d:\wemp\www\wordpress\

Configure

  1. for MySQL, rename d:\wemp\MySQL\my-small.ini to my.ini
  2. for NginX, copy d:\wemp\example.nginx.conf to d:\wemp\nginx\conf\, rename nginx.conf to nginx.conf.bak and rename example.nginx.conf to nginx.conf
  3. for PHP, rename d:\wemp\PHP\php.ini - development to php.ini
  4. open the php.ini file in a text editor, remove the ; preceeding extension_dir = "ext"
  5. remove the ; preceeding cgi.fix_pathinfo = 1
  6. remove the ; preceeding extension=php_mbstring.dll
  7. remove the ; preceeding extension=php_mysql.dll, save the file

Run

  1. run d:\wemp\start_server.bat to start running, a few command prompt windows will pop up and disappear

Confirm they are running

  1. open task manager by pressing Ctrl+Shift+Esc
  2. check php-cgi.exe, memcached.exe, mysqld.exe, nginx.exe are running
  3. run the following command in command prompt to change the root password of MySQL
    d:\wemp\mysql\bin\mysqladmin -u root password hereIsYourPassword!
  4. I had problem starting mysqld.exe and I looked the error in d:\wemp\mysql\data\err.log

Test the server and install wodpress

  1. start a browser (make sure there is no proxy)
  2. visit http://localhost/
  3. see the WNMP success page
  4. visit http://localhost/phpMyAdmin/
  5. log in with username root, password hereIsYourPassword!
  6. create a database with the name wordpress
  7. visit http://localhost/wordpress/
  8. start the famous 5 mins installation of wordpress
Advertisements

2 thoughts on “Portable WEMP/WNMP”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s