<?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>Albertech.net &#187; Apache</title>
	<atom:link href="http://albertech.net/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertech.net</link>
	<description>Tips, Tricks, and Reviews in Linux, Apache, MySQL, PHP</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:09:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>awstats: Import old log files</title>
		<link>http://albertech.net/2009/09/awstats-import-old-log-files/</link>
		<comments>http://albertech.net/2009/09/awstats-import-old-log-files/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 16:26:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[old logs]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=256</guid>
		<description><![CDATA[One thing I've encountered with Awstats is adding in old apache log files. This is useful if you are migrating data from servers. By default, Awstats will ignore ALL past dates in the log that occur before the most recent log entry date. In order to avoid Awstats from finding the "recent log entry date", you will need move all Awstats cached files into a separate folder. ]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F09%252Fawstats-import-old-log-files%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22awstats%3A%20Import%20old%20log%20files%22%20%7D);"></div>
<p>One thing I&#8217;ve encountered with Awstats is adding in old apache log files. This is useful if you are migrating data from servers. By default, Awstats will ignore ALL past dates in the log that occur before the most recent log entry date. In order to avoid Awstats from finding the &#8220;recent log entry date&#8221;, you will need move all Awstats cached files into a separate folder. I&#8217;ve verified that this works, so if you have any questions feel free to comment.</p>
<p align="left"><strong>1) Locate your awstats data directory.</strong> Most commonly found in /var/lib/awstats</p>
<p align="left">2) <strong>Create a new folder inside the directory</strong>. <strong>Move all awstats* files to the new folder.</strong></p>
<p align="left">3) <strong>Run  awstats update process on all log files in chronological order</strong>. AWStats will not complain about the &#8220;too old record&#8221; because there is no history files in DirData directory that contains compiled data more recent than record.</p>
<p align="left"><strong>Edit the awstats.conf inside /etc/awstats</strong><br />
Locate the Apache logfile you need. It must be the oldest one you want to import. Awstats will chronologically add in the files, so make sure you add them in the right order. Edit the line starting with <strong>LogFile=&#8221;[log file location]</strong>&#8221;</p>
<p>Run the Awstats command (through the web browser or through shell via the perl command line)</p>
<p>4) <strong>Move the history files back.</strong> Once you process through all the logfiles, move the Awstats history files inside the /var/lib/awstats/newfolder back into /var/lib/awstats</p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/09/awstats-import-old-log-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaner URLs in CodeIgniter</title>
		<link>http://albertech.net/2009/08/cleaner-urls-in-codeigniter/</link>
		<comments>http://albertech.net/2009/08/cleaner-urls-in-codeigniter/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 22:13:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=231</guid>
		<description><![CDATA[Here's a quick tip to make cleaner looking URLs in CodeIgniter PHP framework. By default, if you have an application, the path of the application usually ends after index.php.  Using Apache RewriteEngine, you can make cleaner looking URLs. You can have something similar to mysite.com/cigniter/MyApplication instead of mysite.com/cigniter/index.php/MyApplication]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F08%252Fcleaner-urls-in-codeigniter%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Cleaner%20URLs%20in%20CodeIgniter%22%20%7D);"></div>
<p>Here&#8217;s a quick tip to make cleaner looking URLs in CodeIgniter PHP framework. By default, if you have an application, the path of the application usually ends after index.php.  Using Apache RewriteEngine, you can make cleaner looking URLs. You can have something similar to <strong>mysite.com/cigniter/MyApplication</strong> instead of <strong>mysite.com/cigniter/index.php/MyApplication</strong></p>
<ul>
<li><strong>Create a file named &#8220;.htaccess&#8221; inside your root CodeIgniter directory.</strong> It should look like the following:RewriteEngine on<br />
RewriteCond $1 !^(index\.php|images|css|robots\.txt)<br />
RewriteRule ^(.*)$ /[CODE IGNITER BASE]/index.php/$1 [L]where [CODE IGNITER BASE]  is the directory of your Code Igniter install. For instance, if you named your base install folder &#8220;cigniter&#8221;, the Rewrite Rule would look like:RewriteRule ^(.*)$ /cigniter/index.php/$1 [L]</li>
<li><strong>If you get an error</strong>, make sure your Apache install allows for RewriteEngine in that particular folder. This is usually located in /etc/apache2/sites-enabled/YOURSITE The folder needs to have permissions of:AllowOverride AuthConfig<br />
Options +FollowSymlinksSee: <a href="http://www.whoopis.com/howtos/apache-rewrite.html" target="_blank">http://www.whoopis.com/howtos/apache-rewrite.html</a></li>
<li>More info on CodeIgniter framework:<br />
<a href="http://" target="_blank">http://codeigniter.com/</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/08/cleaner-urls-in-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache configuration for Microsoft Office 2007 files</title>
		<link>http://albertech.net/2008/11/apache-configuration-for-microsoft-office-2007-files/</link>
		<comments>http://albertech.net/2008/11/apache-configuration-for-microsoft-office-2007-files/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 19:33:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[apach2]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache2.conf]]></category>
		<category><![CDATA[docx]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[MIME]]></category>
		<category><![CDATA[office 2007]]></category>
		<category><![CDATA[ppsx]]></category>
		<category><![CDATA[xlsx]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=24</guid>
		<description><![CDATA[If you uploaded some Microsoft Office 2007 files onto your Apache server, you will notice that the files will open up as a zip file from your browser. To fix this, you will need to add the new file extensions to the Apache configuration file so that it will know how to set the correct file type. At first, I tried editing the /etc/mime.types file, but that did not work for me. So, I added the file types into the Apache configuration file and voila -- it worked.

In Apache, edit the httpd.conf file. Or, in Apache2 edit the apache2.conf file. Search ... ]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2008%252F11%252Fapache-configuration-for-microsoft-office-2007-files%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Apache%20configuration%20for%20Microsoft%20Office%202007%20files%22%20%7D);"></div>
<p>If you uploaded some Microsoft Office 2007 files onto your Apache server, you will notice that the files will open up as a zip file from your browser. To fix this, you will need to add the new file extensions to the Apache configuration file so that it will know how to set the correct file type. At first, I tried editing the /etc/mime.types file, but that did not work for me. So, I added the file types into the Apache configuration file and voila &#8212; it worked.</p>
<p>In Apache, edit the httpd.conf file. Or, in Apache2 edit the apache2.conf file. Search for the section with the AddType keywords. Make sure you backup the configuration file before making any changes. Add the following lines:</p>
<p><code># MIME type fix<br />
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx<br />
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document .docx<br />
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow .pptx<br />
</code></p>
<p>Make sure to test the syntax of the configuration file using apache2ctl configtest or apachectl configtest. Then restart the Apache service via apache2ctl restart or apachectl restart.</p>
<p>If you need to support all Microsoft Office 2007 file extensions, please check out this <a href="http://www.webmasterworld.com/apache/3539138.htm">webmasterworld post</a>.</p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2008/11/apache-configuration-for-microsoft-office-2007-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
