<?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>Tequila Fish &#187; Linux</title>
	<atom:link href="http://www.tequilafish.com/category/tech/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tequilafish.com</link>
	<description>Ran-dumb ramblings of me...</description>
	<lastBuildDate>Wed, 28 Jul 2010 02:58:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>eAccelerator and open_basedir: open_basedir restriction in effect. File() is not within the allowed path(s):</title>
		<link>http://www.tequilafish.com/2010/07/22/eaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths/</link>
		<comments>http://www.tequilafish.com/2010/07/22/eaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 22:48:46 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=417</guid>
		<description><![CDATA[After installing eAccelerator on a CentOS 5.5 server running PHP 5.2.10, a bunch of websites began failing with open_basedir errors like so: [Fri Jul 16 17:53:50 2010] [error] [client XX.XX.XXX.XXX] PHP Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/username/) in /home/username/public_html/wp-settings.php on line 19, referer: http://www.server.com/ After doing [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2010%2F07%2F22%2Feaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2010%2F07%2F22%2Feaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>After installing <a href="http://eaccelerator.net/">eAccelerator</a> on a CentOS 5.5 server running PHP 5.2.10, a bunch of websites began failing with open_basedir errors like so:</p>
<p><code>[Fri Jul 16 17:53:50 2010] [error] [client XX.XX.XXX.XXX] PHP Warning:  require() [<a href='function.require'>function.require</a>]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/username/) in /home/username/public_html/wp-settings.php on line 19, referer: http://www.server.com/</code></p>
<p>After doing some research it turns out that a default option that is compiled into eAccelerator is incompatible with open_basedir.  The fix is easy enough, simply re-compile with the <strong>--without-eaccelerator-use-inode</strong> option like so:</p>
<p><code>make clean<br />
phpize<br />
./configure --without-eaccelerator-use-inode<br />
make<br />
make install</code></p>
<p>After re-compiling and installing, make sure you clear out the existing eAccelerator files before restarting Apache:</p>
<p><code>rm -rf /var/cache/eaccelerator/*<br />
apachectl restart</code></p>
<p>eAccelerator states that the next version will have this compile option set by default.</p>
<p>Reference:</p>
<ul>
<li><a href="http://eaccelerator.net/ticket/414">http://eaccelerator.net/ticket/414</a></li>
<li><a href="http://eaccelerator.net/ticket/104">http://eaccelerator.net/ticket/104</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2010/07/22/eaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slicehost: Setting up a Tor relay on Fedora to help keep Iran connected #IranElection</title>
		<link>http://www.tequilafish.com/2009/06/21/slicehost-setting-up-a-tor-relay-on-fedora-to-help-keep-iran-connected-iranelection/</link>
		<comments>http://www.tequilafish.com/2009/06/21/slicehost-setting-up-a-tor-relay-on-fedora-to-help-keep-iran-connected-iranelection/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 20:23:50 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[#iranelection]]></category>
		<category><![CDATA[bittorrent]]></category>
		<category><![CDATA[dcma]]></category>
		<category><![CDATA[iran]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[tor]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=319</guid>
		<description><![CDATA[As many of you know, most of the information from within Iran is coming from on-the-ground new-media and social networking sites such as Twitter, YouTube, and Facebook. This is happening despite crackdowns on communications networks by the Iranian government. The way this information is able to escape the firewalls of Iran is via proxies which [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2009%2F06%2F21%2Fslicehost-setting-up-a-tor-relay-on-fedora-to-help-keep-iran-connected-iranelection%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2009%2F06%2F21%2Fslicehost-setting-up-a-tor-relay-on-fedora-to-help-keep-iran-connected-iranelection%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>As many of you know, most of the information from within Iran is coming from on-the-ground new-media and social networking sites such as <a href="http://twitter.com/#search?q=%23iranelection">Twitter</a>, YouTube, and Facebook.  This is happening despite crackdowns on communications networks by the Iranian government.  The way this information is able to escape the firewalls of Iran is via proxies which relay and "hide" the destination of the communications so that it becomes difficult to block.  This allows those on the ground in Iran to communicate with the world instantly and effectively, without fear of government crackdown.  But it is a constant arms race.  As soon as a relay becomes known by the Iranian government it gets shut down.  The only way to keep the lines of communication open are to strengthen the distributed Tor network by adding more relays and bridges, making it more difficult for the Iranian government to block them all.</p>
<p>There have already been great write-ups on how you can contribute to the distributed proxy network <a href="http://www.torproject.org/">Tor</a>:<br />
<a href="http://anonygreen.wordpress.com/2009/06/18/how-to-setup-a-tor-relay-or-tor-bridge/">http://anonygreen.wordpress.com/2009/06/18/how-to-setup-a-tor-relay-or-tor-bridge/</a><br />
<a href="http://smokingfish.blogspot.com/2009/06/brief-introduction-to-tor-and-why-its.html">http://smokingfish.blogspot.com/2009/06/brief-introduction-to-tor-and-why-its.html</a></p>
<p>Please read over those documents for an overview.  I wanted to provide detailed instructions on how to get a Tor network set up quickly, easily, and cheaply for those of you who would like to contribute.  <strong style="color: #41A801;">You can provide invaluable assistance to the people of Iran for as little as 15 minutes of your time and $20/month</strong>.  </p>
<p><strong style="color: #41A801;">First off, this document assumes you have some system administration knowledge with Linux (Fedora) and are comfortable installing and configuring packages from the command line.</strong>  If that's you, you can have a Tor relay up and running in about 15 minutes.</p>
<p><strong>Key:</strong><br />
Shell commands are in <strong style="color: #9241AF;">purple</strong><br />
Config file settings are in <strong style="color: #3B6BBF;">blue</strong></p>
<ol>
<li>
<h2>Register at Slicehost</h2>
<p>Slicehost is a VPS provider that allows you to quickly build/deploy webservers very cheaply.  <a href="https://manage.slicehost.com/customers/new?flavor=1">Sign up here</a> and purchase the cheapest $20 slice to get started.  Pick <strong>Fedora 10</strong> as your Linux Distribution.  Do not pick Fedora 11, as it is incompatible with the current version of Tor.  Once you are registered, Slicehost will email you your IP and root password.  It can take a few minutes to build your new slice, so be patient.</li>
<li>
<h2>Slice Security</h2>
<p>Log in to your new slice.  Please note that this document covers the bare minimum of commands to get Tor up and running.  You should follow due diligence when it comes to securing your new slice, something which is outside the scope of this document.  Common practice security configurations are recommended.  <strong>Security is your own responsibility, and I will not be held liable for any security issues with your slice.</strong>  There are a few bare-minimum security things you should do to your slice:</p>
<p><strong>Change the root password:</strong><br />
<span style="color: #9241AF;">&nbsp;&nbsp;&nbsp;&nbsp;passwd root</span></p>
<p><strong>Create your own account &#038; set password:</strong><br />
<span style="color: #9241AF;">&nbsp;&nbsp;&nbsp;&nbsp;adduser yourusername<br />
&nbsp;&nbsp;&nbsp;&nbsp;passwd yourusername</span></p>
<p><strong>Disable root login to ssh</strong><br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #9241AF;">vim /etc/ssh/sshd_config</span><br />
&nbsp;&nbsp;&nbsp;&nbsp;Change to this: <span style="color: #3B6BBF;">PermitRootLogin no</span><br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #9241AF;">service sshd restart</span></p>
<p>These steps are the <strong>BARE MINIMUM</strong> you should do to secure your slice.
</li>
<li>
<h2>Update Your System</h2>
<p><span style="color: #9241AF;">yum -y update</span></li>
<li>
<h2>Install Prerequisites</h2>
<p><span style="color: #9241AF;">yum install wget vim-enhanced gcc make libevent libevent-devel openssl openssl-devel zlib zlib-devel rpm-build</span></li>
<li>
<h2>Download Tor &#038; Signature</h2>
<p><span style="color: #9241AF;"><br />
wget https://www.torproject.org/dist/rpm/tor-0.2.1.16.rc-tor.0.fc10.src.rpm<br />
wget https://www.torproject.org/dist/rpm/tor-0.2.1.16.rc-tor.0.fc10.src.rpm.asc<br />
</span></p>
</li>
<li>
<h2>Verify Packages</h2>
<p>Follow directions at <a href="http://www.torproject.org/verifying-signatures.html.en">http://www.torproject.org/verifying-signatures.html.en</a> to verify that you have an authentic RPM and not a fake.
</li>
<li>
<h2>Build &#038; Install Tor</h2>
<p><span style="color: #9241AF;"><br />
rpmbuild &#45;&#45;rebuild tor-0.2.1.16.rc-tor.0.fc10.src.rpm<br />
rpm -i rpmbuild/RPMS/x86_64/tor-0.2.1.16.rc-tor.0.fc10.x86_64.rpm<br />
</span>
</li>
<li>
<h2>Configure Tor</h2>
<p><span style="color: #9241AF;">vim /etc/tor/torrc</span></p>
<p>Change the following settings, substituting your own values for Nickname and Address:<br />
<span style="color: #3B6BBF;"><br />
DataDirectory /var/lib/tor<br />
ORPort 9001<br />
DirPort 9030<br />
Nickname YOUR_NICKNAME<br />
Address YOUR.IP.ADDRESS.XX<br />
</span><br />
Save &#038; Exit
</li>
<li>
<h2>Set Bandwidth Limits for Tor</h2>
<p>These settings are largely dependent on which slice you have purchased.  The ones you see below are for a 20GB slice, and they allow 2GB of transfer per day, so you should be well within the 20GB slice limit of 100GB/month.  If you have purchased a larger slice, these settings can be increased accordingly.  <strong style="color: #8F0808;">Be careful here, incorrect settings can push you over your monthly bandwidth limit very quickly!</strong>  I did over 12GB of transfer in a little over 8 hours before limiting bandwidth with these settings.</p>
<p><span style="color: #9241AF;">vim /etc/tor/torrc</span><br />
<span style="color: #3B6BBF;"><br />
RelayBandwidthRate 64 KBytes<br />
RelayBandwidthBurst 128 KBytes<br />
AccountingStart day 12:00<br />
AccountingMax 2 GB<br />
</span><br />
Save &#038; Exit.  The AccountingStart and AccountingMax settings will limit 2GB max transfer per day, resetting at 12:00 every day.  The RelayBandwidthRate and RelayBandwidthBurst settings throttle the bandwidth so that you don't reach AccountingMax after only a few hours.  Normally AccountingStart and AccountingMax would be enough to stay within your bandwidth limits, but I want my relay to be available all day rather than reaching AccountingMax and shutting down after a few hours.
</li>
<li>
<h2>Configure Your Firewall</h2>
<p><span style="color: #9241AF;">iptables-save > /etc/sysconfig/iptables.default<br />
iptables-save > /etc/sysconfig/iptables.test<br />
vim /etc/sysconfig/iptables.test<br />
</span><br />
Insert the following settings:<br />
<span style="color: #3B6BBF;"><br />
	# tor ORPort &#038; DirPort<br />
	-A INPUT -p tcp --dport 9001 -j ACCEPT<br />
	-A INPUT -p tcp --dport 9030 -j ACCEPT</span></p>
<p><span style="color: #3B6BBF;"><br />
	# tor Allow all outbound traffic<br />
	-A OUTPUT -j ACCEPT<br />
</span><br />
Save &#038; Exit.<br />
<span style="color: #9241AF;"><br />
iptables-restore < /etc/sysconfig/iptables.test<br />
iptables -L</span> (verify the rules are correct)<br />
<span style="color: #9241AF;">iptables-save > /etc/sysconfig/iptables</span><br />
</span></li>
<li>
<h2>Increase the number of open file descriptors</h2>
<p><span style="color: #9241AF;">vim /etc/security/limits.conf</span></p>
<p>Add this line:</p>
<p><span style="color: #3B6BBF;">_tor hard nofile 32768</span></p>
<p>Save &#038; Exit
</li>
<li>
<h2>Start up the Tor Service</h2>
<p><span style="color: #9241AF;">service tor start</span></li>
<p>If everything starts correctly, you should see output like this:<br />
<code>Starting tor: Jun 21 15:44:04.219 [notice] Tor v0.2.1.15-rc. This is experimental software. Do not rely on it for strong anonymity. (Running on Linux x86_64)<br />
Jun 21 15:44:04.219 [notice] Your ContactInfo config option is not set. Please consider setting it, so we can contact you if your server is misconfigured or something else goes wrong.<br />
Jun 21 15:44:04.223 [notice] Initialized libevent version 1.4.5-stable using method epoll. Good.<br />
Jun 21 15:44:04.223 [notice] Opening OR listener on 0.0.0.0:9001<br />
Jun 21 15:44:04.223 [notice] Opening Directory listener on 0.0.0.0:9030<br />
Jun 21 15:44:04.223 [notice] Opening Socks listener on 127.0.0.1:9050<br />
/usr/bin/torctl start: tor started  [  OK  ]</code></p>
<p>Also, you should view the tor.log and verify that you see the following (after 20-minutes):</p>
<p><span style="color: #9241AF;">cat /var/log/tor/tor.log</span></p>
<p><code>Jun 21 15:44:13.835 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.<br />
Jun 21 15:44:13.835 [notice] Bootstrapped 100%: Done.<br />
Jun 21 15:44:13.835 [notice] Now checking whether ORPort XXX.XXX.XXX.XXX:9001 and DirPort XXX.XXX.XXX.XXX:9030 are reachable.. (this may take up to 20 minutes &#45;&#45; look for log messages indicating success)<br />
Jun 21 15:44:18.492 [notice] Self-testing indicates your DirPort is reachable from the outside. Excellent.<br />
Jun 21 15:44:18.492 [notice] Not advertising DirPort (Reason: AccountingMax enabled)<br />
Jun 21 15:44:26.804 [notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor.<br />
Jun 21 15:44:43.813 [notice] Performing bandwidth self&#45;test.. done.</code></p>
<p>If you see some errors or it doesn't start correctly, post in the comments and I'll see if I can help you out.  Here are some references to help you get it going:<br />
<a href="http://www.torproject.org/docs/tor-doc-unix.html.en#installing">http://www.torproject.org/docs/tor-doc-unix.html.en#installing</a><br />
<a href="http://www.torproject.org/docs/tor-doc-relay.html.en">http://www.torproject.org/docs/tor-doc-relay.html.en</a>
</ol>
<p>That's it!  You now have a fully functioning Tor Relay and are helping the Iranian people get news and information out to the rest of the world.  The cool thing about Slicehost is that you can easily upgrade your Slice with the click of a button to allow more bandwidth, RAM, and other resources.  They also have a Clone option so that once you have your initial Tor slice running, you can clone it multiple times so that you can have multiple Tor servers at a time.</p>
<p>More good reads on Tor and its effect in Iran:<br />
<a href="http://blog.torproject.org/blog/measuring-tor-and-iran">http://blog.torproject.org/blog/measuring-tor-and-iran</a><br />
<a href="http://p10.hostingprod.com/@spyblog.org.uk/blog/2009/06/tor-relays-and-exit-nodes-for-iran-and-for-the-rest-of-us.html">http://p10.hostingprod.com/@spyblog.org.uk/blog/2009/06/tor-relays-and-exit-nodes-for-iran-and-for-the-rest-of-us.html</a></p>
<h2>Update 1 - Preventing Abuse by BitTorrent Users</h2>
<p>A couple of days after setting up my Tor slice, I received a Digital Millennium Copyright Act (“DMCA”) notice that my relay was hosting copyrighted material and that I would be required to remove it or face having my Slice shut down.  Turns out that there are people out there using BitTorrent over the Tor network to transfer copyrighted material.  Philosophical debates about BitTorrent and copyright law aside, the whole reason why I am running Tor is to help those in Iran stay connected -- not to assist in the distribution of copyrighted material.  So, after a few minutes of research, I found out we can prevent Tor being used by BitTorrent by adjusting your <strong>ExitPolicy</strong>:</p>
<p><span style="color: #9241AF;">vim /etc/tor/torrc</span></p>
<p>Add the following:<span style="color: #3B6BBF;"><br />
  ExitPolicy reject *:1214<br />
  ExitPolicy reject *:4661-4666<br />
  ExitPolicy reject *:6346-6429<br />
  ExitPolicy reject *:6881-6999<br />
</span><br />
Save &amp; Exit<br />
Restart Tor: <span style="color: #9241AF;">service tor restart</span></p>
<p>You should also probably follow the advice at <a href="http://blog.torproject.org/blog/tips-running-exit-node-minimal-harassment">http://blog.torproject.org/blog/tips-running-exit-node-minimal-harassment</a></p>
<p>References:<br />
<a href="http://www.torproject.org/faq.html.en#ExitPolicies">http://www.torproject.org/faq.html.en#ExitPolicies</a> - Exit Policies in Tor<br />
<a href="https://www.torproject.org/eff/tor-dmca-response.html">https://www.torproject.org/eff/tor-dmca-response.html</a> - DCMA Response Template<br />
<a href="http://www.orient-lodge.com/node/3622?dsq=11687593">http://www.orient-lodge.com/node/3622?dsq=11687593</a> - A Slicehost user who also received a DCMA notice<br />
<a href="http://www.chrisbrunner.com/?p=119">http://www.chrisbrunner.com/?p=119</a> - Why You Shouldn’t Run BitTorrent Over Tor</p>
<h2>Update 2 - Slicehost Responds</h2>
<p>After making the adjustments above, I notified Slicehost of my changes and they have responded:<br />
<code>Thank you for your response.  We will go ahead and consider this matter resolved.  Thank you for your attention to this matter.</code><br />
Gotta give them credit for understanding that we're trying to help people in Iran -- not to pirate movies.  Thanks Slicehost!</p>
<h2>Update 3 - Upgraded to 0.2.1.16 &#038; Config Adjustments</h2>
<p>I received some configuration recommendations from Andrew Lewman of The Tor Project, and have updated the steps above accordingly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2009/06/21/slicehost-setting-up-a-tor-relay-on-fedora-to-help-keep-iran-connected-iranelection/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Apache: Address already in use: make_sock: could not bind to address 0.0.0.0:80</title>
		<link>http://www.tequilafish.com/2009/03/08/apache-address-already-in-use-make_sock-could-not-bind-to-address-000080/</link>
		<comments>http://www.tequilafish.com/2009/03/08/apache-address-already-in-use-make_sock-could-not-bind-to-address-000080/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 21:19:53 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[lsof]]></category>
		<category><![CDATA[make_sock]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=235</guid>
		<description><![CDATA[Every now and then my Apache webserver becomes un-responsive, and attempting to restart it with apachectl graceful gives me the following error: Address already in use: make_sock: could not bind to address 0.0.0.0:80 This error means that there is already a process running that is using port 80, so Apache is unable to start up [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2009%2F03%2F08%2Fapache-address-already-in-use-make_sock-could-not-bind-to-address-000080%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2009%2F03%2F08%2Fapache-address-already-in-use-make_sock-could-not-bind-to-address-000080%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Every now and then my Apache webserver becomes un-responsive, and attempting to restart it with <strong><tt>apachectl graceful</tt></strong> gives me the following error:</p>
<p><code>Address already in use: make_sock: could not bind to address 0.0.0.0:80</code></p>
<p>This error means that there is already a process running that is using port 80, so Apache is unable to start up and use it.  To solve this problem, we need to figure out what process is currently using the port in question and kill it so that Apache can start.  Use <strong><tt>lsof</tt></strong> to find out what is using our port:</p>
<p><code>shell&gt; lsof -i :80<br />
COMMAND   PID   USER   FD   TYPE     DEVICE SIZE NODE NAME<br />
httpd   23506 apache    3u  IPv6 1206927465       TCP *:http (LISTEN)</code></p>
<p>You can see from the output of lsof that an httpd process already exists under PID 23506.  This is simple enough to get rid of:</p>
<p><code>shell&gt; kill -9 23506<br />
shell&gt; lsof -i :80<br />
shell&gt; apachectl start</code></p>
<p>I run <strong><tt>lsof</tt></strong> again after issuing the <strong><tt>kill</tt></strong> command to make sure that whatever was using port 80 is gone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2009/03/08/apache-address-already-in-use-make_sock-could-not-bind-to-address-000080/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP &amp; ionCube Loader: &#8216;The Loader must appear as the first entry in the php.ini file in Unknown on line 0&#8242;</title>
		<link>http://www.tequilafish.com/2008/02/18/php-ioncube-loader-the-loader-must-appear-as-the-first-entry-in-the-phpini-file-in-unknown-on-line-0/</link>
		<comments>http://www.tequilafish.com/2008/02/18/php-ioncube-loader-the-loader-must-appear-as-the-first-entry-in-the-phpini-file-in-unknown-on-line-0/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 23:00:29 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[ioncube]]></category>
		<category><![CDATA[loader]]></category>
		<category><![CDATA[optimizer]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2008/02/18/php-ioncube-loader-the-loader-must-appear-as-the-first-entry-in-the-phpini-file-in-unknown-on-line-0/</guid>
		<description><![CDATA[I received the following in my Apache error_log when attempting to load the ionCube loader in my php.ini file: PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0 This is because ionCube must be loaded before any of the Zend extensions are. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2008%2F02%2F18%2Fphp-ioncube-loader-the-loader-must-appear-as-the-first-entry-in-the-phpini-file-in-unknown-on-line-0%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2008%2F02%2F18%2Fphp-ioncube-loader-the-loader-must-appear-as-the-first-entry-in-the-phpini-file-in-unknown-on-line-0%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I received the following in my Apache error_log when attempting to load the ionCube loader in my php.ini file:</p>
<p><code>PHP Fatal error:  [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0</code></p>
<p>This is because ionCube must be loaded before any of the Zend extensions are.  So if you have the Zend extension/optimizer loaded, your php.ini should look like this to get ionCube to work:</p>
<p><code>[Zend]<br />
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.1.so<br />
zen_extension_ts=/usr/local/ioncube/ioncube_loader_lin_5.1_ts.so<br />
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0<br />
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0<br />
zend_optimizer.version=3.3.0a<br />
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so<br />
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so</code></p>
<p>----------------<br />
Now playing: <a href="http://www.foxytunes.com/artist/tommy+mccook+%26+the+aggrovators/track/a+loving+melody">Tommy McCook &#038; The Aggrovators - A Loving Melody</a><br />
via <a href="http://www.foxytunes.com/signatunes/">FoxyTunes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2008/02/18/php-ioncube-loader-the-loader-must-appear-as-the-first-entry-in-the-phpini-file-in-unknown-on-line-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cacti on Fedora: Blank Graphs</title>
		<link>http://www.tequilafish.com/2007/09/19/cacti-on-fedora-blank-graphs/</link>
		<comments>http://www.tequilafish.com/2007/09/19/cacti-on-fedora-blank-graphs/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 02:08:56 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[cacti]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2007/09/19/cacti-on-fedora-blank-graphs/</guid>
		<description><![CDATA[After getting Cacti up and running successfully on Fedora Core 5, I had a problem with the graphing. Caci was receiving the SNMP data correctly (the graph legends would show the proper data values), but the actual neato colors and lines were absent in the graph image. After some research I found a fix: Everything [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F09%2F19%2Fcacti-on-fedora-blank-graphs%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F09%2F19%2Fcacti-on-fedora-blank-graphs%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>After getting <a href="http://cacti.net/">Cacti</a> up and running successfully on Fedora Core 5, I had a problem with the graphing.  Caci was receiving the SNMP data correctly (the graph legends would show the proper data values), but the actual neato colors and lines were absent in the graph image.  After some research I found a fix: Everything in the rra file must be owned by the cacti user, or the user running the poller crontab.  Pretty simple:</p>
<p><code>chown -R cacti.cacti /usr/share/cacti/rra</code></p>
<p>Once the rra files were owned by the cacti user, the graphs started to appear in all their colored and lined splendor!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2007/09/19/cacti-on-fedora-blank-graphs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache VirtualHost on Ubuntu</title>
		<link>http://www.tequilafish.com/2007/08/02/apache-virtualhost-on-ubuntu/</link>
		<comments>http://www.tequilafish.com/2007/08/02/apache-virtualhost-on-ubuntu/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 01:24:20 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[virtualhost]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2007/08/02/apache-virtualhost-on-ubuntu/</guid>
		<description><![CDATA[Here's a quickie tutorial on how to add Virtual Hosts to Apache on Ubuntu. This tutorial assumes that you have a basic understanding of Apache configuration and that your Apache is installed and able to serve websites. cd /etc/apache2/sites-available sudo vim yourdomain.com.conf and enter your VirtualHost directive. Below I've put the most basic example, see [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F08%2F02%2Fapache-virtualhost-on-ubuntu%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F08%2F02%2Fapache-virtualhost-on-ubuntu%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Here's a quickie tutorial on how to add Virtual Hosts to Apache on Ubuntu.  This tutorial assumes that you have a basic understanding of Apache configuration and that your Apache is installed and able to serve websites.</p>
<ol>
<li><strong><tt>cd /etc/apache2/sites-available</tt></strong></li>
<li><strong><tt>sudo vim yourdomain.com.conf</tt></strong> and enter your VirtualHost directive.  Below I've put the most basic example, see <a href="http://httpd.apache.org/docs/2.0/mod/core.html#virtualhost">Apache docs</a> for details and additional features:<br />
<code>&lt;VirtualHost *&gt;<br />
&nbsp;&nbsp;ServerName yourdomain.com<br />
&nbsp;&nbsp;DocumentRoot /home/youruser/public_html<br />
&lt;/VirtualHost&gt;</code><br />
Save &#038; exit.
</li>
<li><strong><tt>sudo vim /etc/hosts</tt></strong> and add your new domain to the <tt>127.0.0.1 localhost</tt> line so it looks like this:<br />
<code>127.0.0.1       localhost yourdomain.com</code><br />
Save &#038; exit.</li>
<li>Enable your new virtualhost:<br />
<code>sudo a2ensite yourdomain.com.conf</code>
</li>
<li>Reload the Apache configuration:<br />
<code>sudo /etc/init.d/apache2 reload</code>
</li>
</ol>
<p>That's it!  Repeat for each of your VirtualHosts.</p>
<p>----------------<br />
Now playing: <a href="http://www.foxytunes.com/artist/al%c3%a8may%c3%a8hu+esh%c3%a8t%c3%a9/track/tchero+adari+n%c3%a8gn">AlÃ¨mayÃ¨hu EshÃ¨tÃ© - Tchero Adari NÃ¨gn</a><br />
via <a href="http://www.foxytunes.com/signatunes/">FoxyTunes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2007/08/02/apache-virtualhost-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing Ubuntu Server on a Dell Inspiron 530</title>
		<link>http://www.tequilafish.com/2007/08/02/installing-ubuntu-server-on-a-dell-inspiron-530/</link>
		<comments>http://www.tequilafish.com/2007/08/02/installing-ubuntu-server-on-a-dell-inspiron-530/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 21:53:03 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[530]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[inspiron]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2007/08/02/installing-ubuntu-server-on-a-dell-inspiron-530/</guid>
		<description><![CDATA[I recently purchased a cheapie Dell Inspiron 530 to use as a new local devbox with the intent of installing Fedora 7 on it (the machine came with Ubuntu Desktop pre-installed). Foolish me, I just assumed that if Ubuntu was compatible with the hardware, then Fedora surely would be as well. WRONG. Fedora was unable [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F08%2F02%2Finstalling-ubuntu-server-on-a-dell-inspiron-530%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F08%2F02%2Finstalling-ubuntu-server-on-a-dell-inspiron-530%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently purchased a cheapie Dell Inspiron 530 to use as a new local devbox with the intent of installing Fedora 7 on it (the machine came with Ubuntu Desktop pre-installed).  Foolish me, I just assumed that if Ubuntu was compatible with the hardware, then Fedora surely would be as well.  WRONG.  Fedora was unable to detect/install both the SATA controller and the integrated ethernet port.  After a few hours trying to get Fedora to install, I decided to give up and give <a href="http://www.ubuntu.com/products/WhatIsUbuntu/serveredition">Ubuntu Server</a> a try.  Of course it wasn't easy, so here are some of my notes in getting Ubuntu Server installed onto the Dell Inspiron 530.</p>
<p>I wanted to keep it simple so I just installed all of the defaults presented by the installer, including the LAMP package.  Everything installed fine, however, the Integrated Network card was not detected/installed, so here's how to get it up and running by compiling and installing the driver.</p>
<ol>
<li>First we need to install some prerequisites that are required in order to compile the driver.  Make sure your Ubuntu Server CD is in the CD drive and run the following:<br />
<code>sudo apt-get install linux-headers-2.6.20-15-server<br />
sudo apt-get install gcc</code>
        </li>
<li>Download the ethernet driver from <a href="http://downloadcenter.intel.com/File_Filter.aspx?FileName=e1000-">Intel</a>.  The one I used is <strong><tt>e1000-7.6.5.tar.gz</tt></strong>.  If you can't find it at Intel, just Google the filename and I'm sure you'll be able to find it somewhere.</li>
<li>Burn the driver to a CD, mount it on your Ubuntu machine, and copy it to a local dir:<br />
<code>sudo mkdir /mnt/cdrom<br />
sudo mount /dev/cdrom /mnt/cdrom<br />
sudo cp /mnt/cdrom/e1000-7.6.5.tar.gz /usr/src</code></li>
<li>Compile and install the driver:<br />
<code>cd /usr/src<br />
tar xfvz e1000-7.6.5.tar.gz<br />
cd e1000-7.6.5/src<br />
sudo make install<br />
sudo modprobe e1000</code></li>
<li>Now configure your network card:<br />
<strong><tt>sudo vim /etc/network/interfaces</tt></strong> and your file should look like this (substitute your IP of choice):<br />
<code># This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).<br />
&nbsp;<br />
# The loopback network interface<br />
auto lo<br />
iface lo inet loopback<br />
&nbsp;<br />
# This is a list of hotpluggable network interfaces.<br />
# They will be activated automatically by the hotplug subsystem.<br />
mapping hotplug<br />
        script grep<br />
        map eth0<br />
&nbsp;<br />
# The primary network interface<br />
auto eth0<br />
iface eth0 inet static<br />
        address 192.168.1.66<br />
        netmask 255.255.255.0<br />
        network 192.168.1.0<br />
        broadcast 192.168.1.255<br />
        gateway 192.168.1.1</code></li>
<li>Setup your DNS servers:<br />
<strong><tt>sudo vim /etc/resolv.conf</tt></strong> and it should look like this (I am using <a href="http://www.opendns.org/">OpenDNS</a> here but you can substitute your own):<br />
<code>nameserver 208.67.222.222<br />
nameserver 208.67.220.220</code></li>
<li>Restart the network:<br />
<code>sudo /etc/init.d/networking restart</code></li>
<li>Upgrade your system for good measure:<br />
<code>sudo apt-get upgrade</code></li>
</ol>
<p>That should be enough to get your Ubuntu Server up and running on the Dell Inspiron 530 with full network connectivity.  Once you're up and running, here are some other tweaks I did, although some of these may be personal preference.</p>
<ol>
<li>I don't like Ubuntu's sudo setup (I prefer log in in as root when needed).  Out of the box the root account is disabled and your default account is given admin rights to run commands via sudo.  To get around this, simply reset root's password:<br />
<code>sudo passwd root</code><br />
Now you will be able to <strong><tt>su -</tt></strong> and log in as root directly.
</li>
<li>Install SSH<br />
<code>sudo apt-get install ssh</code></li>
<li>Disable root login to SSH:<br />
<strong><tt>sudo vim /etc/ssh/sshd_config</tt></strong> and set the following:<br />
<code>PermitRootLogin no</code></li>
<li>Change the MySQL root password:<br />
<code>mysqladmin -u root password "newpassword"</code></li>
<li>Enable Apache's mod_rewrite:<br />
<code>sudo a2enmod rewrite<br />
sudo /etc/init.d/apache2 force-reload</code></li>
<li>Install some other useful goodies:<br />
<code>sudo apt-get install vim<br />
sudo apt-get install php5-mcrypt<br />
sudo apt-get install php5-curl<br />
sudo apt-get install php5-gd<br />
sudo apt-get install php-pear<br />
sudo pear upgrade-all<br />
sudo pear install mdb2<br />
sudo pear install pear/MDB2#mysqli</code>
</li>
</ol>
<p>----------------<br />
Now playing: <a href="http://www.foxytunes.com/artist/apparat/track/steinholz+(monolake+remix)">Apparat - Steinholz (Monolake Remix)</a><br />
via <a href="http://www.foxytunes.com/signatunes/">FoxyTunes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2007/08/02/installing-ubuntu-server-on-a-dell-inspiron-530/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>PHP &amp; imagettftext with Webcore TrueType fonts.</title>
		<link>http://www.tequilafish.com/2007/07/21/php-imagettftext-with-webcore-truetype-fonts/</link>
		<comments>http://www.tequilafish.com/2007/07/21/php-imagettftext-with-webcore-truetype-fonts/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 21:37:12 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[imagegettftext]]></category>
		<category><![CDATA[truetype]]></category>
		<category><![CDATA[webcore]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2007/07/21/php-imagettftext-with-webcore-truetype-fonts/</guid>
		<description><![CDATA[If you're trying to write some text using PHP/GD &#038; the imagettftext() function, you will of course need some TrueType fonts to work with. I've found a great set of fonts available for free: Webcore. Webcore contains all the fonts web designers constantly use, things like Arial, Tahoma, Verdana, Georgia, etc.. To install, simply download [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F07%2F21%2Fphp-imagettftext-with-webcore-truetype-fonts%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F07%2F21%2Fphp-imagettftext-with-webcore-truetype-fonts%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>If you're trying to write some text using PHP/GD &#038; the <tt>imagettftext()</tt> function, you will of course need some TrueType fonts to work with.  I've found a great set of fonts available for free: <a href="http://avi.alkalay.net/software/webcore-fonts/">Webcore</a>.  Webcore contains all the fonts web designers constantly use, things like Arial, Tahoma, Verdana, Georgia, etc..</p>
<p>To install, simply download to your server and install the RPM (Fedora):<br />
<code>shell&gt; wget http://avi.alkalay.net/software/webcore-fonts/webcore-fonts-3.0-1.noarch.rpm<br />
shell&gt; rpm -i webcore-fonts-3.0-1.noarch.rpm</code></p>
<p>These fonts will now be available to you in <strong><tt>/usr/share/fonts/webcore/</tt></strong>.</p>
<p>Make sure you specify the full path when calling <tt>imagettftext()</tt>, eg:<br />
<code>&lt;?php<br />
&nbsp;<br />
// Set the content-type<br />
header("Content-type: image/png");<br />
&nbsp;<br />
// Replace path by your own font path<br />
$font = '/usr/share/fonts/webcore/arial.ttf';<br />
&nbsp;<br />
// Create the image<br />
$im = imagecreatetruecolor(400, 30);<br />
&nbsp;<br />
// Create some colors<br />
$white = imagecolorallocate($im, 255, 255, 255);<br />
$black = imagecolorallocate($im, 0, 0, 0);<br />
imagefilledrectangle($im, 0, 0, 399, 29, $white);<br />
&nbsp;<br />
// The text to draw<br />
$text = 'Hello world!';<br />
&nbsp;<br />
// Add some text<br />
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);<br />
&nbsp;<br />
// Using imagepng() results in clearer text compared with imagejpeg()<br />
imagepng($im);<br />
imagedestroy($im);<br />
?&gt;</code></p>
<p>Your mileage may vary if you are using a different distribution, but the docs state that this RPM should work on other distros.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2007/07/21/php-imagettftext-with-webcore-truetype-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vi: Get rid of Windows formatted linebreaks (^M)</title>
		<link>http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/</link>
		<comments>http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 19:10:54 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linebreak]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/</guid>
		<description><![CDATA[If you've ever tried to edit a Windows-created file in Unix or OSX, you've probably encountered a messy translation in line breaks: A file full of "^M" characters. There is an easy search/replace you can use in vi/vim to format the file Unix-style: :%s/\r/\r/g]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F07%2F03%2Fvi-get-rid-of-windows-formatted-linebreaks-m%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F07%2F03%2Fvi-get-rid-of-windows-formatted-linebreaks-m%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>If you've ever tried to edit a Windows-created file in Unix or OSX, you've probably encountered a messy translation in line breaks: A file full of "<tt>^M</tt>" characters.  There is an easy search/replace you can use in vi/vim to format the file Unix-style:</p>
<p><code>:%s/\r/\r/g</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yum: Cannot find a valid baseurl for repo: core</title>
		<link>http://www.tequilafish.com/2006/10/25/yum-cannot-find-a-valid-baseurl-for-repo-core/</link>
		<comments>http://www.tequilafish.com/2006/10/25/yum-cannot-find-a-valid-baseurl-for-repo-core/#comments</comments>
		<pubDate>Wed, 25 Oct 2006 22:17:40 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2006/10/25/yum-cannot-find-a-valid-baseurl-for-repo-core/</guid>
		<description><![CDATA[I went to update my Fedora Core 5 machine today, and received the following error: [root ~] yum check-update Loading "installonlyn" plugin Setting up repositories core [1/3] Cannot find a valid baseurl for repo: core Error: Cannot find a valid baseurl for repo: core I tried running yum clean all but it didn't help. After [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2006%2F10%2F25%2Fyum-cannot-find-a-valid-baseurl-for-repo-core%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2006%2F10%2F25%2Fyum-cannot-find-a-valid-baseurl-for-repo-core%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I went to update my Fedora Core 5 machine today, and received the following error:<br />
<code>[root ~] yum check-update<br />
Loading "installonlyn" plugin<br />
Setting up repositories<br />
core                                                                 [1/3]<br />
Cannot find a valid baseurl for repo: core<br />
Error: Cannot find a valid baseurl for repo: core</code><br />
I tried running <strong><tt>yum clean all</tt></strong> but it didn't help.  After looking around I found that all of my repo files in <strong><tt>/etc/yum.repos.d/</tt></strong> had their <tt>baseurl</tt> values commented out.  Don't ask me how that happened, I have no idea.  Simply un-commenting all the <tt>baseurl</tt> values in all my repo files fixed the problem, and yum is once again running as expected.  So if you run into this problem, make sure everything is set up right in <strong><tt>/etc/yum.repos.d/*.repo</tt></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2006/10/25/yum-cannot-find-a-valid-baseurl-for-repo-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
