<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wekadesign &#187; server</title>
	<atom:link href="http://www.wekadesign.co.nz/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wekadesign.co.nz</link>
	<description>web apps that solve problems</description>
	<lastBuildDate>Sun, 20 Jun 2010 04:08:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing VMware Server 1.06 on Linux</title>
		<link>http://www.wekadesign.co.nz/2008/06/07/installing-vmware-server-on-linux/</link>
		<comments>http://www.wekadesign.co.nz/2008/06/07/installing-vmware-server-on-linux/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 10:40:47 +0000</pubDate>
		<dc:creator>Mike McMurray</dc:creator>
				<category><![CDATA[Interesting Stuff]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.wekadesign.co.nz/blog/?p=33</guid>
		<description><![CDATA[Installing the free VMware Server is a common but slightly tricky process on some newer Linux systems. Having had to go through it again recently I thought I&#8217;d write some of it down. Of course if you are using Ubuntu 7.10 then the simple option is to enable the Canonical Partner repository and just use [...]]]></description>
			<content:encoded><![CDATA[<p>Installing the free VMware Server is a common but slightly tricky process on some newer Linux systems. Having had to go through it again recently I thought I&#8217;d write some of it down. Of course if you are using Ubuntu 7.10 then the simple option is to enable the Canonical Partner repository and just use Synaptic to select and install VMware Server.</p>
<p>For the others in the audience that are installing on Ubuntu 8.04 or another Linux system that doesn&#8217;t have packages, you should have a working VMware Server install with web interface and a client console by the bottom of the page.<span id="more-33"></span></p>
<h3>Downloads</h3>
<p>There are a few things you will need from VMware&#8217;s site before we kick off. Download these to your server machine.</p>
<p><a href="http://download3.vmware.com/software/vmserver/VMware-server-1.0.6-91891.tar.gz" target="_blank">VMware Server 1.06</a> is the latest version of the free product, released in late May 2008.</p>
<p>The web based Management User Interface (MUI) onto your VMware Server install. The files for VMware Server 1.06 are available <a href="http://register.vmware.com/content/download-106.html" target="_blank">here</a>.</p>
<h3>System Extras</h3>
<p>Your Linux (in this case Ubuntu 8.04) system will require some extra libraries and bits if you haven&#8217;t already done so. Run the following on both the server and the client (if you&#8217;re installing the VMware console too).</p>
<pre>sudo apt-get install build-essential linux-headers-`uname -r` xinetd</pre>
<p>As you progress through the install you may find that your system has extra requirements. It all depends on the setup and libraries already installed on each machine. So you have the option of installing these ones on your server now or just keep going and come back if needed.</p>
<pre>sudo apt-get install libx11-6 libx11-dev libxtst6 libICE6 libxt6 libxrender1 libxi6 xfsprogs</pre>
<h3>Install</h3>
<p>Extract both the tarballs you&#8217;ve download,</p>
<pre><code>tar -xvzf VMware-server-1.0.6-*.tar.gz
tar -xvzf VMware-mui-1.0.6-*.tar.gz</code></pre>
<p>switch to the Server install folder,</p>
<pre>cd <code>vmware-server-distrib</code></pre>
<p>and run the installation script as root,</p>
<pre>sudo ./vmware-install.pl</pre>
<p>You may see errors during the install. If so, run these two commands to cover for a couple of missing libraries for cairo and gcc (tip courtesy of <a href="http://ubuntu-tutorials.com/">Ubuntu Tutorials</a>)</p>
<pre>sudo ln -sf /usr/lib/gcc/i486-linux-gnu/4.2.3/libgcc_s.so /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1</pre>
<pre>sudo ln -sf /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0</pre>
<p>At the end of the install you&#8217;ll be asked for the registration key that you can get from the VMware website. I usually request 10 and copy and paste them to a safe place. Be aware that the Linux and Windows keys are different and can&#8217;t be interchanged.</p>
<p>When the key has been accepted the install tidies up and you should see the VMware Server starting and giving the OK message. To double check, just restart it again with,</p>
<pre>sudo /etc/init.d/vmware restart</pre>
<p>You now have a working VMware Server but no easy way to control it. So we need the MUI and the Console.</p>
<p>Switch folder back to the MUI source folder that you extracted earlier and run the install script,</p>
<pre>sudo ./vmware-install.pl</pre>
<p>Once that&#8217;s completed, you should be able to connect from your client system&#8217;s web browser to https://&lt;server&gt;:8333 as long as you haven&#8217;t changed the port.</p>
<p>Again, depending on the state of your system, you may need to run the following if you have connection problems. I&#8217;ve found this fixes the SSL generation error (&#8220;<em>starting httpd.vmware:-ne failed</em>&#8220;) you may have at the end of the MUI install.</p>
<pre>sudo ln -s -f /bin/bash /bin/sh</pre>
<pre>sudo vmware-config-mui.pl</pre>
<p>Log on to https://&lt;server&gt;:8333 as your server user and you&#8217;ll see you can&#8217;t do too much. No options to create new VMs or change too many options. You need to install the VMWare console on your client machine.</p>
<h3>Client Console Install</h3>
<p>Installing the client console software is pretty easy. If you&#8217;re on a Windows machine just grab the client ZIP file from VMware, extract, double-click and you&#8217;re done.</p>
<p>For the Linux (specifically Ubuntu 8.04) world, use the links on those VMware MUI pages to download the console tarball and extract to a folder on your client machine. Remember that the rest of these instructions should be run on your Linux client and not your server.</p>
<pre>cd vmware-server-console-distrib</pre>
<pre>sudo ./vmware-install.pl</pre>
<p>Just follow the instructions through and accept the defaults. Look out for any ominous error messages, but you shouldn&#8217;t see any.</p>
<p>Test things out by starting the console with,</p>
<pre>/usr/bin/vmware-server-console</pre>
<p>and log on as your server username and password. You can now create a VMware guest and start it up &#8211; as long as you&#8217;ve used a registration key. If you receive errors when starting your guest system via the console, make sure you&#8217;ve installed the libraries noted in the System Extras section. If you still have problems, run the following on the server to see if you have anything specific missing,</p>
<pre>ldd /usr/lib/vmware/bin/vmware-vmx</pre>
<p>Hopefully by now you&#8217;ve got a smile on your face and if not, keep plugging away and feel free to ask any questions in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekadesign.co.nz/2008/06/07/installing-vmware-server-on-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing a Windows Dev Box</title>
		<link>http://www.wekadesign.co.nz/2006/05/14/installing-a-windows-dev-box/</link>
		<comments>http://www.wekadesign.co.nz/2006/05/14/installing-a-windows-dev-box/#comments</comments>
		<pubDate>Sun, 14 May 2006 05:46:24 +0000</pubDate>
		<dc:creator>Mike McMurray</dc:creator>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://wekadesign.co.nz/blog/?p=17</guid>
		<description><![CDATA[In the interest of saving this for future reference, here&#8217;s is a general how-to for installing a Windows based Web development server. The reason for running up a Windows server as opposed to the typical LAMP alternative on Windows was due to frustration. The older Ubuntu server I had just made it very difficult to [...]]]></description>
			<content:encoded><![CDATA[<p>In the interest of saving this for future reference, here&#8217;s is a general how-to for installing a Windows based Web development server.</p>
<p>The reason for running up a Windows server as opposed to the typical LAMP alternative on Windows was due to frustration. The older Ubuntu server I had just made it very difficult to install the versions of PHP and MySQL that I wanted.</p>
<p>Applications I used were:<br />
Apache 2.0.55<br />
PHP 4.4.2<br />
MySQL 4.1.18<br />
Subverison 1.3<br />
<span id="more-17"></span></p>
<p><strong>Download</strong><br />
The application packages you need to download are:<br />
<a href="http://www.apache.org">apache</a>_2.0.55-win32-x86-no_ssl.msi<br />
<a href="http://www.mysql.com">mysql</a>-essential-4.1.18-win32.msi<br />
<a href="http://www.php.net">php</a>-4.4.2-Win32.zip<br />
<a href="http://subversion.tigris.org">svn</a>-1.3.0-setup.exe<br />
<a href="http://dark.clansoft.dk/~mbn/svnservice/">svnservice </a>(to run Subversion as a Windows service/daemon)</p>
<p><strong>Installation</strong><br />
Now we&#8217;ve downloaded the right files we need to install them. for the most part this involves double-clicking the installer package and clicking Next a few times.</p>
<p>Install MySQL and use the Server Config tool to set options including Network Access.<br />
Install Apache to the default location.<br />
Unzip the PHP files to c:\php folder.<br />
Install Subversion using the package defaults.<br />
Unzip the SVNService tool to the Subversion folder and copy the <code>SVNService.exe</code> file to the <code>bin</code> directory.</p>
<p><strong>Configuration</strong></p>
<p><strong>PHP</strong><br />
In the <code>c:\php</code> folder, copy the file <code>php.ini-recommended</code> to <code>php.ini</code>. Change the line that says,<br />
<code>doc_root = </code><br />
to read<br />
<code>doc_root = c:\progra~1\apache~1\apache\htdocs</code></p>
<p>Set the error reporting to a more appropriate level by changing the line that reads,<br />
<code>error_reporting  =  E_ALL</code><br />
to<br />
<code>error_reporting  =  E_ERROR|E_PARSE</code></p>
<p>Copy <code>php.ini</code> to your Windows folder eg. <code>c:\windows\</code></p>
<p>Add the directory path <code>c:\php</code> to your system PATH variable, through My Computerâ†’Propertiesâ†’Advanced<br />
Apache</p>
<p>Open the file c:\progra~1\apache~1\apache\conf\httpd.conf and add the following lines,<br />
<code>LoadModule php4_module "c:/php/php4apache2.dll"</code><br />
and further down,<br />
<code>AddType application/x-httpd-php .php</code></p>
<p><strong>Edit:</strong> I neglected to add in some other lines when writing this. In the Apache conf file&#8217;s Module section add,<br />
<code>LoadModule dav_svn_module "C:/Program Files/Subversion/bin/mod_dav_svn.so"</code><br />
<code>LoadModule authz_svn_module "C:/Program Files/Subversion/bin/mod_authz_svn.so"</code><br />
Of course you should change the path to match that of the library files in your Subversion install folder.</p>
<p>Create a file in <code>c:\progra~1\apache~1\apache\htdocs</code> called <code>test.php</code>. In that file place this text,</p>
<p><code>&lt;?php</code><br />
<code>phpinfo();</code><br />
<code>?&gt;</code></p>
<p>Restart the server</p>
<p>Open your browser and go the URL <em>http://your_server/test.php</em>.</p>
<p>You should see a page listing the current PHP settings. If not, check that the Apache service is running and that you can browse to http://. If that works then check the PHP configuration.</p>
<p><strong>Subversion</strong><br />
Create a folder to hold your Subversion repository eg. <code>c:\svn</code>. In that folder create your folder structure for your code. Check the Subversion docs for the guidelines on how to do this the best way. To simply create a new repository called &#8216;project&#8217; type the following line at a command prompt.<br />
<code>svnadmin create c:\svn\project</code></p>
<p>At a command prompt type,<br />
<code>svnservice -install -d -r c:\svn\project</code><br />
which installs and starts the SVN service and tells it to run as a daemon (-d) and point to your code repository (-r xxxxx).</p>
<p>Open up Apache&#8217;s config file again (httpd.conf) and add the following code at the bottom of the file,<br />
<code>&lt;Location /subversion&gt;<br />
DAV svn<br />
SVNPath c:/svn/project<br />
AuthType Basic<br />
AuthName "Subversion Repository"<br />
AuthUserFile conf/svnusers.conf<br />
Require valid-user<br />
&lt;/Location&gt;</code><br />
This tells Apache that any requests for http://your_server/subversion, will use web_dav to look at your code repository at <code>c:\svn\project</code> and only let authorized users see it.</p>
<p>Now we still need to tell Apache who is allowed to view our Subversion repository and who can read and write to our repo(sitory) too. At the cmd prompt again change directory to your Apache conf folder and type,<br />
<code>htpasswd -c svnusers.conf username</code><br />
making sure you replace the &#8216;username&#8217; with your real username. You&#8217;ll be asked to provide a password for that user which Apache will use.</p>
<p>And in the &#8216;project&#8217; repo at <code>c:\svn\project</code> open the <code>conf</code> folder and edit the svnserve.conf file with a text editor. Uncomment a few lines until you have at least,<br />
<code>[general]<br />
anon-access = read  ## Can be none, read, write<br />
auth-access = write   ## Can be none, read, write<br />
password-db = passwd  ## Filename of users store<br />
realm = My Project</code></p>
<p>Now we need to create a <code>passwd </code>file to store the usernames and password used to control access to the repository. It&#8217;s a s imple as a text file with the lines below in it. Add extra users on new line but watch that both username and password are case sensitive.<br />
<code>[users]<br />
myuser= mypassword</code></p>
<p><strong>Extras</strong><br />
If you are unable to connect to the MySQL server using PHPMyAdmin or similar and receive a message like,<br />
<em>Error 1251: &#8220;Client does not support authentication protocol requested by server; consider upgrading MySQL client&#8221;</em>, do not despair.</p>
<p>From a MySQL prompt on your server run the command below for each affected user@machine combination.</p>
<p><code>SET PASSWORD FOR user@localhost = OLD_PASSWORD('password');</code></p>
<p>Making sure you replace the &#8216;user&#8217; and &#8216;password&#8217; with your own details.</p>
<p><strong>Conclusion</strong><br />
Hope that all made sense, if not just leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekadesign.co.nz/2006/05/14/installing-a-windows-dev-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
