<?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; apache</title>
	<atom:link href="http://www.webologist.co.uk/tag/apache/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>Fri, 10 Sep 2010 13:50:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=1473</generator>
		<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>Rock and Roll! .htaccess is running</title>
		<link>http://www.webologist.co.uk/2007/09/rock-and-roll.html</link>
		<comments>http://www.webologist.co.uk/2007/09/rock-and-roll.html#comments</comments>
		<pubDate>Tue, 25 Sep 2007 23:11:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Web Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache installation]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=47</guid>
		<description><![CDATA[OK, just found out where I am going wrong. And I am going wrong in more ways than one. Firstly, I need to modify the /etc/apache2/sites-available/default to allow .htaccess rules to override the httpd.conf. Really I should not use .htaccess, but as I am using my Linux as a test environment for my Tranquillizer website, which does use .htaccess, I will stick with it for now. So this is what I am about to do: In /etc/apache2/sites-available/default: Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # Uncomment this directive is you want to see apache2&#8242;s # default start page (in /apache2-default) when you go to / #RedirectMatch ^/$ /apache2-default/ I shall change &#8220;AllowOverride None&#8221; to &#8220;AllowOverride All&#8221; This tells Apache that it&#8217;s okay to allow .htaccess files to over-ride previous directives. This means that I can get php code parsed inside html files, which is essential for my template system. I place this code into my .htaccess: RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html Then I need to restart Apache so that the changes take effect. I&#8217;ll report back in a moment. Update: Success!!! I did not need to restart Apache, the instruction was: sudo /etc/init.d/apache2 [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>OK, just found out where I am going wrong. And I am going wrong in more ways than one. Firstly, I need to modify the /etc/apache2/sites-available/default to allow .htaccess rules to override the httpd.conf. Really I should not use .htaccess, but as I am using my Linux as a test environment for my Tranquillizer website, which does use .htaccess, I will stick with it for now.</p>
<p>So this is what I am about to do:</p>
<p>In /etc/apache2/sites-available/default:<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
allow from all<br />
# Uncomment this directive is you want to see apache2&#8242;s<br />
# default start page (in /apache2-default) when you go to /<br />
#RedirectMatch ^/$ /apache2-default/</p>
<p>I shall change &#8220;AllowOverride None&#8221; to &#8220;AllowOverride All&#8221;</p>
<p>This tells Apache that it&#8217;s okay to allow .htaccess files to over-ride previous directives. This means that I can get php code parsed inside html files, which is essential for my template system. I place this code into my .htaccess:</p>
<p>RemoveHandler .html .htm<br />
AddType application/x-httpd-php .php .htm .html</p>
<p>Then I need to restart Apache so that the changes take effect. I&#8217;ll report back in a moment.</p>
<p>Update: Success!!! I did not need to restart Apache, the instruction was:</p>
<p>sudo /etc/init.d/apache2 reload</p>
<p>Which seems subtly different. It worked though. So I now have a test web environment for my static pages. Next task is to set up MySQL so that I can test and develop my Drupal, Pligg and phpdirectory subdomains.</p>
<p>Final question I have&#8230;&#8230; and will hopefully find an answer for is:</p>
<p>When viewing pages in http://localhost/ all links obviously point to the &#8220;wrong&#8221; place, i.e. the live website. How do I make it so that tranquillizer.co.uk is always replaced with http://localhost/ ? If that is possible, then I will be able to navigate around my test environment. I am sure it is, and if not, what is the solution to navigating through sites on the server?</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/rock-and-roll.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Apache MySQL PHP Server aka LAMP</title>
		<link>http://www.webologist.co.uk/2007/09/apachemysqlphp.html</link>
		<comments>http://www.webologist.co.uk/2007/09/apachemysqlphp.html#comments</comments>
		<pubDate>Tue, 25 Sep 2007 23:04:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache installation]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=46</guid>
		<description><![CDATA[Just found this page on the Ubuntu website, bookmarking it here. Looks like need to make some changes to get the .htaccess working. Also seems that I could have installed LAMP automatically with this command: To install the default LAMP stack in Ubuntu 7.04 (Feisty Fawn) In Feisty, the Ubuntu base system includes Tasksel. You can either install LAMP using tasksel or install the LAMP packages as detailed above. sudo tasksel install lamp-server The site also explains how to uninstall if everything goes pearshaped. Hopefully it will not come to that!]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>Just found this page on the Ubuntu website, bookmarking it here. Looks like need to make some changes to get the .htaccess working. Also seems that I could have installed LAMP automatically with this command:</p>
<p>To install the default LAMP stack in Ubuntu 7.04 (Feisty Fawn)</p>
<p>In Feisty, the Ubuntu base system includes Tasksel. You can either install LAMP using tasksel or install the LAMP packages as detailed above.</p>
<p>sudo tasksel install lamp-server</p>
<p>The site also explains how to uninstall if everything goes pearshaped. Hopefully it will not come to that!</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/apachemysqlphp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sudo chmod -R 755 ./directory</title>
		<link>http://www.webologist.co.uk/2007/09/sudo-chmod-r-755-articles.html</link>
		<comments>http://www.webologist.co.uk/2007/09/sudo-chmod-r-755-articles.html#comments</comments>
		<pubDate>Tue, 25 Sep 2007 22:53:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Web Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=45</guid>
		<description><![CDATA[I think that I found the solution, or at least a solution (it does not seem ideal). I typed this: sudo chmod -R 755 ./directory and it works. But, this leads to questions: 1. There must be one command to change permissions for all subdirectories? 2. why ./articles and not just articles? When using chmod on my webhost server, I never typed ./ to change permissions for a directory (I use Jumpline.com if that helps at all). 3. Most important question &#8211; is this the correct thing to do, or are there security risks once I go online with my website? Security is something that I know nothing about (yes, even less than I know about Linux in general!) and I keep seeing threads about it, which worries me.]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>I think that I found the solution, or at least a solution (it does not seem ideal).</p>
<p>I typed this:</p>
<p>sudo chmod -R 755 ./directory</p>
<p>and it works.</p>
<p>But, this leads to questions:</p>
<p>1. There must be one command to change permissions for all subdirectories?<br />
2. why ./articles and not just articles? When using chmod on my webhost server, I never typed ./ to change permissions for a directory (I use Jumpline.com if that helps at all).<br />
3. Most important question &#8211; is this the correct thing to do, or are there security risks once I go online with my website? Security is something that I know nothing about (yes, even less than I know about Linux in general!) and I keep seeing threads about it, which worries me.</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/sudo-chmod-r-755-articles.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with permissions</title>
		<link>http://www.webologist.co.uk/2007/09/htaccess-is-missing.html</link>
		<comments>http://www.webologist.co.uk/2007/09/htaccess-is-missing.html#comments</comments>
		<pubDate>Tue, 25 Sep 2007 19:29:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Web Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=44</guid>
		<description><![CDATA[OK, it seems that I have a problem with permissions now (I initially thought that my .htaccess file is missing, which has code in to allow php to be parsed in html files). Anyway, I decided to create a new .htaccess first, using: sudo gedit /var/www/.htaccess and got this message: (gedit:8583): GnomeUI-WARNING **: While connecting to session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed. gedit opened OK, so I went ahead anyway and added my code; RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html But same problem occurred. I then had a hunch that the .htaccess was there all along, chose to view hidden files, and can see it. So, what is the problem? Permissions again? I think so&#8230; I managed to change the permissions of the directory /var/www/ so can now view all items within. However, I cannot seem to view items in the subdirectories, and the php is not being parsed / processed either. I have attempted the following: root@jon-desktop:/var/www# chmod -R 755 *.* and root@jon-desktop:/var# chmod 755 www but still no luck. Regardng the php, maybe the server is not configured correctly. When I had my site [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>OK, it seems that I have a problem with permissions now (I initially thought that my .htaccess file is missing, which has code in to allow php to be parsed in html files).</p>
<p>Anyway, I decided to create a new .htaccess first, using:</p>
<p>sudo gedit /var/www/.htaccess</p>
<p>and got this message:</p>
<p>(gedit:8583): GnomeUI-WARNING **: While connecting to session manager:<br />
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.</p>
<p>gedit opened OK, so I went ahead anyway and added my code;</p>
<p>RemoveHandler .html .htm<br />
AddType application/x-httpd-php .php .htm .html</p>
<p>But same problem occurred. I then had a hunch that the .htaccess was there all along, chose to view hidden files, and can see it. So, what is the problem? Permissions again? I think so&#8230;</p>
<p>I managed to change the permissions of the directory /var/www/ so can now view all items within. However, I cannot seem to view items in the subdirectories, and the php is not being parsed / processed either.</p>
<p>I have attempted the following:</p>
<p>root@jon-desktop:/var/www# chmod -R 755 *.*<br />
and<br />
root@jon-desktop:/var# chmod 755 www</p>
<p>but still no luck. Regardng the php, maybe the server is not configured correctly. When I had my site hosted at 1and1 I could not parse php in html files, which is why I moved to Jumpline. Maybe I have a &#8220;1and1&#8243; set up?</p>
<p>Need professional assistance. Stanbey?</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/htaccess-is-missing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steep learning curve with Apache server</title>
		<link>http://www.webologist.co.uk/2007/09/steep-learning-curve-with-apache-server.html</link>
		<comments>http://www.webologist.co.uk/2007/09/steep-learning-curve-with-apache-server.html#comments</comments>
		<pubDate>Tue, 25 Sep 2007 19:09:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=43</guid>
		<description><![CDATA[OK, last night I installed Apache and PHP. I was going to install MySQL this evening, but I decided that instead I would start with the next project I have, which is updating the template for Tranquillizer. So I thought that the most sensible way to do this would be to upload all the files to the server and work on it in Linux, rather than work on it in the editor then upload to my web host&#8217;s server without any testing. First problem I had was that I did not have permission to copy files to /var/www/ I searched Google, and found an instruction, which I followed: chown -R jon /var/www/ I then simply copied the files from my external USB drive to the directory. I really need to find out how to copy direct from windows. Was asked for a password when I tried. Anyway, once all files were copied over, I pointed the broswer to http://localhost/ again, but this time was greeted with Forbidden You don&#8217;t have permission to access /index.html on this server. Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server at localhost Port 80 So, why is this? Does only user jon have access, and not any browser? Help!]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>OK, last night I installed Apache and PHP. I was going to install MySQL this evening, but I decided that instead I would start with the next project I have, which is updating the template for Tranquillizer. So I thought that the most sensible way to do this would be to upload all the files to the server and work on it in Linux, rather than work on it in the editor then upload to my web host&#8217;s server without any testing.</p>
<p>First problem I had was that I did not have permission to copy files to /var/www/</p>
<p>I searched Google, and found an instruction, which I followed:</p>
<p>chown -R jon /var/www/</p>
<p>I then simply copied the files from my external USB drive to the directory. I really need to find out how to copy direct from windows. Was asked for a password when I tried. Anyway, once all files were copied over, I pointed the broswer to http://localhost/ again, but this time was greeted with</p>
<h1>Forbidden</h1>
<p>You don&#8217;t have permission to access /index.html on this server.</p>
<hr />
<address>Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server at localhost Port 80</p>
<p>So, why is this? Does only user jon have access, and not any browser?</p>
<p>Help!</p>
</address>

<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/steep-learning-curve-with-apache-server.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
