Well, I got it all working, well mostly. The blog is now hosted on my virtual Suse 10.2 server. The only issue that I’m still having is getting the colors of my header correct, it doesn’t seem to take any adjustments I make. I probably just need ImageMajik or something like it. I’ll check it when I get a few minutes.
I only dedicated 128 MB RAM to the server and it seems to be doing fine (thank you textmode). Instead of Apache, I’m now using LiteSpeed as my Web server. It’s supposed to work a lot better with Ruby on Rails. While there were a few stumbling blocks along the way, it was a lot easier than I thought it would be and as I suspected I would, I’ve learned a lot since I started this little project two five days ago (I actually finished 3 days ago and have been trying to write this post since then).
Server Installation
I made it through the Virtual Server 2005 R2 installation without incident, and was soon able to boot to a virtual system that wanted a system boot disk. Next I downloaded the Internet installation of Suse 10.2, afterall, I was only installing textmode and didn’t think I would need the whole installation DVD for that. Later I found out that I could have downloaded CD 1 and it would have been a lot easier… furthermore, I would have completely avoided my first pitfall, no swap partition, which resulted in an impass. After googling it a few times, I decided to use Partition Magic to setup a swap partition for the installation to use. Finally, it was installed successfully, on to the software installs.
Software Installation
I found a nice tutorial on howto forge for setting up The Perfect OpenSuse 10.2. This tutorial was invaluable in getting my virtual system ready to host. I had already installed the OS so I skipped ahead to page 5. Now, this tutorial uses Apache and I wanted to use LiteSpeed for my Web server, so that’s one step I skipped. I also didn’t want ISPConfig as I’m only setting up this host for my own personal use… for now. Also, my ISP blocks traffic on port 25, and I like my Google Apps for your Domain, so I didn’t bother with setting up Postfix or POP3/Imap related material. I also skipped the BIND9 install since I don’t have a static public IP address. Besides, I’m happy with EveryDNS.net.
I used wget to download LiteSpeed and the included installer worked very well. I found later, when trying to make my blog work that the included build of PHP wouldn’t work for me. A forum post led me to a howto that detailed building and installing a custom built PHP for LiteSpeed. A couple of things to note:
Be sure to install libxml2-devel:
yast2 -i libxml2-devel
Be sure to include the mySQL client library that came with mySQL (my mySQL base install was in /var/lib/mysql):
./configure '--prefix=/php5' '--with-litespeed' '--with-config-file-path=../conf' '--with-mysql=path_to_mysql_base_install'
Transferring the Blog
I ran into yet another speed bump when trying to access my database from the Windows machine. I remembered to open the port on the firewall and could access it from the server, but I couldn’t get into it from the host system using the root login and the password I had set. After a bit of googling, I found that mySQL is setup to only allow local access to root, so I proceded to allow access from my host machine using the instructions I found on Hard Hat Hosting. It worked perfectly, I now had access to my mySQL installation and was able to use SQLyog to synchronize my database on the Windows system with the database on the Linux system. I made the name and everything else the same so that I wouldn’t have to tweak my config files.
I uploaded the blog files using sftp to a subdirectory of the LiteSpeed server install and used chmod to set them all to read/execute for everyone except me, well actually root.
Setting Up the Virtual Host
I used the nifty LiteSpeed configuration page to add a virtual host. I ended up using the PHP_SuEXEC template and instantiating the member virtual host. I was then able to setup a new listener to direct requests to the correct virtual host. I simply restarted the service by clicking the “Apply Changes” link in the top left corner and voila. My blog is up and running.
Sphere: Related Content