Before you start off, use Ubuntu's x86(32-bit image), as this will allow you to use both 32-bit and 64-bit machines. Yes, a 32-bit of the server is also available, just take look at the Alternative Downloads page.
Also, I use Lili because its easy and I use Windows for setting up Ubuntu. You can use any other application, although for Method 2, you need an application which allows you to create Persistent Storage.
For method 1, you need another thumb drive(hereon referred to as Thumb drive 2), where you can use a software like LiLi to get that thumb drive bootable to install Linux.(I will also be calling the pendrive which you want to install the portable Ubuntu server version as Thumb Drive 1)
For method 2, you require only one thumb drive(Thumb Drive 1)
Method 1 -
It seems easy(just kidding no not that much).
- Make thumb drive 2 a bootable Ubuntu installer(eg Using LiLi).(Or, you can even use a CD, and, you need a PC anyways to start off)
- Install Ubuntu onto Thumb Drive 1, by booting into Thumb Drive 2, so that Thumb drive 1 will now have a fully functional copy of Ubuntu server(You might want to configure it immediately, as the option to install a LAMP server is shown during the installation of Ubuntu Server).
- Boot into Thumb Drive 1, and configure the server as per your wish.
Method 2 -
- Using a software that installs a Live Image onto Thumb Drive 1 (I prefer Lili, again), use Persistence to allow for storing of data.
- Boot into Thumb Drive 1, and configure it.
I personally prefer Method 1, as that way, drivers are installable easily, although rarely, it might not boot properly on certain machines(Not sure about this one, might happen between different chipsets, that is, if you switch between Intel and AMD) .
Various Links -
- How to install a LAMP Server
- Download Lili (Windows)
- Ubuntu Images - Alternative Downloads