<?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>equk&#039;s place on the web &#187; linux</title>
	<atom:link href="http://www.equk.co.uk/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.equk.co.uk</link>
	<description>http://www.equk.co.uk</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:53:39 +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>webdevelopment server script</title>
		<link>http://www.equk.co.uk/2009/03/14/webdevelopment-server-script/</link>
		<comments>http://www.equk.co.uk/2009/03/14/webdevelopment-server-script/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 15:40:40 +0000</pubDate>
		<dc:creator>equk</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[picasa]]></category>
		<category><![CDATA[webdevelopment]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.equk.co.uk/?p=19</guid>
		<description><![CDATA[Here is a small script I made for starting Apache &#38; MySQL services in linux. #!/bin/bash # /etc/rc.d/webdev # Website Start/Stop Script # # B.Walden 14/03/2009 &#160; # Colors blue=&#34;\033[1;34m&#34; green=&#34;\033[1;32m&#34; red=&#34;\033[1;31m&#34; bold=&#34;\033[1;37m&#34; reset=&#34;\033[0m&#34; &#160; # Check for root if &#91; $&#40;whoami&#41; != &#34;root&#34; &#93;; then echo -e $red&#34;error:$reset you cannot perform this operation unless [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a small script I made for starting Apache &amp; MySQL services in linux.</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#!/bin/bash</span>
<span style="color: #339900;"># /etc/rc.d/webdev</span>
<span style="color: #339900;"># Website Start/Stop Script</span>
<span style="color: #339900;">#</span>
<span style="color: #339900;"># B.Walden 14/03/2009</span>
&nbsp;
<span style="color: #339900;"># Colors</span>
blue<span style="color: #000080;">=</span><span style="color: #FF0000;">&quot;<span style="color: #006699; font-weight: bold;">\033</span>[1;34m&quot;</span>
green<span style="color: #000080;">=</span><span style="color: #FF0000;">&quot;<span style="color: #006699; font-weight: bold;">\033</span>[1;32m&quot;</span>
red<span style="color: #000080;">=</span><span style="color: #FF0000;">&quot;<span style="color: #006699; font-weight: bold;">\033</span>[1;31m&quot;</span>
bold<span style="color: #000080;">=</span><span style="color: #FF0000;">&quot;<span style="color: #006699; font-weight: bold;">\033</span>[1;37m&quot;</span>
reset<span style="color: #000080;">=</span><span style="color: #FF0000;">&quot;<span style="color: #006699; font-weight: bold;">\033</span>[0m&quot;</span>
&nbsp;
<span style="color: #339900;"># Check for root</span>
<span style="color: #0000ff;">if</span> <span style="color: #008000;">&#91;</span> $<span style="color: #008000;">&#40;</span>whoami<span style="color: #008000;">&#41;</span> <span style="color: #000040;">!</span><span style="color: #000080;">=</span> <span style="color: #FF0000;">&quot;root&quot;</span> <span style="color: #008000;">&#93;</span><span style="color: #008080;">;</span> then
echo <span style="color: #000040;">-</span>e $red<span style="color: #FF0000;">&quot;error:$reset you cannot perform this operation unless you are root.&quot;</span>
<span style="color: #0000dd;">exit</span> <span style="color: #0000dd;">1</span>
fi
&nbsp;
<span style="color: #0000ff;">case</span> <span style="color: #FF0000;">&quot;$1&quot;</span> in
start<span style="color: #008000;">&#41;</span>
<span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>rc.<span style="color: #007788;">d</span><span style="color: #000040;">/</span>mysqld start
<span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>rc.<span style="color: #007788;">d</span><span style="color: #000040;">/</span>httpd start
<span style="color: #008080;">;;</span>
stop<span style="color: #008000;">&#41;</span>
<span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>rc.<span style="color: #007788;">d</span><span style="color: #000040;">/</span>mysqld stop
<span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>rc.<span style="color: #007788;">d</span><span style="color: #000040;">/</span>httpd stop
<span style="color: #008080;">;;</span>
restart<span style="color: #008000;">&#41;</span>
$<span style="color: #0000dd;">0</span> stop
sleep <span style="color: #0000dd;">3</span>
$<span style="color: #0000dd;">0</span> start
<span style="color: #008080;">;;</span>
<span style="color: #000040;">*</span><span style="color: #008000;">&#41;</span>
echo <span style="color: #FF0000;">&quot;usage: $0 {start|stop|restart}&quot;</span>
esac
&nbsp;
<span style="color: #0000dd;">exit</span> <span style="color: #0000dd;">0</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.equk.co.uk/2009/03/14/webdevelopment-server-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
