<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>webserver &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/webserver/</link>
	<description>Feed of posts on WordPress.com tagged "webserver"</description>
	<pubDate>Sat, 25 May 2013 21:07:51 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Setting up the Apache Server]]></title>
<link>http://gardengnoming.wordpress.com/?p=1</link>
<pubDate>Mon, 19 Nov 2012 09:14:28 +0000</pubDate>
<dc:creator>safincrazy</dc:creator>
<guid>http://gardengnoming.wordpress.com/?p=1</guid>
<description><![CDATA[I wanted to get the apache2 server going and I failed again, and again after repeated trials. Howeve]]></description>
<content:encoded><![CDATA[I wanted to get the apache2 server going and I failed again, and again after repeated trials. Howeve]]></content:encoded>
</item>
<item>
<title><![CDATA[Technology &ndash; Don&rsquo;t get weighted down]]></title>
<link>http://jennsitworld.wordpress.com/2012/11/14/technology-dont-get-weighted-down/</link>
<pubDate>Wed, 14 Nov 2012 16:54:00 +0000</pubDate>
<dc:creator>jnordeng</dc:creator>
<guid>http://jennsitworld.wordpress.com/2012/11/14/technology-dont-get-weighted-down/</guid>
<description><![CDATA[Technology moves at a super quick face, faster than car at the local speedway it seems. But, it’s im]]></description>
<content:encoded><![CDATA[<p>Technology moves at a super quick face, faster than car at the local speedway it seems. But, it’s important to make sure that you don’t jump on board too quickly to cutting edge items, but don’t hang on too long to the anchor that was holding you still. </p>
<p>&#160; </p>
<p>We have recently, well, months ago, attempted to put in Digital Signage at our facility. The idea was to have one greet customers and vendors as they came onsite for meetings or to drop things off. These presentations might include a warm greeting for expected visitors and also have videos or pictures that captured some of the work we’ve performed. The other unit was to be used more informally to let employees know what is happening around the company, important things as well as fun things, like when the next Chili cook off is happening. Oh…. Better sign up for that soon <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>&#160; </p>
<p>As with any technology there are many options available that attempt to do the same thing. Some offer their solutions and such as just hook up a PC to your TV and run straight Power Point, put your TV on the local network and push down images from your local webserver, others suggest you need a client/server setting and some offer a nice compact appliance that can mount on the back of the TV. Sounds pretty slick and easy to do, that is the intention. </p>
<p>&#160; </p>
<p>However; as with anything, the intention may be good, but doesn’t necessarily get it down. The work may actually become frustrating and time consuming without a resolution in sight. We encountered this with our solution. On and off over the period of a few months, time was spent troubleshooting why were able to use the appliances if we ran off a local SDCard rather than utilize our existing network and push the images via the webserver. The vendor graciously worked with us to keep on task and finally after pushing and throwing up our hands, came onsite to finish this project. The vendor was not able to save the day and a new option had to be explored. In troubleshooting, it was noted that though several tests worked with the webserver and the local network, the appliances were not happy. We could not determine if it was one particular thing or many, or even down to the way the Wireless router was functioning. All systems checked out individually, though it was noted the firmware could use to be updated on the Wireless Router, but deemed that for another day. </p>
<p>&#160; </p>
<p>So, with that, the solution. It was discovered through this time that there was a service provided by the appliance maker to put your presentations and devices on their servers and essentially store and run in the cloud but use the client software on-site and push content back from the web to the appliances on-site. This is what we determined to do. The setup was quiet simple and is working quite well. Through all the back and forth, discovered that the point of contact vendor does most installations this way and very few the original method we attempted. The lesson here is to ask the questions of the vendors to explore all options and in doing so, find out what most of their client base uses. We asked the options, but didn’t ask how many clients used which method, that would have saved a lot of time, patience and money in the long run.</p>
<p>     Technorati Tags: <a href="http://technorati.com/tags/Technology" rel="tag">Technology</a>,<a href="http://technorati.com/tags/Case" rel="tag">Case</a>,<a href="http://technorati.com/tags/Digital" rel="tag">Digital</a>,<a href="http://technorati.com/tags/Signage" rel="tag">Signage</a>,<a href="http://technorati.com/tags/speedway" rel="tag">speedway</a>,<a href="http://technorati.com/tags/items" rel="tag">items</a>,<a href="http://technorati.com/tags/customers" rel="tag">customers</a>,<a href="http://technorati.com/tags/vendors" rel="tag">vendors</a>,<a href="http://technorati.com/tags/meetings" rel="tag">meetings</a>,<a href="http://technorati.com/tags/presentations" rel="tag">presentations</a>,<a href="http://technorati.com/tags/visitors" rel="tag">visitors</a>,<a href="http://technorati.com/tags/unit" rel="tag">unit</a>,<a href="http://technorati.com/tags/employees" rel="tag">employees</a>,<a href="http://technorati.com/tags/Chili" rel="tag">Chili</a>,<a href="http://technorati.com/tags/Better" rel="tag">Better</a>,<a href="http://technorati.com/tags/options" rel="tag">options</a>,<a href="http://technorati.com/tags/Some" rel="tag">Some</a>,<a href="http://technorati.com/tags/solutions" rel="tag">solutions</a>,<a href="http://technorati.com/tags/Power" rel="tag">Power</a>,<a href="http://technorati.com/tags/Point" rel="tag">Point</a>,<a href="http://technorati.com/tags/client" rel="tag">client</a>,<a href="http://technorati.com/tags/server" rel="tag">server</a>,<a href="http://technorati.com/tags/appliance" rel="tag">appliance</a>,<a href="http://technorati.com/tags/Sounds" rel="tag">Sounds</a>,<a href="http://technorati.com/tags/intention" rel="tag">intention</a>,<a href="http://technorati.com/tags/solution" rel="tag">solution</a>,<a href="http://technorati.com/tags/appliances" rel="tag">appliances</a>,<a href="http://technorati.com/tags/SDCard" rel="tag">SDCard</a>,<a href="http://technorati.com/tags/vendor" rel="tag">vendor</a>,<a href="http://technorati.com/tags/task" rel="tag">task</a>,<a href="http://technorati.com/tags/option" rel="tag">option</a>,<a href="http://technorati.com/tags/systems" rel="tag">systems</a>,<a href="http://technorati.com/tags/Router" rel="tag">Router</a>,<a href="http://technorati.com/tags/maker" rel="tag">maker</a>,<a href="http://technorati.com/tags/servers" rel="tag">servers</a>,<a href="http://technorati.com/tags/setup" rel="tag">setup</a>,<a href="http://technorati.com/tags/Through" rel="tag">Through</a>,<a href="http://technorati.com/tags/installations" rel="tag">installations</a>,<a href="http://technorati.com/tags/method" rel="tag">method</a>,<a href="http://technorati.com/tags/lesson" rel="tag">lesson</a>,<a href="http://technorati.com/tags/clients" rel="tag">clients</a>,<a href="http://technorati.com/tags/patience" rel="tag">patience</a>,<a href="http://technorati.com/tags/money" rel="tag">money</a>,<a href="http://technorati.com/tags/months" rel="tag">months</a>,<a href="http://technorati.com/tags/onsite" rel="tag">onsite</a>,<a href="http://technorati.com/tags/webserver" rel="tag">webserver</a>  <br />   Windows Live Tags: <a href="http://windows.live.com/connect/tag/Technology" rel="clubhouseTag">Technology</a>,<a href="http://windows.live.com/connect/tag/Case" rel="clubhouseTag">Case</a>,<a href="http://windows.live.com/connect/tag/Digital" rel="clubhouseTag">Digital</a>,<a href="http://windows.live.com/connect/tag/Signage" rel="clubhouseTag">Signage</a>,<a href="http://windows.live.com/connect/tag/speedway" rel="clubhouseTag">speedway</a>,<a href="http://windows.live.com/connect/tag/items" rel="clubhouseTag">items</a>,<a href="http://windows.live.com/connect/tag/customers" rel="clubhouseTag">customers</a>,<a href="http://windows.live.com/connect/tag/vendors" rel="clubhouseTag">vendors</a>,<a href="http://windows.live.com/connect/tag/meetings" rel="clubhouseTag">meetings</a>,<a href="http://windows.live.com/connect/tag/presentations" rel="clubhouseTag">presentations</a>,<a href="http://windows.live.com/connect/tag/visitors" rel="clubhouseTag">visitors</a>,<a href="http://windows.live.com/connect/tag/unit" rel="clubhouseTag">unit</a>,<a href="http://windows.live.com/connect/tag/employees" rel="clubhouseTag">employees</a>,<a href="http://windows.live.com/connect/tag/Chili" rel="clubhouseTag">Chili</a>,<a href="http://windows.live.com/connect/tag/Better" rel="clubhouseTag">Better</a>,<a href="http://windows.live.com/connect/tag/options" rel="clubhouseTag">options</a>,<a href="http://windows.live.com/connect/tag/Some" rel="clubhouseTag">Some</a>,<a href="http://windows.live.com/connect/tag/solutions" rel="clubhouseTag">solutions</a>,<a href="http://windows.live.com/connect/tag/Power" rel="clubhouseTag">Power</a>,<a href="http://windows.live.com/connect/tag/Point" rel="clubhouseTag">Point</a>,<a href="http://windows.live.com/connect/tag/client" rel="clubhouseTag">client</a>,<a href="http://windows.live.com/connect/tag/server" rel="clubhouseTag">server</a>,<a href="http://windows.live.com/connect/tag/appliance" rel="clubhouseTag">appliance</a>,<a href="http://windows.live.com/connect/tag/Sounds" rel="clubhouseTag">Sounds</a>,<a href="http://windows.live.com/connect/tag/intention" rel="clubhouseTag">intention</a>,<a href="http://windows.live.com/connect/tag/solution" rel="clubhouseTag">solution</a>,<a href="http://windows.live.com/connect/tag/appliances" rel="clubhouseTag">appliances</a>,<a href="http://windows.live.com/connect/tag/SDCard" rel="clubhouseTag">SDCard</a>,<a href="http://windows.live.com/connect/tag/vendor" rel="clubhouseTag">vendor</a>,<a href="http://windows.live.com/connect/tag/task" rel="clubhouseTag">task</a>,<a href="http://windows.live.com/connect/tag/option" rel="clubhouseTag">option</a>,<a href="http://windows.live.com/connect/tag/systems" rel="clubhouseTag">systems</a>,<a href="http://windows.live.com/connect/tag/Router" rel="clubhouseTag">Router</a>,<a href="http://windows.live.com/connect/tag/maker" rel="clubhouseTag">maker</a>,<a href="http://windows.live.com/connect/tag/servers" rel="clubhouseTag">servers</a>,<a href="http://windows.live.com/connect/tag/setup" rel="clubhouseTag">setup</a>,<a href="http://windows.live.com/connect/tag/Through" rel="clubhouseTag">Through</a>,<a href="http://windows.live.com/connect/tag/installations" rel="clubhouseTag">installations</a>,<a href="http://windows.live.com/connect/tag/method" rel="clubhouseTag">method</a>,<a href="http://windows.live.com/connect/tag/lesson" rel="clubhouseTag">lesson</a>,<a href="http://windows.live.com/connect/tag/clients" rel="clubhouseTag">clients</a>,<a href="http://windows.live.com/connect/tag/patience" rel="clubhouseTag">patience</a>,<a href="http://windows.live.com/connect/tag/money" rel="clubhouseTag">money</a>,<a href="http://windows.live.com/connect/tag/months" rel="clubhouseTag">months</a>,<a href="http://windows.live.com/connect/tag/onsite" rel="clubhouseTag">onsite</a>,<a href="http://windows.live.com/connect/tag/webserver" rel="clubhouseTag">webserver</a>  <br /> 
<p>&#160;</p>
<p> WordPress Tags: <a href="http://wordpress.com/tag/Technology" rel="Tag">Technology</a>,<a href="http://wordpress.com/tag/Case" rel="Tag">Case</a>,<a href="http://wordpress.com/tag/Digital" rel="Tag">Digital</a>,<a href="http://wordpress.com/tag/Signage" rel="Tag">Signage</a>,<a href="http://wordpress.com/tag/speedway" rel="Tag">speedway</a>,<a href="http://wordpress.com/tag/items" rel="Tag">items</a>,<a href="http://wordpress.com/tag/customers" rel="Tag">customers</a>,<a href="http://wordpress.com/tag/vendors" rel="Tag">vendors</a>,<a href="http://wordpress.com/tag/meetings" rel="Tag">meetings</a>,<a href="http://wordpress.com/tag/presentations" rel="Tag">presentations</a>,<a href="http://wordpress.com/tag/visitors" rel="Tag">visitors</a>,<a href="http://wordpress.com/tag/unit" rel="Tag">unit</a>,<a href="http://wordpress.com/tag/employees" rel="Tag">employees</a>,<a href="http://wordpress.com/tag/Chili" rel="Tag">Chili</a>,<a href="http://wordpress.com/tag/Better" rel="Tag">Better</a>,<a href="http://wordpress.com/tag/options" rel="Tag">options</a>,<a href="http://wordpress.com/tag/Some" rel="Tag">Some</a>,<a href="http://wordpress.com/tag/solutions" rel="Tag">solutions</a>,<a href="http://wordpress.com/tag/Power" rel="Tag">Power</a>,<a href="http://wordpress.com/tag/Point" rel="Tag">Point</a>,<a href="http://wordpress.com/tag/client" rel="Tag">client</a>,<a href="http://wordpress.com/tag/server" rel="Tag">server</a>,<a href="http://wordpress.com/tag/appliance" rel="Tag">appliance</a>,<a href="http://wordpress.com/tag/Sounds" rel="Tag">Sounds</a>,<a href="http://wordpress.com/tag/intention" rel="Tag">intention</a>,<a href="http://wordpress.com/tag/solution" rel="Tag">solution</a>,<a href="http://wordpress.com/tag/appliances" rel="Tag">appliances</a>,<a href="http://wordpress.com/tag/SDCard" rel="Tag">SDCard</a>,<a href="http://wordpress.com/tag/vendor" rel="Tag">vendor</a>,<a href="http://wordpress.com/tag/task" rel="Tag">task</a>,<a href="http://wordpress.com/tag/option" rel="Tag">option</a>,<a href="http://wordpress.com/tag/systems" rel="Tag">systems</a>,<a href="http://wordpress.com/tag/Router" rel="Tag">Router</a>,<a href="http://wordpress.com/tag/maker" rel="Tag">maker</a>,<a href="http://wordpress.com/tag/servers" rel="Tag">servers</a>,<a href="http://wordpress.com/tag/setup" rel="Tag">setup</a>,<a href="http://wordpress.com/tag/Through" rel="Tag">Through</a>,<a href="http://wordpress.com/tag/installations" rel="Tag">installations</a>,<a href="http://wordpress.com/tag/method" rel="Tag">method</a>,<a href="http://wordpress.com/tag/lesson" rel="Tag">lesson</a>,<a href="http://wordpress.com/tag/clients" rel="Tag">clients</a>,<a href="http://wordpress.com/tag/patience" rel="Tag">patience</a>,<a href="http://wordpress.com/tag/money" rel="Tag">money</a>,<a href="http://wordpress.com/tag/months" rel="Tag">months</a>,<a href="http://wordpress.com/tag/onsite" rel="Tag">onsite</a>,<a href="http://wordpress.com/tag/webserver" rel="Tag">webserver</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux - Run apache tomcat on port 80]]></title>
<link>http://viewsby.wordpress.com/2012/10/23/linux-run-apache-tomcat-on-port-80/</link>
<pubDate>Tue, 23 Oct 2012 08:37:25 +0000</pubDate>
<dc:creator>Sandeep</dc:creator>
<guid>http://viewsby.wordpress.com/2012/10/23/linux-run-apache-tomcat-on-port-80/</guid>
<description><![CDATA[&nbsp; By default apache tomcat runs on port 8080. Instead of running tomcat on port 8080, we can al]]></description>
<content:encoded><![CDATA[<p>&#160;</p>
<p>By default <a title="Apache Tomcat" href="http://tomcat.apache.org/">apache tomcat</a> runs on port 8080.</p>
<p>Instead of running tomcat on port 8080, we can also run it on port 80.</p>
<p>Run following command as root user in machine you want make tomcat to work on port 80.</p>
<p><code><strong>$ iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination :8080</strong></code></p>
<p>Above command is using Port Forwarding technique, where all requests coming to port 80 on eth0 are forwarded to port 8080.</p>
<p>Advantage of port forwarding technique is security. Since port numbers 0 to 1023 are privileged ports its not suggested to give direct access to no root users.</p>
<p>Now test tomcat on your machine with ip address or localhost</p>
<p><strong>Example:</strong></p>
<p><a href="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a></p>
<p><a href="http://locahlost" rel="nofollow">http://locahlost</a></p>
<p>Either of the above command will get the response from  tomcat ROOT webapp.</p>
<p>-Sany</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[MooresCloud Light runs Linux, puts LAMP on your lamp (video)]]></title>
<link>http://thetechndroid.wordpress.com/2012/10/13/moorescloud-light-runs-linux-puts-lamp-on-your-lamp-video/</link>
<pubDate>Sat, 13 Oct 2012 15:45:41 +0000</pubDate>
<dc:creator>TechnDroid</dc:creator>
<guid>http://thetechndroid.wordpress.com/2012/10/13/moorescloud-light-runs-linux-puts-lamp-on-your-lamp-video/</guid>
<description><![CDATA[MooresCloud founder Mark Pesce&#8217;s Xzibit reference is still a very apt description of the Light]]></description>
<content:encoded><![CDATA[<p><a href="http://thetechndroid.files.wordpress.com/2012/10/moorescloud-light.jpg"><img class="aligncenter size-full wp-image-446" title="MooresCloud Light" alt="MooresCloud Light" src="http://thetechndroid.files.wordpress.com/2012/10/moorescloud-light.jpg?w=470&#038;h=219" height="219" width="470" /></a></p>
<p>MooresCloud founder Mark Pesce&#8217;s Xzibit reference is still a very apt description of the Light, his company&#8217;s Linux-based LED lamp. The Australian team&#8217;s box-shaped illumination runs the open OS (including a LAMP web server stack) on an integrated mini PC with an accelerometer and WiFi. The relative power and networking provide obvious advantages for home automation that we&#8217;ve seen elsewhere, but it&#8217;s the sheer flexibility of a generalized, web-oriented platform that makes the difference: the Light can change colors based on photos or movement, sync light pulses to music and exploit a myriad of other tricks that should result from a future, web-based app store. When and how the Light launches will depend on a Kickstarter campaign to raise $700,000 AUD ($717,621 US) starting on October 16th, although the $99 AUD ($101 US) cost is just low enough that we could see ourselves open-sourcing a little more of the living room.</p>
<p><!--YouTube Error: bad URL entered--></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[200 pound, WiFi deploying robot ran over my foot]]></title>
<link>http://hackaday.com/2012/10/03/200-pound-wifi-deploying-robot-ran-over-my-foot/</link>
<pubDate>Wed, 03 Oct 2012 23:01:42 +0000</pubDate>
<dc:creator>Brian Benchoff</dc:creator>
<guid>http://hackaday.com/2012/10/03/200-pound-wifi-deploying-robot-ran-over-my-foot/</guid>
<description><![CDATA[[Adam Bercu] and [Dan Landers] from Artisan&#8217;s Asylum in Somerville, MA brought a very, very co]]></description>
<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-87099" title="wibot" src="http://hackadaycom.files.wordpress.com/2012/10/wibot.jpg?w=470&#038;h=172" alt="" width="470" height="172" /></p>
<p>[Adam Bercu] and [Dan Landers] from Artisan&#8217;s Asylum in Somerville, MA brought a very, very cool toy to Maker Faire this year. It&#8217;s a two hundred pound WiFi repeater deploying robot able to amble across unforgiving terrain and my foot.</p>
<p>The robot is controlled through a web interface with the help of a front-mounted web cam with pan and tilt controls. All the signals are sent through a WiFi connection to a node.js web server; not the best way to communicate with a robot over long distances, but [Adam] and [Dan] have a few tricks up their sleeve.</p>
<p>On the back of the robot are two Pelican cases loaded up with a battery and a Linksys WRT54G wireless router. When the robot reaches the limits of its range, it activates a solenoid, dropping a WiFi repeater. This repeater has enough battery juice to stay powered for about a day and a half, meaning the robot can make multiple trips to deploy a wireless network through some very hostile terrain. Perfect for disaster and search and rescue operations.</p>
<p>There are two videos after the break: the first is [Dan] going over the capabilities of his tank bot and the second is a short demo of the bot tearing up the grass at Maker Faire.</p>
<p><!--more--></p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='470' height='295' src='http://www.youtube.com/embed/9h7mOwdwkF0?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='470' height='295' src='http://www.youtube.com/embed/z5ItFZftAFY?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Remove the GUI from a gnulinux server box]]></title>
<link>http://juanmatiasdelacamara.wordpress.com/2012/10/03/remove-the-gui-from-a-gnulinux-server-box/</link>
<pubDate>Wed, 03 Oct 2012 10:00:03 +0000</pubDate>
<dc:creator>juanmatiasdelacamara</dc:creator>
<guid>http://juanmatiasdelacamara.wordpress.com/2012/10/03/remove-the-gui-from-a-gnulinux-server-box/</guid>
<description><![CDATA[Source: http://www.techienote.com/2012/05/how-to-disable-gui-boot-in-ubuntu-12-04.html What? A few d]]></description>
<content:encoded><![CDATA[<p>Source: <a href="http://www.techienote.com/2012/05/how-to-disable-gui-boot-in-ubuntu-12-04.html" target="_blank">http://www.techienote.com/2012/05/how-to-disable-gui-boot-in-ubuntu-12-04.html</a></p>
<h2>
What?</h2>
<p>A few days ago we published <a href="http://juanmatiasdelacamara.wordpress.com/2012/10/01/install-a-web-…ualbox-machine/http://">how to install a gnulinux web server box into a VirtualBox machine</a>.</p>
<p>Now we want to disable the GUI, since we will access the box through SSH and removing the GUI will improve the machine&#8217;s performance.</p>
<h2>How?</h2>
<p>We need to edit the grub config: <em>/etc/default/grub</em></p>
<p>Change this line:</p>
<pre>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"</pre>
<p>to</p>
<pre>GRUB_CMDLINE_LINUX_DEFAULT="text"</pre>
<p>&#160;</p>
<p>&#8230;and comment this one:</p>
<pre>GRUB_HIDDEN_TIMEOUT=0</pre>
<p>&#160;</p>
<p>Now update grub config:</p>
<pre>sudo update-grub</pre>
<p>&#160;</p>
<p>&#160;</p>
<p>Restart your box and <em>voilà</em>, that&#8217;s it&#8230; you have a nice text screen now&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#160;</p>
<p>Despite this you always can start the GUI from command line with this command:</p>
<pre>startx &#38;</pre>
<p>&#160;</p>
<p>&#160;</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Install a Web Server into a VirtualBox Machine]]></title>
<link>http://juanmatiasdelacamara.wordpress.com/2012/10/01/install-a-web-server-into-a-virtualbox-machine/</link>
<pubDate>Mon, 01 Oct 2012 10:00:54 +0000</pubDate>
<dc:creator>juanmatiasdelacamara</dc:creator>
<guid>http://juanmatiasdelacamara.wordpress.com/2012/10/01/install-a-web-server-into-a-virtualbox-machine/</guid>
<description><![CDATA[Source: http://www.web-development-blog.com/archives/how-to-install-a-linux-web-server-ubuntu/ What?]]></description>
<content:encoded><![CDATA[<p>Source: <a href="http://www.web-development-blog.com/archives/how-to-install-a-linux-web-server-ubuntu/" target="_blank">http://www.web-development-blog.com/archives/how-to-install-a-linux-web-server-ubuntu/</a></p>
<h2>What?</h2>
<p>We want to install a web server into a VirtualBox Machine.</p>
<p>We will use:</p>
<ul>
<li>
<p lang="es-AR"><span style="font-family:Times New Roman;"><span style="font-size:medium;">OS: this guide is valid for any Debian/Ubuntu derivative (using right now Linux Mint 12/13)</span></span></p>
</li>
<li>
<p lang="es-AR"><span style="font-family:Times New Roman;"><span style="font-size:medium;">web server: Apache</span></span></p>
</li>
<li>
<p lang="es-AR"><span style="font-family:Times New Roman;"><span style="font-size:medium;">DB: MySQL</span></span></p>
</li>
<li>
<p lang="es-AR"><span style="font-family:Times New Roman;"><span style="font-size:medium;">DB admin: phpMyAdmin</span></span></p>
</li>
<li>
<p lang="es-AR"><span style="font-family:Times New Roman;"><span style="font-size:medium;">Other: PHP</span></span></p>
</li>
<li>
<p lang="es-AR"><span style="font-family:Times New Roman;"><span style="font-size:medium;">Mail Server: sendmail</span></span></p>
</li>
</ul>
<h2>How?</h2>
<p><span style="color:#808080;">Easy! Following these steps!</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Install the OS in the VM as usual. (be sure you can reach the network from your guest OS)</span></p>
</li>
<li>
<p style="margin-bottom:0;font-variant:normal;font-weight:normal;line-height:200%;" lang="es-AR"><span style="font-size:medium;">First than all install SSH Server, so the rest of this guide can be done through a SSH conection:</span></p>
<ol>
<li>
<p style="margin-bottom:0;font-weight:normal;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo apt-get install openssh-server</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;font-weight:normal;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Install CSF firewall</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Install libwww-perl</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo apt-get install libwww-perl </span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Get the code</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-family:Times New Roman;"><span style="font-size:medium;">wget <a href="http://www.configserver.com/free/csf.tgz">http://www.configserver.com/free/csf.tgz</a></span></span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Untar it </span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">tar -xzf csf.tgz</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Run installation script (first <em>cd csf</em><span style="font-style:normal;">)</span><br />
</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo sh install.sh</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Now let’s test that the required iptables modules are working for 100% in our system, type this command:</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo perl /etc/csf/csftest.pl </span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">You&#8217;ll get a small report and if everything looks fine, continue to the next step.</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Open the csf config file <em>sudo nano /etc/csf/csf.conf</em>, check the default port numbers and eventually other settings. Each setting is well documented, if you’re ready then change also this row TESTING = “1″ to enable the firewall (use ctrl+x to save the file).</span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Now we need to restart the csf service using <em>sudo csf -r</em>, open a second terminal and login using SSH. You need this extra step to be sure that your firewall doesn’t have blocked ssh access for yourself </span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Install Apache &#38; PHP &#38; MySQL</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">APACHE</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo apt-get install apache2</span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">We want to use the MPM prefork module instead of the MPM worker module for the best performance:<br />
</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo apt-get install apache2-mpm-prefork</span></p>
</li>
</ol>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">PHP</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo apt-get install php5-cgi php5-cli</span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">We install suPHP for more security, suPHP makes it possible that PHP scripts are executed by the user who has created the script. (keep in mind that suPHP needs all scripts run under certain directory, i.e. /var/www, because of this I will create a soft link from the user home dir to a user dir into /var/www) Enter into the terminal:</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo apt-get install libapache2-mod-suphp</span></p>
</li>
</ol>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">MySQL</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;"><em>Provide a strong password for the MySQL root user!</em></span></p>
</li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">phpMyAdmin – The first virtual hosting account<br />
</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">If you don&#8217;t have yet a user created, create one (usually with Mint 12/13 you create one at the installation, if you do not want to use it, create a new one)</span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Create a dir for the user into /var/www:</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo mkdir /var/www/newuser</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">And give the ownership to the user</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo chown newuser:newuser /var/www/newuser</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Move to your user’s home directory and create a new soft link </span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">ln -s /var/www/newuser public_html</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Now we create a host file for Apache:</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo nano /etc/apache2/sites-available/myphpmyadmin.conf</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Inside this new file we will add the following code:</span></p>
</li>
</ol>
</li>
</ol>
<pre><span style="font-size:medium;">&#60;<span style="color:#000000;"><strong>VirtualHost</strong></span> *:<span style="color:#ff0000;">80</span>&#62;</span>
<span style="font-size:medium;"><span style="color:#00007f;">ServerName</span> myhostname.com</span>
<span style="font-size:medium;"><span style="color:#00007f;">ServerAdmin</span> webmaster@localhost</span>
<span style="font-size:medium;"><span style="color:#00007f;">DocumentRoot</span> /var/www/newuser/phpmyadmin</span>
<span style="font-size:medium;"><span style="color:#00007f;">ErrorLog</span> /var/log/apache2/phpmyadmin-error.log</span>
<span style="font-size:medium;"><span style="color:#00007f;">LogLevel</span> warn</span>
<span style="font-size:medium;"><span style="color:#00007f;">CustomLog</span> /var/log/apache2/phpmyadmin-access.log combined</span>
<span style="font-size:medium;">&#60;/<span style="color:#000000;"><strong>VirtualHost</strong></span>&#62;</span></pre>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Save the file with ctrl+x (you will create the phpmyadmin dir soon)</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Enable the site configuration with </span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo a2ensite myphpmyadmin.conf<br />
</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">and reload Apache with </span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo /etc/init.d/apache2 reload</span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">(Apache will say that your dir does not exist&#8230; and he&#8217;s right&#8230; so&#8230;)</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Return to your user’s home directory and download phpMyAdmin using</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-family:Times New Roman;"><span style="font-size:medium;">wget <a href="http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.3.1/phpMyAdmin-3.4.3.1-english.tar.gz">http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.3.1/phpMyAdmin-3.4.3.1-english.tar.gz</a></span></span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Untar the gz archive with </span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">tar xvfz phpMyAdmin-3.4.3.1-english.tar.gz </span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">and move the extracted directory to your host directory with</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">mv /home/newuser/phpMyAdmin-3.4.3.1-english /home/newuser/phpmyadmin</span></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Restart apache with <em>sudo /etc/init.d/apache2 reload</em> and then open your client&#8217;s web browser, enter the server name in the address bar and you should see the phpMyAdmin login page. (you can login<br />
with the MySQL root password)</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;"><a href="http://&#060;hostname&#062;/" rel="nofollow">http://&#060;hostname&#062;/</a></span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">You will need to edit your /etc/hosts so you can reach the hosted OS&#8217; IP through the hostname you used in the Apache&#8217;s configuration file. The best is to set manualy an IP in the hosted OS and the in your client set the hosts. For example if your manualy set IP is 192.168.0.100 and the hostname you set is mynewhostedos, then you will need in your /etc/hosts a line like this one:</span></p>
</li>
</ol>
</li>
</ol>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;"> 192.168.0.100 mynewhostedos</span></p>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;"> Then you can type <a href="http://mynewhostedos" rel="nofollow">http://mynewhostedos</a> in the address bar of your browser.</span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Aditional tasks</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">PHP packages</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">sudo apt-get install php5-curl php5-gd php5-mcrypt</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;"><span style="font-size:medium;">You need to fix the #; comment bug inside the mcrypt.ini file or you get depreciated warnings. (The file misses the # before the comment, it has only the semi colon, edit it and add the #, it<br />
is in /etc/php5/conf.d) Restart Apache after your installed these PHP functions</span></p>
</li>
</ol>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">MySQL super user</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Create a kind of super user for your database using phpMyAdmin, it’s much safer to use a<br />
different user than the “root” user for normal database operations.</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;"><span style="font-size:medium;">CREATE USER &#8216;usr&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;pass.&#8217;;</span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;"><span style="font-size:medium;">GRANT ALL PRIVILEGES ON *.* TO &#8216;usr&#8217;@'%&#8217; WITH GRANT OPTION;</span></p>
</li>
</ol>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">phpMyAdmin access (if your server will become public you need to restrict the access to your DB)</span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Your phpMyAdmin host is accessible for everyone, you should protect your database tool against bots using </span></p>
</li>
</ol>
</li>
</ol>
<pre style="margin-bottom:0;line-height:200%;"><span style="font-size:medium;">&#60;<span style="color:#000000;"><strong>Directory</strong></span> /home/newuser/phpmyadmin&#62;</span>
<span style="font-size:medium;"><span style="color:#00007f;">                     Options</span> <span style="color:#0000ff;">Indexes</span> <span style="color:#0000ff;">FollowSymLinks</span> MultiViews</span>
<span style="font-size:medium;"><span style="color:#00007f;">                     AllowOverride</span> <span style="color:#0000ff;">None</span></span>
<span style="font-size:medium;"><span style="color:#00007f;">                    Order</span> <span style="color:#00007f;">allow</span>,<span style="color:#00007f;">deny</span></span>
<span style="font-size:medium;"><span style="color:#adadad;"><em>                    # add here your IP addresses</em></span></span>
<span style="font-size:medium;"><span style="color:#00007f;">                    allow</span> from 100.100.100.100
&#60;/<span style="color:#000000;"><strong>Directory</strong></span>&#62;</span></pre>
<ol>
<li>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">You need to enter these rules into your host configuration file.</span></p>
</li>
</ol>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">And you are done, you have a web server working.</span></p>
<p style="margin-bottom:0;line-height:200%;" lang="es-AR"><span style="font-size:medium;">Now you&#8217;ll need to add virtual hosts so you can host different sites with differents URLs, but this is stuff for another post.</span></p>
<p style="margin-bottom:0;"><span style="font-size:medium;"><strong>Remember 1: </strong>to put CSF&#8217;s tesing = 0 if you will go to a productive environment.</span></p>
<p style="margin-bottom:0;"><span style="font-size:medium;"><strong>Remember 2:</strong><span style="font-weight:normal;"> it&#8217;s a good practice to run a package database update frenquently. So, let&#8217;s update it now, after installing all the packages above: </span><em><span style="font-weight:normal;">sudo apt-get update; sudo apt-get upgrade</span></em></span></p>
<p style="margin-bottom:0;"><span style="font-size:medium;">Optional:<br />
SMTP Server</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:100%;" align="LEFT"><span style="font-size:medium;"><span style="font-weight:normal;">install postfix (</span></span><span style="font-size:medium;"><span style="font-weight:normal;"><a href="https://help.ubuntu.com/community/Postfix">https://help.ubuntu.com/community/Postfix</a>)<br />
</span></span></p>
</li>
<li>
<p style="margin-bottom:0;line-height:100%;" align="LEFT"><span style="font-size:medium;"><span style="font-weight:normal;">If needed configure it to use a ISP&#8217;s SMTP (</span></span><span style="font-size:medium;"><span style="font-weight:normal;"><a href="http://www.howtoforge.com/how-to-relay-email-on-a-postfix-server">http://www.howtoforge.com/how-to-relay-email-on-a-postfix-server</a>)<br />
</span></span></p>
</li>
<li>
<p style="margin-bottom:0;font-weight:normal;line-height:100%;" lang="es-AR" align="LEFT"><span style="font-size:medium;">Test it:</span></p>
<ol>
<li>
<p style="margin-bottom:0;line-height:100%;" align="LEFT"><span style="font-size:medium;"><span style="font-weight:normal;">echo &#8220;hello world&#8221; &#124; /usr/sbin/sendmail -v </span></span><a href="mailto:your@email.com"><span style="font-size:medium;"><span style="font-weight:normal;">your@email.com</span></span></a></p>
</li>
</ol>
</li>
<li>
<p style="margin-bottom:0;line-height:100%;" align="LEFT"><span style="font-size:medium;"><span style="font-weight:normal;">To test it fully try with mutt (</span></span><span style="font-size:medium;"><span style="font-weight:normal;"><a href="http://www.hypexr.org/linux_mail_server.php">http://www.hypexr.org/linux_mail_server.php</a>)<br />
</span></span></p>
</li>
</ol>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Requesting an Exchange Certificate from an Enterprise Certificate Authority using Command-Line (WebServer Template Missing in 08 /CertSRV)]]></title>
<link>http://exchangemaster.wordpress.com/2012/08/30/requesting-an-exchange-certificate-from-an-enterprise-certificate-authority-using-command-line-webserver-template-missing-in-08-certsrv/</link>
<pubDate>Thu, 30 Aug 2012 21:41:55 +0000</pubDate>
<dc:creator>Andrew S Higginbotham</dc:creator>
<guid>http://exchangemaster.wordpress.com/2012/08/30/requesting-an-exchange-certificate-from-an-enterprise-certificate-authority-using-command-line-webserver-template-missing-in-08-certsrv/</guid>
<description><![CDATA[Scenario: Customer had hired a Consultant to originally setup their Exchange 2007 environment and no]]></description>
<content:encoded><![CDATA[<p><strong>Scenario:</strong></p>
<p>Customer had hired a Consultant to originally setup their Exchange 2007 environment and now their Certificate had expired. Was originally setup to use their 2008 Enterprise CA so customer not only did not know how to generate the request from within Exchange but also did not know how to submit it to their own CA (I know).</p>
<p>Now with a 2003 CA I would just generate the certificate request from within Exchange Management Shell then Browse to <a href="http://CA-Name/CertSRV">http://CA-Name/CertSRV</a>&#62; Click Request a Certificate&#62;Advanced Certificate Request&#62;Submit a Certificate Request by Using a Base-64…..&#62;Then select “Web Server” from the Certificate Template drop-down (Figure 1).</p>
<p><a href="http://exchangemaster.files.wordpress.com/2012/08/ca-031.png"><img class="aligncenter size-full wp-image-915" title="CA-03" alt="" src="http://exchangemaster.files.wordpress.com/2012/08/ca-031.png?w=505&#038;h=609" height="609" width="505" /></a></p>
<p>However, on a 2008 CA you do not have the option for Web Server (Figure 2)</p>
<p><a href="http://exchangemaster.files.wordpress.com/2012/08/ca-081.png"><img class="aligncenter size-full wp-image-916" title="CA-08" alt="" src="http://exchangemaster.files.wordpress.com/2012/08/ca-081.png?w=538&#038;h=536" height="536" width="538" /></a></p>
<p>This obviously makes it difficult to use the old familiar web-based interface to request your certificate. I believe these additional templates were removed from /CertSRV by default due to security reasons but I have yet to confirm.</p>
<p><strong>Resolution:</strong></p>
<p>So in this case I just needed to generate the certificate request on 2007, copy the .req file to my CA, and use the certreq.exe utility on the CA to process the request. The commands for the request are as follows:</p>
<p>Certreq.exe –submit –attrib “CertificateTemplate:webserver” C:\RequestFile.req NewCertName.cer</p>
<p>Depending on the settings of your CA this request may be auto approved (in which case the .cer file will be located in your current working directory in Command-Prompt; or just specify a path in the command) or you may need to approve it. You can do this either by launching the Certificate Authority MMC snap-in and going to “Pending Requests” or using the following command:</p>
<p>Certreq.exe –accept NewCertName.cer</p>
<p>Once you get the cert file just import it using Exchange Management Shell (if 2007; I usually recommend the GUI Wizard in 2010).</p>
<p><strong>References: </strong></p>
<p><a href="http://technet.microsoft.com/en-us/library/aa998327(v=EXCHG.80).aspx">Exchange 2007 Certificate Request Command</a></p>
<p><a href="http://technet.microsoft.com/en-us/library/bb124424(v=EXCHG.80).aspx">Exchange 2007 Certificate Import Command</a></p>
<p><a href="http://technet.microsoft.com/en-us/library/aa997231.aspx">Exchange Enable Certificate for Services</a></p>
<p><a href="http://technet.microsoft.com/en-us/library/dd351057.aspx">Exchange 2010 Certificate Request/Import/Assignment Process</a></p>
<p>If you choose to use the command line method on a 2003 CA then you may have to go through the following <a href="http://support.microsoft.com/kb/931351">article</a></p>
<p>In searching to see if anyone else had published these steps I ran across the blog of Jeff Schertz. I&#8217;ve been to his blog before and always find great content. <a href="http://blog.schertz.name/2011/08/certificate-requests-in-windows-server-2008/">Here&#8217;s</a> the referenced post but check out some of his other great articles; specifically for Lync.</p>
<p>Edit: Check <a href="http://www.itwriting.com/blog/3544-microsoft-exchange-2010-annoyance-certificate-wizard-incompatible-with-certificate-services.html">this </a>post if you receive a &#8220;Certificate Not Issued (Incomplete)&#8221; message via command prompt.</p>
<p style="text-align:right;">
]]></content:encoded>
</item>
<item>
<title><![CDATA[EM console fails to load when weblogic is configured as windows service]]></title>
<link>http://techworldrocks.wordpress.com/2012/08/29/em-console-fails-to-load-when-weblogic-is-configured-as-windows-service/</link>
<pubDate>Wed, 29 Aug 2012 22:36:15 +0000</pubDate>
<dc:creator>vaishalipavashe</dc:creator>
<guid>http://techworldrocks.wordpress.com/2012/08/29/em-console-fails-to-load-when-weblogic-is-configured-as-windows-service/</guid>
<description><![CDATA[Its been found that EM console fails to load when weblogic is configured as windows service. When we]]></description>
<content:encoded><![CDATA[<p>Its been found that EM console fails to load when weblogic is configured as windows service. When we install weblogic as service only commEnv.cmd file is called which is not sufficient to set EM environment so to make EM console work, follow below work-around:</p>
<p>1. Edit installSvc.cmd file to add setDomainEnv.cmd instaed of commEnv.cmd:<br />
Replace:<br />
call &#8220;%WL_HOME%\common\bin\commEnv.cmd&#8221;</p>
<p>with<br />
call &#8220;%DOMAIN_HOME%\bin\setDomainEnv.cmd&#8221;</p>
<p>2. The setDomainEnv.cmd script will correctly setup up the classpath, so comment out or remove the following line:</p>
<p>set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH%</p>
<p>3. Now re-install weblogic service and start it</p>
<p>4. Access EM console on admin IP:Port and it will load properly</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Spam Comments in the Wordpress Dashboard... Akismet works pretty great!]]></title>
<link>http://diaryofdennis.com/2012/08/28/spam-comments-in-the-wordpress-dashboard-akismet-works-pretty-great/</link>
<pubDate>Tue, 28 Aug 2012 00:11:26 +0000</pubDate>
<dc:creator>diaryofdennis</dc:creator>
<guid>http://diaryofdennis.com/2012/08/28/spam-comments-in-the-wordpress-dashboard-akismet-works-pretty-great/</guid>
<description><![CDATA[Today I was bored and thought I browse in the Dashboard of my Blog. I also browsed the Section where]]></description>
<content:encoded><![CDATA[Today I was bored and thought I browse in the Dashboard of my Blog. I also browsed the Section where]]></content:encoded>
</item>
<item>
<title><![CDATA[howto create a webserver in 6 lines of javascript]]></title>
<link>http://osde8info.wordpress.com/2012/08/21/howto-create-a-webserver-in-6-lines-of-javascript/</link>
<pubDate>Tue, 21 Aug 2012 08:36:04 +0000</pubDate>
<dc:creator>osde8info</dc:creator>
<guid>http://osde8info.wordpress.com/2012/08/21/howto-create-a-webserver-in-6-lines-of-javascript/</guid>
<description><![CDATA[howto create a webserver in 6 lines of javascript nodejs.org]]></description>
<content:encoded><![CDATA[<p>howto create a webserver in 6 lines of javascript</p>
<ul>
<li><a href="http://nodejs.org/">nodejs.org</a></li>
</ul>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Installing Nginx With PHP5 (And PHP-FPM)  On CentOS 6.0 to run a CakePhp application.]]></title>
<link>http://tapasmishra.wordpress.com/2012/08/18/installing-nginx-with-php5-and-php-fpm-on-centos-6-0-to-run-a-cakephp-application/</link>
<pubDate>Sat, 18 Aug 2012 04:16:08 +0000</pubDate>
<dc:creator>tapasmishra</dc:creator>
<guid>http://tapasmishra.wordpress.com/2012/08/18/installing-nginx-with-php5-and-php-fpm-on-centos-6-0-to-run-a-cakephp-application/</guid>
<description><![CDATA[First update your machine. #yum update Install all development tools #yum groupinstall &#8220;Develo]]></description>
<content:encoded><![CDATA[<p>First update your machine.</p>
<blockquote><p>#yum update</p></blockquote>
<p>Install all development tools</p>
<blockquote><p>#yum groupinstall &#8220;Development Tools&#8221;</p></blockquote>
<p>Install MySQL</p>
<blockquote><p>#yum install mysql mysql-server<br />
#chkconfig &#8211;levels 235 mysqld on<br />
#/etc/init.d/mysqld start<br />
#mysqladmin -u root password yourrootsqlpassword</p></blockquote>
<p>To install Php</p>
<blockquote><p>yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc</p></blockquote>
<p>Install some dependency applications for nginx</p>
<blockquote><p>#yum install zlib-devel wget openssl-devel pcre pcre-devel sudo gcc make autoconf automake</p></blockquote>
<p>Download ngnix for installation</p>
<blockquote><p>#wget <a href="http://nginx.org/download/nginx-1.2.0.tar.gz" rel="nofollow">http://nginx.org/download/nginx-1.2.0.tar.gz</a></p>
<p>#tar -zxf nginx-1.2.0.tar.gz</p>
<p>#wget <a href="http://downloads.sourceforge.net/pcre/pcre-8.10.tar.bz2" rel="nofollow">http://downloads.sourceforge.net/pcre/pcre-8.10.tar.bz2</a></p>
<p>#tar -jxf pcre-8.10.tar.bz2</p>
<p>#cd pcre-8.10</p>
<p>#./configure</p>
<p>#make</p>
<p>#make install</p>
<p>#cd nginx-1.2.0</p>
<p>#./configure &#8211;prefix=/opt/nginx &#8211;user=nginx &#8211;group=nginx &#8211;with-http_ssl_module</p></blockquote>
<p>When the configuration process completes successfully, you will see the following output:</p>
<blockquote><p>nginx path prefix: &#8220;/opt/nginx&#8221;</p>
<p>nginx binary file: &#8220;/opt/nginx/sbin/nginx&#8221;</p>
<p>nginx configuration prefix: &#8220;/opt/nginx/conf&#8221;</p>
<p>nginx configuration file: &#8220;/opt/nginx/conf/nginx.conf&#8221;</p>
<p>nginx pid file: &#8220;/opt/nginx/logs/nginx.pid&#8221;</p>
<p>nginx error log file: &#8220;/opt/nginx/logs/error.log&#8221;</p>
<p>nginx http access log file: &#8220;/opt/nginx/logs/access.log&#8221;</p>
<p>nginx http client request body temporary files: &#8220;client_body_temp&#8221;</p>
<p>nginx http proxy temporary files: &#8220;proxy_temp&#8221;</p>
<p>nginx http fastcgi temporary files: &#8220;fastcgi_temp&#8221;</p></blockquote>
<p>Issue more two commands to complete nginx setup.</p>
<blockquote><p>#make</p>
<p>#make install</p></blockquote>
<p><strong>Create an user named “ngnix”</strong></p>
<p>useradd -M -r &#8211;shell /sbin/nologin &#8211;home-dir /opt/nginx nginx</p>
<p><strong>Create a init script for nginx</strong></p>
<p>Vi /etc/rc.d/init.d/nginx</p>
<blockquote><p>#!/bin/sh</p>
<p>#</p>
<p># nginx â this script starts and stops the nginx daemon</p>
<p>#</p>
<p># chkconfig: &#8211; 85 15</p>
<p># description: Nginx is an HTTP(S) server, HTTP(S) reverse \</p>
<p># proxy and IMAP/POP3 proxy server</p>
<p># processname: nginx</p>
<p># config: /opt/nginx/conf/nginx.conf</p>
<p># pidfile: /opt/nginx/logs/nginx.pid</p>
<p># Source function library.</p>
<p>. /etc/rc.d/init.d/functions</p>
<p># Source networking configuration.</p>
<p>. /etc/sysconfig/network</p>
<p># Check that networking is up.</p>
<p>[ "$NETWORKING" = "no" ] &#38;&#38; exit 0</p>
<p>nginx=&#8221;/opt/nginx/sbin/nginx&#8221;</p>
<p>prog=$(basename $nginx)</p>
<p>NGINX_CONF_FILE=&#8221;/opt/nginx/conf/nginx.conf&#8221;</p>
<p>lockfile=/var/lock/subsys/nginx</p>
<p>start() {</p>
<p>[ -x $nginx ] &#124;&#124; exit 5</p>
<p>[ -f $NGINX_CONF_FILE ] &#124;&#124; exit 6</p>
<p>echo -n $&#8221;Starting $prog: &#8220;</p>
<p>daemon $nginx -c $NGINX_CONF_FILE</p>
<p>retval=$?</p>
<p>echo</p>
<p>[ $retval -eq 0 ] &#38;&#38; touch $lockfile</p>
<p>return $retval</p>
<p>}</p>
<p>stop() {</p>
<p>echo -n $&#8221;Stopping $prog: &#8220;</p>
<p>killproc $prog -QUIT</p>
<p>retval=$?</p>
<p>echo</p>
<p>[ $retval -eq 0 ] &#38;&#38; rm -f $lockfile</p>
<p>return $retval</p>
<p>}</p>
<p>restart() {</p>
<p>configtest &#124;&#124; return $?</p>
<p>stop</p>
<p>start</p>
<p>}</p>
<p>reload() {</p>
<p>configtest &#124;&#124; return $?</p>
<p>echo -n $âeloading $prog: â</p>
<p>RETVAL=$?</p>
<p>echo</p>
<p>}</p>
<p>force_reload() {</p>
<p>restart</p>
<p>}</p>
<p>configtest() {</p>
<p>$nginx -t -c $NGINX_CONF_FILE</p>
<p>}</p>
<p>rh_status() {</p>
<p>status $prog</p>
<p>}</p>
<p>rh_status_q() {</p>
<p>rh_status &#62;/dev/null 2&#62;&#38;1</p>
<p>}</p>
<p>case &#8220;$1&#8243; in</p>
<p>start)</p>
<p>rh_status_q &#38;&#38; exit 0</p>
<p>$1</p>
<p>;;</p>
<p>stop)</p>
<p>rh_status_q &#124;&#124; exit 0</p>
<p>$1</p>
<p>;;</p>
<p>restart&#124;configtest)</p>
<p>$1</p>
<p>;;</p>
<p>reload)</p>
<p>rh_status_q &#124;&#124; exit 7</p>
<p>$1</p>
<p>;;</p>
<p>force-reload)</p>
<p>force_reload</p>
<p>;;</p>
<p>status)</p>
<p>rh_status</p>
<p>;;</p>
<p>condrestart&#124;try-restart)</p>
<p>rh_status_q &#124;&#124; exit 0</p>
<p>;;</p>
<p>*)</p>
<p>echo $&#8221;Usage: $0 {start&#124;stop&#124;status&#124;restart&#124;condrestart&#124;try-restart&#124;reload&#124;force-reload&#124;configtest}&#8221;</p>
<p>exit 2</p>
<p>esac</p></blockquote>
<p>Give accurate permission to the init script and add it for automatic startup:</p>
<blockquote><p>chmod +x /etc/rc.d/init.d/nginx</p>
<p>chkconfig &#8211;add nginx</p>
<p>chkconfig &#8211;level 2345 nginx on</p>
<p>/etc/init.d/nginx start</p></blockquote>
<p>Install PHP-FPM :</p>
<blockquote><p>yum install php-fpm</p>
<p>chkconfig &#8211;levels 235 php-fpm on</p>
<p>/etc/init.d/php-fpm start</p>
<p>vi /etc/php-fpm.d/www.conf</p>
<p>[...]</p>
<p>;listen = 127.0.0.1:9000</p>
<p>listen = /tmp/php5-fpm.sock</p>
<p>[...]</p>
<p>/etc/init.d/php-fpm restart</p></blockquote>
<p>Then edit nginx.conf to run a CakePhp application:</p>
<p>vi /opt/ngnix/configure/ngnix.conf</p>
<blockquote><p>server {</p>
<p>listen 80;</p>
<p>server_name 107.22.178.21;</p>
<p>access_log /var/log/nginx/example.com.access.log;</p>
<p>error_log /var/log/nginx/example.com.error.log;</p>
<p>rewrite_log on;</p>
<p>root /var/www/html/example.com/app/webroot;</p>
<p>index index.php index.html index.htm;</p>
<p># Not found this on disk?</p>
<p># Feed to CakePHP for further processing!</p>
<p>if (!-e $request_filename) {</p>
<p>rewrite ^/(.+)$ /index.php?url=$1 last;</p>
<p>break;</p>
<p>}</p>
<p># Pass the PHP scripts to FastCGI server</p>
<p>location ~ \.php$ {</p>
<p>fastcgi_pass unix:/tmp/php5-fpm.sock;</p>
<p>fastcgi_index index.php;</p>
<p>fastcgi_intercept_errors on; # to support 404s for PHP files not found</p>
<p>fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</p>
<p>include /opt/nginx/conf/fastcgi_params;</p>
<p>}</p>
<p>location ~* \favicon.ico$ {</p>
<p>access_log off;</p>
<p>expires 1d;</p>
<p>add_header Cache-Control public;</p>
<p>}</p>
<p>location ~ ^/(img&#124;js&#124;css)/ {</p>
<p>access_log off;</p>
<p>expires 7d;</p>
<p>add_header Cache-Control public;</p>
<p>}</p>
<p># Deny access to .htaccess files,</p>
<p># git &#38; svn repositories, etc</p>
<p>location ~ /(\.ht&#124;\.git&#124;\.svn) {</p>
<p>deny all;</p>
<p>}</p>
<p>}</p></blockquote>
]]></content:encoded>
</item>
<item>
<title><![CDATA[How to Set up WebDAV with Apache2 on CentOS 5.5]]></title>
<link>http://tapasmishra.wordpress.com/2012/08/18/how-to-set-up-webdav-with-apache2-on-centos-5-5/</link>
<pubDate>Fri, 17 Aug 2012 19:21:39 +0000</pubDate>
<dc:creator>tapasmishra</dc:creator>
<guid>http://tapasmishra.wordpress.com/2012/08/18/how-to-set-up-webdav-with-apache2-on-centos-5-5/</guid>
<description><![CDATA[WebDAV stands for web-based Distributed Authoring and Versioning and is a set of extensions to the H]]></description>
<content:encoded><![CDATA[<p>WebDAV stands for web-based Distributed Authoring and Versioning and is a set of extensions to the HTTP protocol that allow users to directly edit files on the Apache server so that they do not need to be downloaded/uploaded via FTP. Of course, WebDAV can also be used also be used to upload and download files.</p>
<p>yum -y upgrade<br />
yum install httpd</p>
<p>Afterwards, open /etc/httpd/conf/httpd.conf and make sure that the dav and dav_fs modules are enabled in the LoadModule section (they should be enabled by default):</p>
<p>vi /etc/httpd/conf/httpd.conf</p>
<p>LoadModule dav_module modules/mod_dav.so<br />
LoadModule dav_fs_module modules/mod_dav_fs.so</p>
<p>Then create the system startup links for Apache and start it:</p>
<p>chkconfig &#8211;levels 235 httpd on<br />
/etc/init.d/httpd start</p>
<p>Virtual Host Configuration:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Now create virtualhost configuration for the foloder you want to share by WebDAV. In my case I am using /var/www/html/test. Also I am using the httpd global configuration for my vhost. If you have separate vhost configuraiton file for the folder then you can use that one.</p>
<p>First, we have to create the directory /var/www/html/test and make the Apache user and group (apache) the owner of that directory:</p>
<p>mkdir -p /var/www/html/test<br />
chown apache:apache /var/www/html/test</p>
<p>Then add the new vhost at the end of /etc/httpd/conf/httpd.conf:</p>
<p>vi /etc/httpd/conf/httpd.conf</p>
<p>NameVirtualHost *:80<br />
&#60;VirtualHost *:80&#62;<br />
ServerAdmin webmaster@localhost</p>
<p>DocumentRoot /var/www/html/test<br />
&#60;Directory /var/www/html/test&#62;<br />
Options Indexes MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
allow from all<br />
&#60;/Directory&#62;</p>
<p>&#60;/VirtualHost&#62;</p>
<p>/etc/init.d/httpd reload</p>
<p>Configure The Virtual Host For WebDAV<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Now we create the WebDAV password file /etc/httpd/conf.d/passwd.dav with the user Admin (the -c switch creates the file if it does not exist):</p>
<p>htpasswd -c /etc/httpd/conf.d/passwd.dav Admin</p>
<p>You will be asked to type in a password for the user Admin.</p>
<p>(Please don&#8217;t use the -c switch if /etc/httpd/conf.d/passwd.dav is already existing because this will recreate the file from scratch, meaning you lose all users in that file!)</p>
<p>Now we change the permissions of the /etc/httpd/conf.d/passwd.dav file so that only root and the members of the apache group can access it:</p>
<p>chown root:apache /etc/httpd/conf.d/passwd.dav<br />
chmod 640 /etc/httpd/conf.d/passwd.dav</p>
<p>Now we modify our vhost at the end of /etc/httpd/conf/httpd.conf and add the following lines to it:</p>
<p>vi /etc/httpd/conf/httpd.conf</p>
<p>The Alias directive makes (together with &#60;Location&#62;) that when you call /webdav, WebDAV is invoked, but you can still access the whole document root of the vhost. All other URLs of that vhost are still &#8220;normal&#8221; HTTP.</p>
<p>NameVirtualHost *:80<br />
&#60;VirtualHost *:80&#62;<br />
ServerAdmin tapas.mishra@wordpress.com</p>
<p>DocumentRoot /var/www/html/test/<br />
&#60;Directory /var/www/html/test/&#62;<br />
Options Indexes MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
allow from all<br />
&#60;/Directory&#62;</p>
<p>Alias /webdav /var/www/html/test</p>
<p>&#60;Location /webdav&#62;<br />
DAV On<br />
AuthType Basic<br />
AuthName &#8220;webdav&#8221;<br />
AuthUserFile /etc/httpd/conf.d/passwd.dav<br />
Require valid-user<br />
&#60;/Location&#62;</p>
<p>&#60;/VirtualHost&#62;</p>
<p>Reload Apache afterwards:</p>
<p>/etc/init.d/httpd reload</p>
<p>Testing WebDAV<br />
&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>We will now install cadaver, a command-line WebDAV client:</p>
<p>yum install cadaver</p>
<p>To test if WebDAV works, type:</p>
<p>cadaver <a href="http://localhost/webdav/" rel="nofollow">http://localhost/webdav/</a></p>
<p>You should be prompted for a user name. Type in Admin and then the password for the user Admin. If all goes well, you should be granted access which means WebDAV is working ok. Type quit to leave the WebDAV shell:</p>
<p>[root@server ~]# cadaver <a href="http://localhost/webdav/" rel="nofollow">http://localhost/webdav/</a><br />
Authentication required for webdav on server `localhost&#8217;:<br />
Username: Admin<br />
Password:<br />
dav:/webdav/&#62; quit<br />
Connection to `localhost&#8217; closed.<br />
[root@server ~]#</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Configure Log4j logging for weblogic server log]]></title>
<link>http://techworldrocks.wordpress.com/2012/08/16/configure-log4j-logging-for-weblogic-server-log/</link>
<pubDate>Thu, 16 Aug 2012 15:46:32 +0000</pubDate>
<dc:creator>vaishalipavashe</dc:creator>
<guid>http://techworldrocks.wordpress.com/2012/08/16/configure-log4j-logging-for-weblogic-server-log/</guid>
<description><![CDATA[Follow below procedure to configure log4j logging with weblogic server: 1. Create a weblogic server]]></description>
<content:encoded><![CDATA[<p>Follow below procedure to configure log4j logging with weblogic server:</p>
<p>1. Create a weblogic server domain and start Admin server</p>
<p>2. Copy below jars in $DOMAIN_HOME/lib folder:</p>
<p>a. wllog4j.jar (Available in $WL_HOME/lib<br />
b. log4j-x.x.x.jar (Download latest log4j.jar from link: <a href="http://www.findjar.com/index.x?query=log4j" rel="nofollow">http://www.findjar.com/index.x?query=log4j</a> )</p>
<p>3. Login to Admin console, click on Admin server name and navigate to Logging -&#62; Advanced</p>
<p>4. Select Log Implementation from default JDK to log4j logging. Save this and activate changes. Before we restart server complete below step</p>
<p>5. Navigate to $DOMAIN_HOME on physical box and cretae a file called log4j.xml in domain home. Copy below content in it:</p>
<p>&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243; ?&#62;&#60;!DOCTYPE log4j:configuration SYSTEM &#8220;log4j.dtd&#8221;&#62;<br />
&#60;log4j:configuration&#62;<br />
&#60;appender name=&#8221;CONSOLE&#8221;&#62;<br />
&#60;layout&#62;<br />
&#60;param name=&#8221;ConversionPattern&#8221;<br />
value=&#8221;%d [%t] %-5p %c &#8211; %m%n&#8221;/&#62;<br />
&#60;/layout&#62;<br />
&#60;/appender&#62;<br />
&#60;appender name=&#8221;FILE&#8221;&#62;<br />
&#60;param name=&#8221;File&#8221; value=&#8221;/&#60;Log4j Logging location&#62;/Log4j.log&#8221;/&#62;<br />
&#60;param name=&#8221;Append&#8221; value=&#8221;true&#8221;/&#62;<br />
&#60;layout&#62;<br />
&#60;param name=&#8221;ConversionPattern&#8221; value=&#8221;%d{ISO8601} %-5p {%t}[%c] &#8211; %m%n&#8221;/&#62;<br />
&#60;/layout&#62;<br />
&#60;/appender&#62;<br />
&#60;logger name=&#8221;org.apache&#8221;&#62;<br />
&#60;level value=&#8221;WARN&#8221;/&#62;<br />
&#60;/logger&#62;<br />
&#60;logger name=&#8221;org.springframework&#8221;&#62;<br />
&#60;level value=&#8221;WARN&#8221;/&#62;<br />
&#60;/logger&#62;<br />
&#60;root&#62;<br />
&#60;level value=&#8221;DEBUG&#8221;/&#62;<br />
&#60;appender-ref ref=&#8221;FILE&#8221;/&#62;<br />
&#60;appender-ref ref=&#8221;CONSOLE&#8221;/&#62;<br />
&#60;/root&#62;<br />
&#60;/log4j:configuration&#62;</p>
<p>6. Before saving, change location of Log4j.log as per your environment</p>
<p>7. Now navigate to $DOMAIN_HOME/bin folder and edit setDomainEnv.sh/cmd file:</p>
<p>Locate below 2 lines in script:</p>
<p>if NOT &#8220;%LOG4J_CONFIG_FILE%&#8221;==&#8221;" (<br />
set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Dlog4j.configuration=file:%LOG4J_CONFIG_FILE%</p>
<p>Above them add below line:</p>
<p>set LOG4J_CONFIG_FILE=&#8221;$DOMAIN_HOME\log4j.xml&#8221;</p>
<p>8. Save this file and restart server. Check at command prompt you will be able to see log4 logging</p>
<p>9. Also you can check log4j log cretaed in mentioned location in log4j.xml. Content of the log would be something link below:</p>
<p>2012-08-14 20:16:39,220 DEBUG {[ACTIVE] ExecuteThread: &#8217;0&#8242; for queue: &#8216;weblogic.kernel.Default (self-tuning)&#8217;}[com.bea.console.utils.ResourceBundleCache] &#8211; findBundle bundle baseName[global] locale language[en]<br />
2012-08-14 20:16:44,993 DEBUG {[ACTIVE] ExecuteThread: &#8217;0&#8242; for queue: &#8216;weblogic.kernel.Default (self-tuning)&#8217;}[com.bea.console.utils.MBeanUtils] &#8211; Getting connection with, Host = localhost @ port = 8001</p>
<p>This logging format is based on the configuration we have mentioned in log4j.xml:</p>
<p>&#60;param name=&#8221;ConversionPattern&#8221; value=&#8221;%d{ISO8601} %-5p {%t}[%c] &#8211; %m%n&#8221;/&#62;</p>
<p>10. If you want to change this logging format you can refer below link and confiure accordingly:</p>
<p><a href="http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html" rel="nofollow">http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html</a></p>
<p>Note: You can configure log4j using log4j.xml or log4j.properties configuration files.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Web interface for a BeagleBone controlled robot]]></title>
<link>http://fleshandmachines.wordpress.com/2012/08/16/web-interface-for-a-beaglebone-controlled-robot/</link>
<pubDate>Thu, 16 Aug 2012 10:56:42 +0000</pubDate>
<dc:creator>bmagyar</dc:creator>
<guid>http://fleshandmachines.wordpress.com/2012/08/16/web-interface-for-a-beaglebone-controlled-robot/</guid>
<description><![CDATA[Given a situation where one needs to implement a simple RC interface for a robot. What&#8217;s more]]></description>
<content:encoded><![CDATA[<p>Given a situation where one needs to implement a simple RC interface for a robot. What&#8217;s more straightforward? We could create a thick client and implement a server application for the robot but that&#8217;s too complicated. In order to have something light-weight and portable I was thinking of implementing the RC interface using some HTML and possibly some cgi.</p>
<p>The outcome of this tutorial will be a webpage that looks like this:</p>
<p><a href="http://fleshandmachines.files.wordpress.com/2012/08/web_control_screenshot1.png"><img class="aligncenter size-medium wp-image-653" title="web_control_screenshot" alt="" src="http://fleshandmachines.files.wordpress.com/2012/08/web_control_screenshot1.png?w=239&#038;h=300" height="300" width="239" /></a><br />
<!--more--><br />
After a bit of googling around I found out that there are plenty of light-weight html frameworks working from python, javascript, and various technologies.</p>
<p>I chose a framework called <em>pico</em>.</p>
<p><a href="https://github.com/fergalwalsh/pico/wiki" target="_blank">https://github.com/fergalwalsh/pico/wiki</a></p>
<p>Execute these steps on the BeagleBone:</p>
<pre>git clone http://github.com/fergalwalsh/pico.git
opkg install python-distutils
opkg install python-compile
cd pico 
python setup.py install</pre>
<p>This should install pico on your BeagleBone. Now you can cd into an example directory and try it out!</p>
<pre>cd examples/helloworld
python -m pico.server</pre>
<p>Now you can play a bit with the example and then I&#8217;ll continue.</p>
<p>&#8230;</p>
<p>Finished already? Let&#8217;s continue with putting something actually working behind the web interface.</p>
<p>****</p>
<p>If you don&#8217;t have any idea what to do for a start use this led blinker script below. I&#8217;ll create a script to send commands to my Arduino.</p>
<pre>wget http://gigamega-micro.googlecode.com/files/gpiotester.py</pre>
<div>****</div>
<p>Since I have an Arduino behind the BeagleBone for now I&#8217;ll have to communicate with that through serial port.</p>
<p>Let&#8217;s get and install pySerial.</p>
<pre>wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.6.tar.gz
tar -xf pyserial-2.6.tar.gz
cd pyserial-2.6
python setup.py install</pre>
<p>Easy isn&#8217;t it?</p>
<p>So now that we have a Serial class we can communicate with the Arduino from the BeagleBone using Python.</p>
<p>I wrote the script below to control the robot. Yeah, it&#8217;s not too elegant but will do for now.</p>
<p><a href="http://buggers.svn.sourceforge.net/viewvc/buggers/robots/scarabeus/beaglebone/webcontrol/beagle2arduino.py?view=markup&#38;pathrev=336">http://buggers.svn.sourceforge.net/viewvc/buggers/robots/scarabeus/beaglebone/webcontrol/beagle2arduino.py?view=markup&#38;pathrev=336</a></p>
<p>Note that I&#8217;m using string commands so I&#8217;m sending strings directly to my Arduino.</p>
<p>Now that we have something to call from a webpage, let&#8217;s create the page itself!</p>
<p>You should check out the codes in the example folder to get the hang of the framework, it shouldn&#8217;t take too long.</p>
<p>This is what I came up with in the end:</p>
<p><a href="http://buggers.svn.sourceforge.net/viewvc/buggers/robots/scarabeus/beaglebone/webcontrol/index.html?revision=325&#38;view=markup" target="_blank">http://buggers.svn.sourceforge.net/viewvc/buggers/robots/scarabeus/beaglebone/webcontrol/index.html?revision=325&#38;view=markup</a></p>
<p>Note: if you are experiencing some kind of lag or blocked messages, you can help it by running the following on the BeagleBone. This &#8220;wakes up&#8221; the serial port. The above python code of mine will require a bit more massage to get this effect.</p>
<pre>screen /dev/ttyUSB0</pre>
<p>And finally here&#8217;s a video of controlling my rover using the above web page:</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/8AF8hgOiQ7s?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p>Like if you like my whistling and of course comments are always welcome!</p>
<h3>References</h3>
<p><a href="http://pypi.python.org/pypi/pyserial">http://pypi.python.org/pypi/pyserial</a></p>
<p><a href="http://www.mediacollege.com/internet/javascript/form/add-text.html">http://www.mediacollege.com/internet/javascript/form/add-text.html</a></p>
<p><a href="https://github.com/fergalwalsh/pico/blob/master/examples/helloworld/index.html">https://github.com/fergalwalsh/pico/blob/master/examples/helloworld/index.html</a></p>
<p><a href="http://www.w3schools.com/">http://www.w3schools.com/</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Creating PHP Files with Notepad]]></title>
<link>http://amandastechfiles.wordpress.com/2012/08/13/creating-php-files-with-notepad/</link>
<pubDate>Mon, 13 Aug 2012 14:26:41 +0000</pubDate>
<dc:creator>crazymanda</dc:creator>
<guid>http://amandastechfiles.wordpress.com/2012/08/13/creating-php-files-with-notepad/</guid>
<description><![CDATA[I have decided to teach myself how to set up a web server running PHP and MySQL for a company projec]]></description>
<content:encoded><![CDATA[<p>I have decided to teach myself how to set up a web server running PHP and MySQL for a company project. I set up my Ubuntu 12.04 box with Apache2, PHP5, and MySQL. Everything looked like it was working when I got the following screen.</p>
<p><a href="http://amandastechfiles.files.wordpress.com/2012/08/apache1.png"><img class="alignnone size-full wp-image-128" title="apache1" src="http://amandastechfiles.files.wordpress.com/2012/08/apache1.png?w=451&#038;h=146" alt="" width="451" height="146" /></a></p>
<p>&#160;</p>
<p>I got all warm and fuzzy knowing I was on the right track. The next step was to check that PHP was running properly. I opened Notepad and inserted the following code:</p>
<p>&#60;?php<br />
phpinfo();<br />
?&#62;</p>
<p>I made sure to select All Files when saving to ensure that I saved the file as <strong>info.php</strong> and not <strong>info.php.txt</strong></p>
<p>I even opened a new windows explorer to ensure it. The file type was listed as PHP. I felt confident and FTP&#8217;d my file over to my server. No go. It didn&#8217;t work.</p>
<p>I reopened the file and saved it as UTF-8 encoding. Still no go.</p>
<p>Then I stumbled onto something very useful. I could just create the file from the command line on the remote server. I logged into Putty and logged in to my server.</p>
<p>First thing as always&#8230;.</p>
<p><strong>#sudo su</strong></p>
<p>I hate the headache of running along and my momentum is interrupted because I am not logged in as root.</p>
<p><strong>#vi /var/www/info.php</strong></p>
<p>This not only edits an existing file but will create a new one. A typical vi editor opens a blank file. I typed my code directly in the screen and saved the file and voila! It works like a champ. When I type webservername/info.php</p>
<p>into my browser I now get the info I wanted.</p>
<p><a href="http://amandastechfiles.files.wordpress.com/2012/08/apachephp.png"><img class="alignnone size-full wp-image-129" title="apachephp" src="http://amandastechfiles.files.wordpress.com/2012/08/apachephp.png?w=519&#038;h=252" alt="" width="519" height="252" /></a></p>
<p>&#160;</p>
<p>I know that there are great programmer editors out there, and I will download one eventually, but sometimes when learning something new it is good to start with the bare bones so that you can truly understand how it works.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Instal tomcat 7 pada Igos Nusantara]]></title>
<link>http://kpunikomlipi.wordpress.com/2012/08/06/instal-tomcat-7-pada-igos-nusantara/</link>
<pubDate>Mon, 06 Aug 2012 03:09:59 +0000</pubDate>
<dc:creator>wajatmaka</dc:creator>
<guid>http://kpunikomlipi.wordpress.com/2012/08/06/instal-tomcat-7-pada-igos-nusantara/</guid>
<description><![CDATA[Sebelumnya, pastikan anda telah instal JDK di OS IGN anda kalau belum, silahkan download JDK di orac]]></description>
<content:encoded><![CDATA[<p style="text-align:justify;">Sebelumnya, pastikan anda telah instal JDK di OS IGN anda <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  kalau belum, silahkan download JDK di <a href="http://www.oracle.com/us/technologies/java/overview/index.html?origref=http://www.oracle.com/index.html">oracle</a>. untuk memastikannya buka terminal anda lalu ketikan</p>
<pre class="brush: bash; title: ; notranslate" title=""> $java -version</pre>
<p style="text-align:justify;">kalau sudah terinstall akan keluar output text versi java yang terinstal :</p>
<pre class="brush: bash; title: ; notranslate" title="">java version &#34;1.7.0_03&#34;
 Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
 Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)
</pre>
<p><!--more--></p>
<pre></pre>
<p style="text-align:justify;">kalau belum, download dulu deh trus instal sesuai paket file nya. biasa nya .sh kalau .sh cara install nya sh ./java&#8230;..sh klo paket nya rpm cukup ketikan rpm -ivH namajava.rpm, simpelkan? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ok anggap saja ini sudah terinstall.</p>
<p style="text-align:justify;">Sekarang download dulu tomcatnya di<a title="TOMCAT" href="http://tomcat.apache.org/download-70.cgi"> http://tomcat.apache.org/download-70.cgi</a>, sudah di dwonload? ok kita lanjut ke langkah berikutnya.</p>
<p style="text-align:justify;">1. Ekstrak file tomcat dan copy ke direktori /usr/share/</p>
<pre class="brush: bash; title: ; notranslate" title="">#tar xvfz apache-tomcat-7.0.27.tar.gz -C /usr/share/</pre>
<p style="text-align:justify;">2. Aktif kode akses untuk file servis tomcat</p>
<pre class="brush: bash; title: ; notranslate" title="">#cd /usr/share/apache-tomcat-7.0.27/bin/
 #chmod 755 *.sh</pre>
<p style="text-align:justify;"><a href="http://blog.wajatmaka.web.id/wp-content/uploads/2012/04/abc.png"><img class="aligncenter size-full wp-image-800" title="abc" src="http://blog.wajatmaka.web.id/wp-content/uploads/2012/04/abc.png" alt="" width="885" height="551" /></a>3. Membuat services untuk tomcat</p>
<pre class="brush: bash; title: ; notranslate" title="">#touch /etc/init.d/tomcat
 #cd /etc/init.d/
 #nano tomcat</pre>
<p style="text-align:justify;">Lalu copy paste source code dibawah ini :</p>
<pre class="brush: bash; title: ; notranslate" title="">

#!/bin/bash
 # deskripsi : Tomcat Start Stop Restart
 # nama proses wajatmaka: tomcat
 # chkconfig: 234 20 80
 #perhatikan versi java yang anda punya
 JAVA_HOME=/usr/java/jdk1.7.0_03
 export JAVA_HOME
 PATH=$JAVA_HOME/bin:$PATH
 export PATH
 CATALINA_HOME=/usr/share/apache-tomcat-7.0.27/

case $1 in
 start)
 sh $CATALINA_HOME/bin/startup.sh
 ;;
 stop)
 sh $CATALINA_HOME/bin/shutdown.sh
 ;;
 restart)
 sh $CATALINA_HOME/bin/shutdown.sh
 sh $CATALINA_HOME/bin/startup.sh
 ;;
 esac
 exit 0
 </pre>
<p>Ok sekarang bagaimana cara menghidupkan, mematikan, dan hidupkan ulang service tomcat :</p>
<pre class="brush: bash; title: ; notranslate" title="">#service tomcat start //menghidupkan servis tomcat
 #service tomcat restart //hidupkan ulang servis tomcat
 #service tomcat stop //matikan servis tomcat</pre>
<p style="text-align:left;"><a href="http://blog.wajatmaka.web.id/wp-content/uploads/2012/04/asa.png"><img class="aligncenter  wp-image-806" title="asa" src="http://blog.wajatmaka.web.id/wp-content/uploads/2012/04/asa.png" alt="" width="896" height="543" /></a>Ok, setelah anda hidupkan servis tomcat, buka Browser anda lalu ketikan :</p>
<pre class="brush: bash; title: ; notranslate" title="">]http://localhost:8080/</pre>
<p style="text-align:center;"><a href="http://blog.wajatmaka.web.id/wp-content/uploads/2012/04/aaaa.png"><img class="aligncenter  wp-image-807" title="aaaa" src="http://blog.wajatmaka.web.id/wp-content/uploads/2012/04/aaaa.png" alt="" width="896" height="560" /></a>Instalasi dan Konfigurasi tomcat SELESAI <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[What&rsquo;s new in avast! Version 7?]]></title>
<link>http://m3chman.wordpress.com/2012/08/02/whats-new-in-avast-version-7/</link>
<pubDate>Thu, 02 Aug 2012 11:33:07 +0000</pubDate>
<dc:creator>m3chman</dc:creator>
<guid>http://m3chman.wordpress.com/2012/08/02/whats-new-in-avast-version-7/</guid>
<description><![CDATA[Avast! is the world’s most popular antivirus software with over 150 million registered users worldwi]]></description>
<content:encoded><![CDATA[Avast! is the world’s most popular antivirus software with over 150 million registered users worldwi]]></content:encoded>
</item>
<item>
<title><![CDATA[Vagrant and VM server hosting]]></title>
<link>http://awole20.wordpress.com/2012/07/30/vagrant-and-vm-server-hosting-6-2/</link>
<pubDate>Mon, 30 Jul 2012 15:08:43 +0000</pubDate>
<dc:creator>awole20</dc:creator>
<guid>http://awole20.wordpress.com/2012/07/30/vagrant-and-vm-server-hosting-6-2/</guid>
<description><![CDATA[This is going to be a brief summary of last night&#8217;s webserver gripe &#8212; I&#8217;m still le]]></description>
<content:encoded><![CDATA[<p>This is going to be a brief summary of last night&#8217;s webserver gripe &#8212; I&#8217;m still learning my way around DHCP, DNS, port forwarding, and virtual network devices, and I hit a wall when playing with a <a href="http://vagrantup.com/">vagrant</a> box hosting a simple hello world apache site &#8211; Nowhere in the documentation is explanations as to how the bridged connection works, or doesn&#8217;t work. Apparently it can&#8217;t be accessed directly from outside the network. I could read it fine from inside the local network on say &#8212; 192.168.1.10, but when I port forwarded port 80 to the virtual machine from the router &#8212; nothing.</p>
<p>To get around this, I port forwarded to the host machine, and had the host port forward (again) to the virtual machine&#8217;s ports. I&#8217;m not sure if there is a better way of exposing a virtual machine (oraclebox/vagrant) to the outside world, and I&#8217;ll keep digging but I&#8217;m just glad that progress has been made. Sometimes the obvious answers stare at us in the face and it takes a little poking around to find them properly.</p>
<p>EDIT: A suggestion by <a href="https://github.com/mlb-">mlb-</a> has been to check my virtual network interface &#8211; it might be a NAT issue, and I should check if it&#8217;s bridged properly. Let&#8217;s hope for better results!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux Webserver Project]]></title>
<link>http://kay4ni.wordpress.com/2012/07/16/linux-webserver-project/</link>
<pubDate>Mon, 16 Jul 2012 11:59:53 +0000</pubDate>
<dc:creator>kay4ni</dc:creator>
<guid>http://kay4ni.wordpress.com/2012/07/16/linux-webserver-project/</guid>
<description><![CDATA[I want to create a webserver inside a DMZ, which will house a MySql database. The MySql database wil]]></description>
<content:encoded><![CDATA[<p>I want to create a webserver inside a DMZ, which will house a MySql database. The MySql database will replicate to a SQL database which will exist within a &#8220;core protected network&#8221; on a Microsoft SQL Server</p>
<p>The idea being that changes can be made to the database externally without doing the following:</p>
<p>(1) Compromising SQL server.</p>
<p>(2) Secure the internal network from outside access/hacking.</p>
<p>(3) Overloading the SQL server causing it to fall over.</p>
<p>I would also like the DMZ Webserver to be mirrored for further testing.</p>
<p>This is the plan, no doubt this will evolve and change with time &#8211; but I am going to enjoy the ride.</p>
<p>&#160;</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Set Up a Cloud Webserver on Amazon]]></title>
<link>http://phptechsolutions.wordpress.com/2012/07/14/set-up-a-cloud-webserver-on-amazon/</link>
<pubDate>Sat, 14 Jul 2012 08:51:29 +0000</pubDate>
<dc:creator>Chitta</dc:creator>
<guid>http://phptechsolutions.wordpress.com/2012/07/14/set-up-a-cloud-webserver-on-amazon/</guid>
<description><![CDATA[Below are the steps to set up a cloud Webserver Set up an account on AWS. To get started, you will n]]></description>
<content:encoded><![CDATA[<p><a href="http://phptechsolutions.files.wordpress.com/2012/07/aws-logo.gif"><img src="http://phptechsolutions.files.wordpress.com/2012/07/aws-logo.gif?w=164&#038;h=60" alt="" title="aws-logo" width="164" height="60" class="alignleft size-full wp-image-246" /></a><br />
<b>Below are the steps to set up a cloud Webserver</b></p>
<ol>
<li style='margin-bottom:10px;'>Set up an account on AWS. To get started, you will need an Amazon acount. You can find how to create your account <a href="http://www.amazonaws.com" target="_new">here</a>.  You will need to enter a credit card, but it won’t be charged as we will only be using a server that is on the free usage tier.  </li>
<li style='margin-bottom:10px;'>Once you log in to the AWS Console (It’s a link under the dropdown in the top right), go to the EC2 tab and launch a new Instance.  An instance is a cloud computer, which is a virtual machin.  Clicking this option starts the process for choosing options of your cloud computer.</li>
<li style='margin-bottom:10px;'>Create an Instance.  Select your instance Type.  You can select Windows and Linux instance types.  I&#8217;m going to use Ubuntu. Alos, you can use Community AMIs. <br /> <!--more--><br />
<a href="http://phptechsolutions.files.wordpress.com/2012/07/instance.png"><img src="http://phptechsolutions.files.wordpress.com/2012/07/instance.png?w=600" alt="" title="instance" class="alignnone size-medium wp-image-247" /></a>
</li>
<li style='margin-bottom:10px;'>Ensure number of instances is set to 1 and type is set to Micro (so it’s free) . The availability zone doesn’t really matter here so select no preference on that dropdown and hit continue.  On the next page, all of the defaults are fine, so we just hit continue again.</li>
<li style='margin-bottom:10px;'>Generate and download a key pair.  This step is essential to securely access your cloud computer.  In this step, you generate a special file, which is a  .pem file, that you&#8217;ll use to authenticate and log into your machine.  Make sure your browser allows for file downloads before you proceed through this step.  You&#8217;ll need to keep this file handy to connect to your cloud computer.</li>
<li style='margin-bottom:10px;'>Configure the Firewall for your cloud computer.  In this step, you&#8217;ll specify the ports that will be open on your server.  For a LAMP server, the default firewall configuration is to open ports for SSH, HTTP, and MySQL, which opens ports 22, 80, and 3306.
<p>Upon completing these steps, simply click Launch.  When you do so, Amazon will build your cloud computer and turn it on.  It took just over a minute for Amazon to generate my virtual machine and boot my server.
</li>
<li style='margin-bottom:10px;'>Next you will get a screen showing everything you’ve just selected – as long as nothing looks particularly odd you can click “Launch” and your new server will be up and running within a minute or so! The EC2 Dashboard shows my running instance below.
<p><a href="http://phptechsolutions.files.wordpress.com/2012/07/running_instance.png"><img src="http://phptechsolutions.files.wordpress.com/2012/07/running_instance.png?w=500" alt="" title="running_instance" class="alignnone size-medium wp-image-248" /></a>
</li>
<li>Now it is time to connect to the machine. You can download the private SSH key from your Amazon account. If you want to connect to the machine from Windows using the popular tool Putty, you will need to convert your private key to the .PPK format.
<p>On Linux, you can open a Terminal and run the following command:<br />
ssh -i /path/to/your/private/key.pem root@ec2-50-19-73-179.compute-1.amazonaws.com</p>
<p>Now its time to install the LAMP stack Apache, MySQL and PHP.  <a href="/2012/07/06/install-lamp-on-ubuntu/">Here is the link to install LAMP in Ubuntu</a>.</li>
</ol>
<p>That&#8217;s all.  Let me know if anybody has any concerns or issues.</p>
]]></content:encoded>
</item>

</channel>
</rss>
