<?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>Webologist &#187; linux ubuntu</title>
	<atom:link href="http://www.webologist.co.uk/tag/linux-ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webologist.co.uk</link>
	<description>Internet News, Web Design, Development, Hosting and Optimisation</description>
	<lastBuildDate>Thu, 22 Jul 2010 19:39:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=2094</generator>
		<item>
		<title>FSCK to the rescue &#8211; Duplicate of bad block in use!</title>
		<link>http://www.webologist.co.uk/2008/04/fsck-to-rescue-duplicate-of-bad-block.html</link>
		<comments>http://www.webologist.co.uk/2008/04/fsck-to-rescue-duplicate-of-bad-block.html#comments</comments>
		<pubDate>Thu, 03 Apr 2008 20:22:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bad block]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[linux ubuntu]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=81</guid>
		<description><![CDATA[This morning my Ubuntu OS was running really slowly, and eventually Firefox become unresponsive. I was forced to hit the power switch to reboot, but the reboot failed, due to a &#8220;bad block&#8221; and duplicates. All a bit worrying. This morning I could get nothing to work, and the instructions onscreen were a bit of a read herring, telling me that it could not find apt, and that I needed to &#8220;apt-get install apt&#8221; to fix the problem. Actually the problem started when Ubuntu did a forced disk check, as one had not been done for 180 days. But the check failed (this is copied from the screen, may have some errors): Check failed: Duplicate of bad block in use! So I then did fsck which gave this: Pass 1: Checking inodes, blocks and sizes Quote: Running additional passes to resolve blocks claimed by more than one inode&#8230;. Pass 1B: Rescanning&#8230; Multiply-claimed blocks in inode 7: 8 16 73 Multiply-claimed blocks in inode 3387409: 73 Multiply-claimed blocks in inode 3452049: 1 Multiply-claimed blocks in inode 3452051: 8 Multiply-claimed blocks in inode 3452052: 16 Pass 1C: Scanning directories for indoes with multiply-claimed blocks Pass 1D: Reconciling multiply-claimed blocks (There are 4 [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>This morning my Ubuntu OS was running really slowly, and eventually Firefox become unresponsive. I was forced to hit the power switch to reboot, but the reboot failed, due to a &#8220;bad block&#8221; and duplicates. All a bit worrying. This morning I could get nothing to work, and the instructions onscreen were a bit of a read herring, telling me that it could not find apt, and that I needed to &#8220;apt-get install apt&#8221; to fix the problem.</p>
<p>Actually the problem started when Ubuntu did a forced disk check, as one had not been done for 180 days. But the check failed (this is copied from the screen, may have some errors):</p>
<blockquote><p>Check failed:<br />
Duplicate of bad block in use!</p></blockquote>
<p>So I then did</p>
<blockquote><p>fsck</p></blockquote>
<p>which gave this:</p>
<blockquote><p>Pass 1: Checking inodes, blocks and sizes</p></blockquote>
<p>Quote:</p>
<blockquote><p>Running additional passes to resolve blocks claimed by more than one inode&#8230;.<br />
Pass 1B: Rescanning&#8230;<br />
Multiply-claimed blocks in inode 7: 8 16 73<br />
Multiply-claimed blocks in inode 3387409: 73<br />
Multiply-claimed blocks in inode 3452049: 1<br />
Multiply-claimed blocks in inode 3452051: 8<br />
Multiply-claimed blocks in inode 3452052: 16<br />
Pass 1C: Scanning directories for indoes with multiply-claimed blocks<br />
Pass 1D: Reconciling multiply-claimed blocks<br />
(There are 4 inodes containing multiply claimed blocks)</p>
<p>File /usr/src/linux-headers-2.6.20-15-generic/include/config/8139too/8128.h (inode #3387409, mod time Sun Apr 15 06:03:37 2007)<br />
has 1 multiply-claimed block(s), shared with 1 file(s):  (inode #7, mod time Thu Oct 4 22:19:56 2007)<br />
Clone multiply-claimed blocks?</p></blockquote>
<p>I said yes to this and then a few more&#8230;..</p>
<p>Quote:<br />
Pass 2 through to Pass 5: Checking group summary information<br />
Free blocks wrong for group #1 (29652, counted=2964<br />
Fix?<br />
Which ends in<br />
Quote:</p>
<blockquote><p>/dev/hda1: ***** FILE SYSTEM WAS MODIFIED *****<br />
/dev/hda1: ***** REBOOT LINUX *****<br />
/dev/hda1: 188463/4807488 files (1.1% non-contiguous), 4068761/9612886 blocks<br />
root@computer:~#</p></blockquote>
<p>So I reboot, but then get</p>
<p>Quote:</p>
<blockquote><p>Could not start the X server due to some internal error.</p></blockquote>
<p>I was thinking, maybe I will just reinstall &#8211; if I can recover my web files (not backed up for a while though). But I tried fsck, and after agreeing to all changes, and rebooting, it worked OK again. Phew.</p>
<p>Why did this occur?<br />
Should we run a disk check on a regular basis?<br />
Can I fix this somehow?<br />
Could the error have been caused by a security breach?</p>
<p>It has been suggested that the problem could have been caused by a disk not being unmounted properly, or a knackered HDD, or a problem with memory. With my old pc, it could be all three. Maybe time for a hardware upgrade.</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.webologist.co.uk/2008/04/fsck-to-rescue-duplicate-of-bad-block.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby Gems, Textiles, Redclothes and other new toys</title>
		<link>http://www.webologist.co.uk/2007/11/ruby-gems-textiles-redclothes-and-other-new-toys.html</link>
		<comments>http://www.webologist.co.uk/2007/11/ruby-gems-textiles-redclothes-and-other-new-toys.html#comments</comments>
		<pubDate>Sun, 11 Nov 2007 01:30:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux ubuntu]]></category>
		<category><![CDATA[redcloth]]></category>
		<category><![CDATA[rubygems]]></category>
		<category><![CDATA[synaptic]]></category>
		<category><![CDATA[webgen]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=65</guid>
		<description><![CDATA[While browsing through the Synaptic package manager on Ubuntu, I spotted a web building application called webgen, which is a static website generator. When I first started looking into building websites, I assumed that such a package would be standard, but only now have I found something that seems to be what I have been looking for. I use Google&#8217;s Blogger for created websites / blogs, but I always feel slightly limited by the fact that my files are generate on Google&#8217;s servers, and uploaded to my own. This generally means that it takes longer to generate files than it should, but more importantly, I lose control of the process. If Google takes its servers down for maintainence, I cannot post my blogs, or edit and upload pages. I always thought that Google should offer a downloadable Blogger application so that users can generate their blogs on their own computers. I would have thought that this would save a lot of resources for Google, but as yet they appear not to be going down this route. Webgen is simply described as: &#8220;Webgen is used to generate web pages from page description and template files. You create one template file in [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>While browsing through the Synaptic package manager on Ubuntu, I spotted a web building application called webgen, which is a static website generator. When I first started looking into building websites, I assumed that such a package would be standard, but only now have I found something that seems to be what I have been looking for. I use Google&#8217;s Blogger for created websites / blogs, but I always feel slightly limited by the fact that my files are generate on Google&#8217;s servers, and uploaded to my own. This generally means that it takes longer to generate files than it should, but more importantly, I lose control of the process. If Google takes its servers down for maintainence, I cannot post my blogs, or edit and upload pages. I always thought that Google should offer a downloadable Blogger application so that users can generate their blogs on their own computers. I would have thought that this would save a lot of resources for Google, but as yet they appear not to be going down this route. Webgen is simply described as:</p>
<p>&#8220;Webgen is used to generate web pages from page description and template files.<br />
You create one template file in which you define the layout of your page and<br />
where the content should go. After that you can create page description files<br />
in which you only define the content.&#8221;</p>
<p>Sounds ideal. I use templates, so this should, with any luck, provide a better way for me to create webpages.</p>
<p>Anyhow, I decided to give webgen a go, but have had a few problems. All which seem to be solvable, even by me. On first attempt at installing it, I received several errors, due to dependencies not being present. These dependencies are:</p>
<p>cmdparse version 2.0.0 or higher &#8211; which I think I have&#8230;</p>
<p>RedCloth &#8211; version 2.0.10 or higher for Textile support (needed for examples and included website templates)</p>
<p>Anyway, I tried to reinstall webgen using the command gem install webgen, but this just highlighted a lack of &#8220;gem&#8221;. So I followed the instructions on the terminal, and typed &#8220;sudo apt-get install rubygems&#8221; which set up rubygems version 0.9.0-5. SO, yet another new thing installed on my Linux box, which currently I do not know much about. And I still have not installed webgen.</p>
<p>Next step appears to be &#8220;sudo gem install redcloth&#8221; which gave the message &#8220;Bulk updating Gem source index for: http://gems.rubyforge.org&#8221; and hung for a while, but then continued to inform me that it had successfully installed RedCloth-3.0.4. However, this did not help.</p>
<p>I decided to go back to the Synaptic Package Manager, and looked up Webgen. On it was the option to install libredcloth-ruby and librmagick-ruby which lead to 4 packages being installed.</p>
<p>But I have more problems. On trying to run webgen, I get this message:</p>
<p>&#8220;Markdown not available as content format as BlueCloth could not be loaded: no such file to load &#8212; bluecloth: &#8221; The next logical step then was to &#8220;sudo gem install bluecloth&#8221; which gave the reply &#8220;Successfully installed BlueCloth-1.0.0&#8243;. Can I run Webgen now? No. More problems, and solutions currently unkwown.</p>
<p>Ah, it appears that maybe cmdparse was missing too. So a quick &#8220;sudo gem install cmdparse&#8221; gave:<br />
&#8220;Successfully installed cmdparse-2.0.2<br />
Installing ri documentation for cmdparse-2.0.2&#8230;<br />
Installing RDoc documentation for cmdparse-2.0.2&#8230;&#8221;<br />
I am not sure whether it was there already though, I have a feeling it was already there.</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.webologist.co.uk/2007/11/ruby-gems-textiles-redclothes-and-other-new-toys.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing JAlbum on Ubuntu Linux</title>
		<link>http://www.webologist.co.uk/2007/11/installing-jalbum-on-ubuntu-linux.html</link>
		<comments>http://www.webologist.co.uk/2007/11/installing-jalbum-on-ubuntu-linux.html#comments</comments>
		<pubDate>Sun, 11 Nov 2007 01:17:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gthumb]]></category>
		<category><![CDATA[jalbum]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux ubuntu]]></category>
		<category><![CDATA[ptp]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=64</guid>
		<description><![CDATA[As I use JAlbum to generate web albums, I need to install it onto my Linux machine. To do so I had to upgrade my Java Virtual Machine to Sun&#8217;s latest version. I decided to use the Synaptic Package Manager for this, as I was not entirely sure which packages I needed to install. With a quick search on Synaptic I quickly found the latest Sun Java files and installed them. After this Jalbum installed perfectly. My next task was to upload photos from my Canon EOS 20d camera to Ubuntu. The Canon software that comes with the camera does a fine job on Windows, but this was no use to me. First of all, Ubuntu did not recognise my Camera at all. A quick search revealed that I needed to change the camera&#8217;s communication setting from normal to PTP. I had never even heard of PTP before today. It stands for Picture Transfer Protocol (seems obvious now). According to Wikipedia Picture Transfer Protocol (PTP) is a widely supported protocol developed by the International Imaging Industry Association to allow the transfer of images from digital cameras to computers and other peripheral devices without the need of additional device drivers. Perfect [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>As I use JAlbum to generate web albums, I need to install it onto my Linux machine. To do so I had to upgrade my Java Virtual Machine to Sun&#8217;s latest version. I decided to use the Synaptic Package Manager for this, as I was not entirely sure which packages I needed to install. With a quick search on Synaptic I quickly found the latest Sun Java files and installed them. After this Jalbum installed perfectly.</p>
<p>My next task was to upload photos from my Canon EOS 20d camera to Ubuntu. The Canon software that comes with the camera does a fine job on Windows, but this was no use to me. First of all, Ubuntu did not recognise my Camera at all. A quick search revealed that I needed to change the camera&#8217;s communication setting from normal to PTP. I had never even heard of PTP before today. It stands for Picture Transfer Protocol (seems obvious now). According to Wikipedia Picture Transfer Protocol (PTP) is a widely supported protocol developed by the International Imaging Industry Association to allow the transfer of images from digital cameras to computers and other peripheral devices without the need of additional device drivers. Perfect for me, as this means no drivers are required, so the Canon CD can be put aside for good!</p>
<p>To actually upload the photos I have used gThumb (an image viewer and browser for GNOME), which appears to have some rudimentary editing tools too, and an album generator of sorts too. Really I need to look into it further.</p>
<p>So now I can upload my photos from my digital camera onto my Linux machine, and then generate albums using JAlbum, which runs on Java.</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.webologist.co.uk/2007/11/installing-jalbum-on-ubuntu-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FTP finally set up on Ubuntu, using Proftpd</title>
		<link>http://www.webologist.co.uk/2007/10/ftp-finally-set-up-on-ubuntu-using.html</link>
		<comments>http://www.webologist.co.uk/2007/10/ftp-finally-set-up-on-ubuntu-using.html#comments</comments>
		<pubDate>Mon, 29 Oct 2007 21:07:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ftp home]]></category>
		<category><![CDATA[ftp server]]></category>
		<category><![CDATA[linux ubuntu]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[user ftp]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=60</guid>
		<description><![CDATA[I have almost got my server set up. Today I managed to get the FTP server set up, using ProFTPD. Installing it was a breeze with Linux, as usual, but configuring it was much trickier for me. More steep learning curves. I have managed to set up users with FTP access to their home directories, and as a result I have had to move some sites from /var/www/domains to /home/user/domains. Once moving the directories over I have permission problems, ownership problems and access problems. A bit of chown-ing, chmod-ding and several resetarts later, it was all working. I was mostly getting 550 errors on uploading directories. Following several useful tutorials and doing some serious Googling got me sorted though. Too tired to go into details for this one, but ensuring that the user has full ownership of all directories and it is CHMOD 755 seemed to the the trick. Pretty obvious, but in the process of moving a web directory things got really messed up. Also haveing virtual hosts set up required an additional field in the proftpd.conf file. The good news is that this means is that I can now confidently host sites for my family, as I can [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>I have almost got my server set up. Today I managed to get the FTP server set up, using <a href="http://www.proftpd.org/">ProFTPD</a>. Installing it was a breeze with Linux, as usual, but configuring it was much trickier for me. More steep learning curves. I have managed to set up users with FTP access to their home directories, and as a result I have had to move some sites from /var/www/domains to /home/user/domains. Once moving the directories over I have permission problems, ownership problems and access problems. A bit of chown-ing, chmod-ding and several resetarts later, it was all working. I was mostly getting 550 errors on uploading directories. Following several useful tutorials and doing some serious Googling got me sorted though.</p>
<p>Too tired to go into details for this one, but ensuring that the user has full ownership of all directories and it is CHMOD 755 seemed to the the trick. Pretty obvious, but in the process of moving a web directory things got really messed up. Also haveing virtual hosts set up required an additional field in the proftpd.conf file.</p>
<p>The good news is that this means is that I can now confidently host sites for my family, as I can set up users with home directories, and configure the Apache config files so that they can host websites, including simple static HTML, blogs and even MySQL driven sites. And it is another step towards an alternative career in web design and management, maybe&#8230;&#8230;</p>
<p>One tip for those looking to set up their own FTP, read the tutorials on security, as there are lots of recommended tweaks and additions to the proftpd.conf file to make it more secure, as at less risk of DOS attacks and the such like.</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.webologist.co.uk/2007/10/ftp-finally-set-up-on-ubuntu-using.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Good Tuition Makes Fast Progress with Linux</title>
		<link>http://www.webologist.co.uk/2007/09/good-tuition-makes-fast-progress-with.html</link>
		<comments>http://www.webologist.co.uk/2007/09/good-tuition-makes-fast-progress-with.html#comments</comments>
		<pubDate>Wed, 26 Sep 2007 19:48:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux ubuntu]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=48</guid>
		<description><![CDATA[Got lots of help and advice this evening from my mate who is a bit of a wizard with computers. This evening I learnt these handy commands: (find . -type f -name &#8216;*.htm*&#8217;); do (to find all files within a directory that end in .htm or .hmtl or .htmanything) tar cvzf ~/mybackup.tar . (to back up the current directory to the home directory. cvzf stands for c: create archive, v: verbose, z: use compression, f: use the following filename) ls ~/mybackup.tar (to list the contents of the backup) mv ~/mybackup.tar ~/websites.20070926.tgz (to move the backup into a directory dated today) mkdir ~/websitebackups (to make a new directory in the home directory) mv ~/*tgz ~/*backups (to move all directories ending in tgz to the directory ending in backups &#8211; in this case, moving the one file we created earlier) The purpose of all this was to prepare to change the URLs inside all of my web files from absolute to relative. Still not done that part yet. Oh, I have got as far as changing the permissions across all directories in /var/www/ also, which was simply done by sudo chmod 755 -R * Piece of cake. One last thing was the [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>Got lots of help and advice this evening from my mate who is a bit of a wizard with computers.</p>
<p>This evening I learnt these handy commands:</p>
<p>(find . -type f -name &#8216;*.htm*&#8217;); do<br />
(to find all files within a directory that end in .htm or .hmtl or .htmanything)<br />
tar cvzf ~/mybackup.tar .<br />
(to back up the current directory to the home directory.<br />
cvzf stands for  c: create archive, v: verbose, z: use compression, f: use the following filename)<br />
ls ~/mybackup.tar<br />
(to list the contents of the backup)<br />
mv ~/mybackup.tar ~/websites.20070926.tgz<br />
(to move the backup into a directory dated today)<br />
mkdir ~/websitebackups<br />
(to make a new directory in the home directory)<br />
mv ~/*tgz ~/*backups<br />
(to move all directories ending in tgz to the directory ending in backups &#8211; in this case, moving the one file we created earlier)</p>
<p>The purpose of all this was to prepare to change the URLs inside all of my web files from absolute to relative. Still not done that part yet.</p>
<p>Oh, I have got as far as changing the permissions across all directories in /var/www/ also, which was simply done by</p>
<p>sudo chmod 755 -R *</p>
<p>Piece of cake.</p>
<p>One last thing was the command;</p>
<p>gksu nautilus<br />
(which opens the file server in su mode, so that files can be copied over using the GUI. I am still a bit wet behind the ears, and like the good old drag and drop files in Linux). I will learn to do it all through the terminal eventually. One thing at a time.</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.webologist.co.uk/2007/09/good-tuition-makes-fast-progress-with.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux, Apache, PHP Success. Next MySQL&#8230;</title>
		<link>http://www.webologist.co.uk/2007/09/linux-apache-php-success-next-mysql.html</link>
		<comments>http://www.webologist.co.uk/2007/09/linux-apache-php-success-next-mysql.html#comments</comments>
		<pubDate>Mon, 24 Sep 2007 21:44:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache installation]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux ubuntu]]></category>
		<category><![CDATA[web hosting]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=42</guid>
		<description><![CDATA[Well, everything seems to be going exceptionally smoothly so far. Time for bed now, but next time I will be installing MySQL. Then once that is set up I should in theory have a test environment to test database driven websites such as Drupal and WordPress. And this will help me on my journey to become a web designer, or as decided today, a web solutions manager. Personally, I feel that hacker is still more apt for my skills. But they are getting there. Although I am not entirely sure what I have learnt this evening, other than with Ubuntu / Linux it is very easy to install Apache and PHP. Hopefully I will have time to install MySQL tomorrow night. For now, I want to quickly check that I can view a simple static html page on my Apache web server&#8230;&#8230; Excellent, it worked. In the terminal I typed sudo gedit /var/www/index.html which opened the text editor. I copied the source code of the index page of my Tranquillizer website, saved, then pointed my browser at http://localhost/ and the page is there, in all its glory. Just to be sure (I am like that) I created a page called [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>Well, everything seems to be going exceptionally smoothly so far. Time for bed now, but next time I will be installing MySQL. Then once that is set up I should in theory have a test environment to test database driven websites such as Drupal and WordPress. And this will help me on my journey to become a web designer, or as decided today, a web solutions manager. Personally, I feel that hacker is still more apt for my skills. But they are getting there. Although I am not entirely sure what I have learnt this evening, other than with Ubuntu / Linux it is very easy to install Apache and PHP.</p>
<p>Hopefully I will have time to install MySQL tomorrow night. For now, I want to quickly check that I can view a simple static html page on my Apache web server&#8230;&#8230;</p>
<p>Excellent, it worked. In the terminal I typed</p>
<p>sudo gedit /var/www/index.html</p>
<p>which opened the text editor. I copied the source code of the index page of my Tranquillizer website, saved, then pointed my browser at http://localhost/ and the page is there, in all its glory. Just to be sure (I am like that) I created a page called page.htm and then pointed my browser to http://localhost/page.htm and guess what? It worked. One question I have (which you are free to answer, as I am going to bed now, and will probably forget to look it up) is why when pointing the browser to an non-existent page, the message shown is:</p>
<p>Not Found<br />
The requested URL /page2 was not found on this server.<br />
Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server at localhost Port 80</p>
<p>With no mention of 404. What is 404? When does it get shown?</p>
<p>I guess that the next steps in my wen hosting and Linux server administration journey would be to &#8220;open up&#8221; port 80, and somehow point a website to it. Need to sort out DNS, name servers, IP addresses etc. Do I have a static IP address? What else do I need? More to come&#8230;. more questions, and hopefully soon more answers.</p>
<p>Keep reading, and soon you too will know exactly how to host your own websites. Well, that assumes that I manage to do so without too many problems!</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.webologist.co.uk/2007/09/linux-apache-php-success-next-mysql.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Apache</title>
		<link>http://www.webologist.co.uk/2007/09/installing-apache.html</link>
		<comments>http://www.webologist.co.uk/2007/09/installing-apache.html#comments</comments>
		<pubDate>Mon, 24 Sep 2007 21:05:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache installation]]></category>
		<category><![CDATA[linux ubuntu]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=39</guid>
		<description><![CDATA[OK, this post will seem very strange to most readers. I am in the process of installing Apache onto my Ubuntu distribution, and I want to record everything that happens. So I am simply copying to this blog the terminal output. To most people this will seem like a crazy thing to do, but if I have a problem, then I already have a copy of everything that happened, and can hopefully get some advice! It is also a learning process for me. So here goes. jon@jon-desktop:~$ sudo apt-get install apache2 Password: Reading package lists&#8230; Done Building dependency tree Reading state information&#8230; Done The following extra packages will be installed: apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 libpcre3 libpq5 The following NEW packages will be installed apache2 apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 libpcre3 libpq5 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. Need to get 2311kB of archives. After unpacking 6443kB of additional disk space will be used. Do you want to continue [Y/n]? y Get: 1 http://gb.archive.ubuntu.com feisty/main libapr1 1.2.7-8.1 [109kB] Get: 2 http://security.ubuntu.com feisty-security/main libpq5 8.2.4-0ubuntu0.7.04 [223kB] Get: 3 http://gb.archive.ubuntu.com feisty/main libaprutil1 1.2.7+dfsg-2build1 [70.2kB] Get: 4 http://gb.archive.ubuntu.com feisty/main libpcre3 6.7-1ubuntu2 [167kB] Get: 5 http://security.ubuntu.com feisty-security/main apache2-utils [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>OK, this post will seem very strange to most readers. I am in the process of installing Apache onto my Ubuntu distribution, and I want to record everything that happens. So I am simply copying to this blog the terminal output. To most people this will seem like a crazy thing to do, but if I have a problem, then I already have a copy of everything that happened, and can hopefully get some advice! It is also a learning process for me. So here goes.</p>
<p>jon@jon-desktop:~$ sudo apt-get install apache2<br />
Password:<br />
Reading package lists&#8230; Done<br />
Building dependency tree<br />
Reading state information&#8230; Done<br />
The following extra packages will be installed:<br />
apache2-mpm-worker apache2-utils<br />
apache2.2-common libapr1 libaprutil1<br />
libpcre3 libpq5<br />
The following NEW packages will be installed<br />
apache2 apache2-mpm-worker apache2-utils<br />
apache2.2-common libapr1 libaprutil1<br />
libpcre3 libpq5<br />
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 2311kB of archives.<br />
After unpacking 6443kB of additional disk space will be used.<br />
Do you want to continue [Y/n]? y<br />
Get: 1 http://gb.archive.ubuntu.com feisty/main libapr1 1.2.7-8.1 [109kB]<br />
Get: 2 http://security.ubuntu.com feisty-security/main libpq5 8.2.4-0ubuntu0.7.04 [223kB]<br />
Get: 3 http://gb.archive.ubuntu.com feisty/main libaprutil1 1.2.7+dfsg-2build1 [70.2kB]<br />
Get: 4 http://gb.archive.ubuntu.com feisty/main libpcre3 6.7-1ubuntu2 [167kB]<br />
Get: 5 http://security.ubuntu.com feisty-security/main apache2-utils 2.2.3-3.2ubuntu0.1 [340kB]<br />
Get: 6 http://security.ubuntu.com feisty-security/main apache2.2-common 2.2.3-3.2ubuntu0.1 [930kB]<br />
Get: 7 http://security.ubuntu.com feisty-security/main apache2-mpm-worker 2.2.3-3.2ubuntu0.1 [432kB]<br />
Get: 8 http://security.ubuntu.com feisty-security/main apache2 2.2.3-3.2ubuntu0.1 [38.7kB]<br />
Fetched 2311kB in 3s (649kB/s)<br />
Selecting previously deselected package libapr1.<br />
(Reading database &#8230; 105146 files and directories currently installed.)<br />
Unpacking libapr1 (from &#8230;/libapr1_1.2.7-8.1_i386.deb) &#8230;<br />
Selecting previously deselected package libpq5.<br />
Unpacking libpq5 (from &#8230;/libpq5_8.2.4-0ubuntu0.7.04_i386.deb) &#8230;<br />
Selecting previously deselected package libaprutil1.<br />
Unpacking libaprutil1 (from &#8230;/libaprutil1_1.2.7+dfsg-2build1_i386.deb) &#8230;<br />
Selecting previously deselected package libpcre3.<br />
Unpacking libpcre3 (from &#8230;/libpcre3_6.7-1ubuntu2_i386.deb) &#8230;<br />
Selecting previously deselected package apache2-utils.<br />
Unpacking apache2-utils (from &#8230;/apache2-utils_2.2.3-3.2ubuntu0.1_i386.deb) &#8230;<br />
Selecting previously deselected package apache2.2-common.<br />
Unpacking apache2.2-common (from &#8230;/apache2.2-common_2.2.3-3.2ubuntu0.1_i386.deb) &#8230;<br />
Selecting previously deselected package apache2-mpm-worker.<br />
Unpacking apache2-mpm-worker (from &#8230;/apache2-mpm-worker_2.2.3-3.2ubuntu0.1_i386.deb) &#8230;<br />
Selecting previously deselected package apache2.<br />
Unpacking apache2 (from &#8230;/apache2_2.2.3-3.2ubuntu0.1_all.deb) &#8230;<br />
Setting up libapr1 (1.2.7-8.1) &#8230;</p>
<p>Setting up libpq5 (8.2.4-0ubuntu0.7.04) &#8230;</p>
<p>Setting up libaprutil1 (1.2.7+dfsg-2build1) &#8230;</p>
<p>Setting up libpcre3 (6.7-1ubuntu2) &#8230;</p>
<p>Setting up apache2-utils (2.2.3-3.2ubuntu0.1) &#8230;<br />
Setting up apache2.2-common (2.2.3-3.2ubuntu0.1) &#8230;<br />
Setting Apache2 to Listen on port 80. If this is not desired, please edit /etc/apache2/ports.conf as desired. Note that the Port directive no longer works.<br />
Module alias installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module autoindex installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module dir installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module env installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module mime installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module negotiation installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module setenvif installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module status installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module auth_basic installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module authz_default installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module authz_user installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module authz_groupfile installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module authn_file installed; run /etc/init.d/apache2 force-reload to enable.<br />
Module authz_host installed; run /etc/init.d/apache2 force-reload to enable.</p>
<p>Setting up apache2-mpm-worker (2.2.3-3.2ubuntu0.1) &#8230;<br />
* Starting web server (apache2)&#8230;                              apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName<br />
[ OK ]</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.webologist.co.uk/2007/09/installing-apache.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
