<?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>Marouf Consulting Inc</title>
	<atom:link href="http://maroufinc.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://maroufinc.com</link>
	<description></description>
	<lastBuildDate>Thu, 02 Jun 2011 06:20:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Amazon Cloud &#8211; Images</title>
		<link>http://maroufinc.com/2011/05/amazon-cloud-images/</link>
		<comments>http://maroufinc.com/2011/05/amazon-cloud-images/#comments</comments>
		<pubDate>Tue, 31 May 2011 06:26:58 +0000</pubDate>
		<dc:creator>MrOdysseus</dc:creator>
				<category><![CDATA[aws]]></category>

		<guid isPermaLink="false">http://maroufinc.com/?p=118</guid>
		<description><![CDATA[Recently I&#8217;ve started using Amazon Web Services for my hosting solution. One of the great benefits is having so much flexibility available with the servers your create. I wanted to share today how to create an image from a running &#8230; <a href="http://maroufinc.com/2011/05/amazon-cloud-images/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div align="right" style="float: right; padding: 0px 0px 5px 5px;"><a name="fb_share" type="button_count" share_url="http://maroufinc.com/2011/05/amazon-cloud-images/"></a></div><p>Recently I&#8217;ve started using Amazon Web Services for my hosting solution. One of the great benefits is having so  much flexibility available with the servers your create. I wanted to share today how to create an image from a running server</p>
<p>I am using a Ubuntu as my flavor of Unix. I am going to assume you can use <strong>man</strong> and <strong>&#8211;help</strong> for more information and help.</p>
<p><strong>You will need to install Amazon EC2 AMI Tools</strong></p>
<p>uncomment multiverse repositories, update, and install</p>
<p><pre><code>
vi /etc/apt/sources.list
apt-get update
apt-get install ec2-ami-tools
</code></pre></p>
<p><a href="http://docs.amazonwebservices.com/AmazonEC2/gsg/2006-06-26/account.html#signing-up-for-aes">create a cert and private key</a> to encrypt your image!</p>
<p>I created two scripts one to bundle up my server, and the second one to upload it.</p>
<p><pre><code>
root@\server:~/AMI# cat createImage.csh&nbsp;&nbsp;uploadBundle.csh
#!/bin/bash
ec2-bundle-vol -d /mnt -k Pk-file.pem -c cert-file.pem -u userid-number -r x86_64 -p tagname

#!/bin/bash
ec2-upload-bundle -b bucket-name -m /mnt/tagname.manifest.xml -a access-key -s access-pass
</code></pre></p>
<p>Now you can register your server AMI and Launch a new server the uploaded image</p>
<p>from the Amazon web panel, you can navigate to AMI&#8217;s, select register new AMI and input the manifest link. It would look something like this</p>
<p>AMI Manifest Path*:</p>
<p>http://s3.amazonaws.com:80/bucket-name/tagname.manifest.xml</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmaroufinc.com%2F2011%2F05%2Famazon-cloud-images%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://maroufinc.com/2011/05/amazon-cloud-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>solving wordpress folder permissions</title>
		<link>http://maroufinc.com/2010/12/solving-wordpress-folder-permissions/</link>
		<comments>http://maroufinc.com/2010/12/solving-wordpress-folder-permissions/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 01:16:55 +0000</pubDate>
		<dc:creator>MrOdysseus</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[fast cgi]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://maroufinc.com/?p=70</guid>
		<description><![CDATA[This is a total rewrite of my original notes on wordpress folder permissions, I still consider the folder permissions discussed with the earlier article relevant, and a good starting point. This article will discuss reconfiguring apache to use mod fast &#8230; <a href="http://maroufinc.com/2010/12/solving-wordpress-folder-permissions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div align="right" style="float: right; padding: 0px 0px 5px 5px;"><a name="fb_share" type="button_count" share_url="http://maroufinc.com/2010/12/solving-wordpress-folder-permissions/"></a></div><p>This is a total rewrite of my original notes on <a title="Wordpress Folder Permissions" href="http://maroufinc.com/2010/08/default-wordpress-folder-permissions/" target="_blank">wordpress folder permissions</a>, I still consider the folder permissions discussed with the earlier article relevant, and a good starting point. This article will discuss reconfiguring apache to use mod fast cgi. This eliminates the problem of wordpress folder permissions and also improves server performance.</p>
<p>Assuming you are running your own server, and have the ability to reconfigure apache. We are going to change the default behavior of apache. Instead of having your web requests handled by the default user www-data or apache, we can have it spawn a process to handle requests for that domain with the credentials of a specific user, this is espically useful if you host multiple domain. This greatly improves security, and also enables you to set specific configurations on a per domain basis, without having to do site wide changes.</p>
<p>The overall picture is that apache will spawn servers to handle incoming requests. Those requests are then handed over to children cgi processes that run under different user ids.</p>
<p>I&#8217;m not going to write my own details and directions as there are many websites out there that detail this, however please check the notes section below. One good reference would be Brandon Turner&#8217;s link below</p>
<p><a href="http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/" target="_blank">http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/</a></p>
<p><strong>Notes:</strong></p>
<p>I found the following script to work best with my current needs and setup for the fcgi:</p>
<p><pre><pre>#!/bin/sh
PHPRC=/etc/php5/cgi/
export PHPRC
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS

umask 0022
exec /usr/lib/cgi-bin/php -d apc.shm_size=15
</pre></pre></p>
<p>Please only have one manager manage the process. In my case I have in my apache.conf file MaxRequestsPerChild=5000<br />
Apache will kill off the php children as it hits that limit. You don&#8217;t want your fcgi to spawn any extra process, by including PHP_FCGI_CHILDREN=n<br />
You will end up with apache killing off one of the fcgi parents, leaving a whole bunch of orphaned children eating up the system resources.</p>
<p><strong>Results</strong></p>
<p>The data really speaks for itself. I&#8217;m glad I made the switch, see my memory results below. I did not include total memory as that is not relevant to this post. The dead portion in the middle was my fault, I had failed to realize that I needed to change the security settings on the the cacti folder since I switched to fcgi to handle web requests. Once I changed the folder ownership.</p>
<div id="attachment_84" class="wp-caption aligncenter" style="width: 525px"><a href="http://maroufinc.com/wp-content/uploads/2010/12/cacti-memory-stats.png"><img class="size-full wp-image-84" title="cacti memory stats" src="http://maroufinc.com/wp-content/uploads/2010/12/cacti-memory-stats.png" alt="cacti memory stats" width="515" height="147" /></a><p class="wp-caption-text">cacti memory stats</p></div>
<p><strong>Conclusion</strong></p>
<p>Definitely worth the time in setting up. It is not a simple task, but the results are rewarding. I hope you&#8217;ve find this post useful and can use it with your site.</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmaroufinc.com%2F2010%2F12%2Fsolving-wordpress-folder-permissions%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://maroufinc.com/2010/12/solving-wordpress-folder-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Default wordpress folder permissions</title>
		<link>http://maroufinc.com/2010/08/default-wordpress-folder-permissions/</link>
		<comments>http://maroufinc.com/2010/08/default-wordpress-folder-permissions/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 00:01:39 +0000</pubDate>
		<dc:creator>MrOdysseus</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Permissions]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://maroufinc.com/?p=55</guid>
		<description><![CDATA[It is important to keep your WordPress installation as secure as possible. One of the most common mistakes is setting the folder permission to world or group writable. There is no need for this, and if a plug-in requires this &#8230; <a href="http://maroufinc.com/2010/08/default-wordpress-folder-permissions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div align="right" style="float: right; padding: 0px 0px 5px 5px;"><a name="fb_share" type="button_count" share_url="http://maroufinc.com/2010/08/default-wordpress-folder-permissions/"></a></div><p>It is important to keep your WordPress installation as secure as possible. One of the most common mistakes is setting the folder permission to world or group writable. There is no need for this, and if a plug-in requires this setting, I would definitely think twice about installing it.</p>
<p>I wrote a quick script that would reset all my folder and file permissions.</p>
<p><pre><code>#!/bin/sh
find ./html -type d -exec chmod 755 {} \;
find ./html -type f -exec chmod 644 {} \;
</code></pre><br />
An excellent site to learn more about Unix permissions can be found <a title="http://codex.wordpress.org/Changing_File_Permissions" href="http://codex.wordpress.org/Changing_File_Permissions" target="_blank">here</a>.</p>
<p style="text-align: center;"><strong>Troubleshooting Section.</strong></p>
<ul>
<li><strong>Unable to locate WordPress Plugin directory</strong></li>
</ul>
<p>Recently when trying to upgrade a plug-in I received the infamous (Unable to locate WordPress Plugin directory.) This was actually due to a setting on the ftp server that I was using. It was setup to jail ftp users to their home directories. This works great if you only manage one site, under one account. In my case, I was able to remedy this by changing the ftp config file to the following<br />
<pre><code># Use this to jail all users in their homes
DefaultRoot                     ~ !MrOdysseus</code></pre><br />
If you are running your own server, checking the log files are a tremendous help.</p>
<ul>
<li><strong>Apache Server-Status not found</strong></li>
</ul>
<p style="text-align: left;">Cacti was polling and logging apache statistics for some time without any problems. I recently discovered that you can&#8217;t have wordpress Permalink/mod-rewrite enabled without running into some problems when cacti tries to poll for data. Since anything hitting the main site at /server-status, is automatically trying to be rerouted by wordpress.</p>
<p style="text-align: left;">A quick fix was to add a new virtual host entry that would disable all overrides for traffic hitting localhost, which is exactly what was needed to get cacti to work. Apache documentation can be found <a title="http://httpd.apache.org/docs/2.2/" href="http://httpd.apache.org/docs/2.2/" target="_blank">here</a>.</p>
<p style="text-align: left;">
<p><pre><code>

ServerAdmin root@silly-url.com
ServerSignature Off</code></pre><br />
Options -Indexes<br />
AllowOverride None<br />
Order deny,allow<br />
Deny from all<br />
Allow from 127.0.0.0</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmaroufinc.com%2F2010%2F08%2Fdefault-wordpress-folder-permissions%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://maroufinc.com/2010/08/default-wordpress-folder-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bypassing Group Policy enabled Screen Savers</title>
		<link>http://maroufinc.com/2010/08/bypassing-group-policy-enabled-screen-savers/</link>
		<comments>http://maroufinc.com/2010/08/bypassing-group-policy-enabled-screen-savers/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 23:24:50 +0000</pubDate>
		<dc:creator>MrOdysseus</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Disable]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Media Player]]></category>
		<category><![CDATA[Screen Saver]]></category>

		<guid isPermaLink="false">http://maroufinc.com/?p=45</guid>
		<description><![CDATA[Most companies restrict your desktop experience for various reasons, one of the more annoying restrictions is having a screen saver popping up and locking your window. A simple way to bypass this is to start Windows Media Player, Hit Play &#8230; <a href="http://maroufinc.com/2010/08/bypassing-group-policy-enabled-screen-savers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div align="right" style="float: right; padding: 0px 0px 5px 5px;"><a name="fb_share" type="button_count" share_url="http://maroufinc.com/2010/08/bypassing-group-policy-enabled-screen-savers/"></a></div><p>Most companies restrict your desktop experience for various reasons, one of the more annoying restrictions is having a screen saver popping up and locking your window. A simple way to bypass this is to start Windows Media Player, Hit Play on any song, select the continuous loop option, and finally mute the volume.<br />
<a href="http://maroufinc.com/wp-content/uploads/2010/08/WMP-Controls.png"><img class="alignnone size-full wp-image-46" title="WMP-Controls" src="http://maroufinc.com/wp-content/uploads/2010/08/WMP-Controls.png" alt="" width="417" height="57" /></a></p>
<p>Very simple and elegant. WMP has a built in option under Player Preferences to stop the screen saver from loading. This option is generally turned on by default.</p>
<p><a href="http://maroufinc.com/wp-content/uploads/2010/08/WMP-ScreenSaverOption.png"><img class="aligncenter size-full wp-image-47" title="WMP-ScreenSaverOption" src="http://maroufinc.com/wp-content/uploads/2010/08/WMP-ScreenSaverOption.png" alt="" width="395" height="238" /></a></p>
<p>Of course you are circumventing your IT security measures, so use this with care,  especially if you walk away from your desktop. always CTRL-ALT-DEL</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmaroufinc.com%2F2010%2F08%2Fbypassing-group-policy-enabled-screen-savers%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://maroufinc.com/2010/08/bypassing-group-policy-enabled-screen-savers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About Us</title>
		<link>http://maroufinc.com/2010/06/about-us/</link>
		<comments>http://maroufinc.com/2010/06/about-us/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 13:57:40 +0000</pubDate>
		<dc:creator>MrOdysseus</dc:creator>
				<category><![CDATA[web log]]></category>
		<category><![CDATA[IT Consulting]]></category>
		<category><![CDATA[Palestine]]></category>

		<guid isPermaLink="false">http://maroufinc.com/?p=20</guid>
		<description><![CDATA[Marouf Consulting, Inc. was established April 2008 by Nick Marouf, from Ramallah, Palestine. Marouf Consulting prouds itself with the number of customers that have been satisfied with the quality of our service, for office, server, and networking needs. We offer &#8230; <a href="http://maroufinc.com/2010/06/about-us/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div align="right" style="float: right; padding: 0px 0px 5px 5px;"><a name="fb_share" type="button_count" share_url="http://maroufinc.com/2010/06/about-us/"></a></div><div>
<p>Marouf Consulting, Inc. was established April 2008 by Nick Marouf,  from <a title="RamallahOnline" href="http://ramallahonline.com" target="_blank">Ramallah</a>, Palestine.</p>
<p>Marouf Consulting prouds itself with the number of customers that  have been  satisfied with the quality of our service, for office,  server, and networking needs. We offer an extensive experience in the  field of internet design and  application development, networking, and  server administration. Marouf Consulting Inc. is partnered with the best  in the industry, and and can offer a wide range of professional  services, and act a main point of contact for your project.</p>
<p>Let us be part of your strategy!</p>
</div>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmaroufinc.com%2F2010%2F06%2Fabout-us%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://maroufinc.com/2010/06/about-us/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

