Saturday, November 08, 2008

Getting Wordpress to work with Server2Go

One more topic on Sever2Go and Windows and then I will get back to OpenSolaris.

WordPress is a a popular publishing platform with a focus on aesthetics, web standards, and usability. If you want to get it up and running on a USB stick using Server2Go then read on [see previous post about Server2Go].
  1. Download the latest version in this case 2.6.3

  2. Extract the files to your USB stick under the htdocs directory i.e. \server2go_a2\htdocs

  3. You should now have a directory structure which looks like server2go_a2\htdocs\wordpress

  4. You can now follow the instruction on the wordpress site, but they should go like this:
    • Rename the wp-config-sample.php file to wp-config.php
    • Open wp-config.php in your favorite text editor (Notepad) and edit the top few lines so they look this:
    • define('DB_NAME', 'server2go');
      define('DB_USER', 'root');
      define('DB_PASSWORD', '');
      define('DB_HOST', 'localhost');
      define('DB_CHARSET', 'utf8');
      define('DB_COLLATE', '');



    • Yes username is root and the password is blank.
    • I am using the existing database, but you could create a new one.
    • try the URL http://localhost:4001/wordpress/wp-admin/install.php and see what happens....



    • Well you are on your own now!!!!

2 comments:

Thomas said...

The install worked great - thanks.
When I shut down the browser and Server2Go - it does not retain my wordpress database so I can't go back to it later and finish the project.
How can I get Server2Go to retain the Wordpress database.
It gets deleted every time I shut down my browser and server

Thanks.

Andrew Watkins said...

I guess you are doing this on a USB stick? So, did you do the alterations in my previous post:
http://notallmicrosoft.blogspot.com/2008/11/complete-webserver-of-usb-running-on.html

- edit a file called pms_config.ini
- StartLocal = 1
- LocalMirror = 0

Andrew