<?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>MacXperience.com &#187; Web Dev</title>
	<atom:link href="http://www.macxperience.com/category/web-dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.macxperience.com</link>
	<description>iPad. iPhone. Mac OS experience, tips, tricks, solutions &#38; downloads</description>
	<lastBuildDate>Sun, 25 Jul 2010 15:56:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Whats new in 10.5.7 for PHP / Ruby folks</title>
		<link>http://www.macxperience.com/2009/07/02/whats-1057-php-ruby-folks/</link>
		<comments>http://www.macxperience.com/2009/07/02/whats-1057-php-ruby-folks/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:10:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[1.8.6]]></category>
		<category><![CDATA[10.5.7]]></category>
		<category><![CDATA[5.2.6]]></category>
		<category><![CDATA[5.2.8]]></category>

		<guid isPermaLink="false">http://www.macxperience.com/?p=25</guid>
		<description><![CDATA[So I installed the mighty 10.5.7 upgrade with great excitement. It was stated in the upgrade doc that there are small and slight visuale appearant changes, its mosty changes in the background. I was interested to see what has changed for the PHP &#38; Ruby fans on Mac with this release. PHP Impact: Multiple vulnerabilities [...]]]></description>
			<content:encoded><![CDATA[<p>So I installed the mighty 10.5.7 upgrade with great excitement. It was stated in the upgrade doc that there are small and slight visuale appearant changes, its mosty changes in the background. I was interested to see what has changed for the PHP &amp; Ruby fans on Mac with this release.</p>
<p><strong>PHP</strong></p>
<p>Impact: Multiple vulnerabilities in PHP 5.2.6</p>
<p>Description: PHP is updated to version <strong>5.2.8</strong> to address multiple vulnerabilities, the most serious of which may lead to arbitrary code execution. Get details on whats changed in 5.2.8 by clicking <a title="here" href="http://www.php.net/ChangeLog-5.php#5.2.8" target="_blank">here</a>.</p>
<p>At the time of writing this post 5.3.0 is released. And the old problem of missing GD2 library still persists. Apple must have a great reason behind it for sure <img src='http://www.macxperience.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Ruby</strong></p>
<p>Impact: Multiple vulnerabilities in Ruby 1.8.6</p>
<p>Description: Multiple vulnerabilities exist in Ruby 1.8.6. This update addresses the issues by updating Ruby to version <strong>1.8.6-p287</strong>. Get details about the changes <a title="here" href="http://www.ruby-lang.org/en/security/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macxperience.com/2009/07/02/whats-1057-php-ruby-folks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forbidden 403 error in Leopard Mac OS 10.5 with Web Sharing On</title>
		<link>http://www.macxperience.com/2008/08/10/forbidden-403-error-leopard-mac-os-105-web-sharing/</link>
		<comments>http://www.macxperience.com/2008/08/10/forbidden-403-error-leopard-mac-os-105-web-sharing/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 15:11:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[403]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Forbidden]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.macuser.pk/?p=11</guid>
		<description><![CDATA[The Upgrade to Leopard was flawless! I took backup of everything on the HD if I had to revert to plan B, which is clean install! Ok! Lets start the game and start playing with the Web powerhouse under this OS. I switched on Web Sharing, typed in: http://localhost/~username And I got the following error: [...]]]></description>
			<content:encoded><![CDATA[<p>The Upgrade to Leopard was flawless! I took backup of everything on the HD if I had to revert to plan B, which is clean install!</p>
<p>Ok! Lets start the game and start playing with the Web powerhouse under this OS. I switched on Web Sharing, typed in:</p>
<blockquote><p>http://localhost/~username</p></blockquote>
<p>And I got the following error:</p>
<blockquote><p>Forbidden: 403 Error<br />
You dont have permissions to access localhost/~username</p></blockquote>
<p><span id="more-11"></span><br />
Googling the error, I was pointed to this very useful resource: <a title="MacOSXhints.com" href="http://www.macosxhints.com/article.php?story=20071027155902154" target="_blank">http://www.macosxhints.com/article.php?story=20071027155902154</a></p>
<p>My solution was the following:</p>
<ol>
<li>Locate httpd.conf file, which should be at <strong>/private/etc/apache2/httpd.conf</strong></li>
<li>Edit it and locate <strong>&lt;Directory /&gt; </strong>using pico. You should be writing like <strong>sudo pico httpd.conf</strong> while being in the apache2 directory<strong><br />
</strong></li>
<li>Change <strong>Deny from all</strong> to <strong>Allow from all </strong>in it</li>
<li><strong>Save</strong> the file</li>
<li>type s<strong>udo apachectl stop</strong> (to stop the apache server)</li>
<li>type <strong>sudo apachectl start</strong> (plz!)</li>
<li>Enjoy <img src='http://www.macxperience.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
<p>While you were editing the httpd.conf file, it wouldn&#8217;t be a bad idea to enable PHP also.</p>
<ol>
<li>Find <strong>LoadModule php5_module</strong> in httpd.conf</li>
<li>Uncomment it i.e.  delete # sign  before the statement</li>
<li>Save the file</li>
<li>Stop and start the web server</li>
<li>Your <strong>phpinfo();</strong> test file should inform that you are running PHP 5.2.4 successfully.</li>
<li>Congrates!</li>
</ol>
<p>Happy coding!</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/91005725-806a-4caa-ba98-ea2f98722162/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=91005725-806a-4caa-ba98-ea2f98722162" alt="Reblog this post [with Zemanta]" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.macxperience.com/2008/08/10/forbidden-403-error-leopard-mac-os-105-web-sharing/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Running MySql on Mac OS X Leopard</title>
		<link>http://www.macxperience.com/2008/08/10/running-mysql-on-mac-os-x/</link>
		<comments>http://www.macxperience.com/2008/08/10/running-mysql-on-mac-os-x/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 14:32:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.macuser.pk/?p=10</guid>
		<description><![CDATA[We have previously activated Apache Web Server and the native PHP packed with Mac OS X. We have managed to host static pages and also dynamic functionality using PHP. Now, its time to get ourselves the Database tier, the ever famous MySql Server. More info on MySql here. Hence, we will be completing the OS [...]]]></description>
			<content:encoded><![CDATA[<p>We have previously activated Apache Web Server and the native PHP packed with Mac OS X. We have managed to host static pages and also dynamic functionality using PHP. Now, its time to get ourselves the Database tier, the ever famous MySql Server. More info on MySql <a title="MySql" href="http://www.mysql.com" target="_blank">here</a>. Hence, we will be completing the OS , Apache, MySql &amp; PHP  stack, commonly called  LAMP for Linux, WAMP for Windows and MAMP for Mac OS X.<br />
<span id="more-10"></span><br />
<strong>Get the tools:</strong></p>
<ul>
<li>We can download the latest version of MySql Community Open Source version for Mac form its official site, <a title="MySql for Mac OS X" href="http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg" target="_blank">here</a>. (approx. 61 MB)</li>
<li>We can also download some GUI tools namely MySql Administrator, Query Browser etc. from <a title="MySql GUI tools" href="http://dev.mysql.com/downloads/gui-tools/5.0.html" target="_blank">here</a>.</li>
<li>Also, We&#8217;ll download the famous web based PHP management tool PHPMyAdmin from <a title="PHPMyAdmin for MySql" href="http://www.phpmyadmin.net/home_page/downloads.php" target="_blank">here</a>.</li>
</ul>
<p><strong>Installation:</strong></p>
<p>Installation is pretty straight forward, click and enjoy, nothing fancy about it. The MySql installation package, version 5.0.45 contains 4 items, namely:</p>
<ul>
<li>MySql-5.0.45-ox10.4-i686.pkg (The main installation file)</li>
<li>MySqlStartupItem.pkg (If you want MySql to start automatically on OS boot, then must install it)</li>
<li>MySql.PrefPane (Copy this file into MacintoshHD &gt; Library &gt; PreferencePane, to control Start/Stop MySql)</li>
<li>Readme.txt (much about everything I have mentioned above and much more, Please Read)</li>
</ul>
<p>The above process applies for both Tiger &amp; Leopard.</p>
<p><strong>Post-Installation: </strong></p>
<p>Here, I&#8217;m going to refer original documentation for consultation. But, I&#8217;ll lay down the basic idea. At the time of installation, the default user created is &#8220;Root&#8221; without any password. We need to assign password to the &#8220;Root&#8221; user. In my installation on Leopard, using the GUI based tools, I was able to do pretty much anything. But on Tiger with PhpMyAdmin I was given password invalid message. Therefore, It is better to follow what MySql recommends.</p>
<ul>
<li>Please read <a title="Installing MySql on Mac OS X" href="http://dev.mysql.com/doc/refman/5.0/en/mac-os-x-installation.html" target="_blank">Installing MySql on Mac OS X</a> for detailed instructions and settings</li>
<li><a title="MySql Post Installation issues" href="http://dev.mysql.com/doc/refman/5.0/en/unix-post-installation.html" target="_blank">Post Installation</a> procedures covers issues regarding applying password to the Root user etc.</li>
<li><a title="Securing the initial MySql Accounts" href="http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html" target="_blank">Securing the initial MySql Accounts</a></li>
<li><a title="Mac OS X specific notes" href="http://dev.mysql.com/doc/refman/5.0/en/mac-os-x.html" target="_blank">Mac OS X specific notes</a></li>
</ul>
<p><strong>Managing MySql through GUI Tools:</strong></p>
<p>I have tried both MySql provided GUI tools and web based ever famous PhpMyAdmin. The GUI tools were quite easy to install and use.</p>
<p>For PhpMyAdmin, just read the Installation instructions under documentation. We need to configure one Config file, which pretty much covers every behavior of the application with MySql.</p>
<p>This completes our LAMP stack. Happy coding from here and give us the next start-up 3.0 <img src='http://www.macxperience.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/a06910ef-369d-4224-b313-9131e70788aa/"><img class="zemanta-pixie-img" style="border: medium none ; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=a06910ef-369d-4224-b313-9131e70788aa" alt="Reblog this post [with Zemanta]" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.macxperience.com/2008/08/10/running-mysql-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serving PHP with Mac OS X</title>
		<link>http://www.macxperience.com/2008/08/10/serving-php-mac-os/</link>
		<comments>http://www.macxperience.com/2008/08/10/serving-php-mac-os/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 14:18:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[10.4.x]]></category>
		<category><![CDATA[10.5.x]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[nano]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pico]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Web server]]></category>

		<guid isPermaLink="false">http://www.macuser.pk/?p=7</guid>
		<description><![CDATA[In my last Post, we fired up the Apache server, respectively v 1.3 in Tiger &#38; v 2.2 in Leopard. By now putting up Hello World! static page is just blink of an eye effort. And we can also start and stop our server via Terminal. Nice! From here we take on to start the [...]]]></description>
			<content:encoded><![CDATA[<p>In my last Post, we fired up the Apache server, respectively v 1.3 in Tiger &amp; v 2.2 in Leopard. By now putting up Hello World! static page is just blink of an eye effort. And we can also start and stop our server via Terminal. Nice! From here we take on to start the native PHP  available in Max OS X. Tiger Supports PHP 4.4.7 and Leopard supports PHP 5.2.4. To start PHP we have to make changes in the Apache configuration file.<br />
<span id="more-7"></span><br />
<strong>Apache Httpd:</strong></p>
<p>In Tiger, you can edit the Httpd.conf a.k.a Apache Configuration file through Terminal. This configuration file controls almost everything about the web server. Be sure to make copy of the file before altering it. The location of the httpd.conf file is /etc/httpd. You can reach the location by entering the following command:</p>
<blockquote><p>cd /etc/httpd/</p></blockquote>
<p>On requesting directory listing &#8220;ls&#8221;, httpd.conf file is listed among other config files.</p>
<p>In <strong>Leopard</strong>, the location of the file is changed to /etc/apache2/httpd.conf, which you can reach by entering:</p>
<blockquote><p>cd /etc/apache2/</p></blockquote>
<p>Now lets make respective changes in the file in each OS and start PHP. Type in Tiger:</p>
<blockquote><p>sudo pico /etc/httpd/httpd.conf</p></blockquote>
<p><strong>Editing Httpd.conf</strong></p>
<p><a href="http://www.macxperience.com/wp-content/uploads/2008/08/terminal1.jpg"><img class="alignnone size-full wp-image-8" title="terminal in Mac OS X" src="http://www.macxperience.com/wp-content/uploads/2008/08/terminal1.jpg" alt="Terminal in Mac OS X Leopard" width="500" height="361" /></a></p>
<p>Pico is our editor through which we will be editing the file to Uncomment 2 enteries. Its text based but very powerful. As you have guessed it, we have to use Root privileges to edit the file. Now we need to locate the following files:</p>
<blockquote><p># LoadModule php4_module     libexec/httpd/libphp4.so<br />
# AddModule mod_php4.c</p></blockquote>
<p>Easy would be to use the Where command in Pico by entering the following key combination &#8220;Control + W&#8221;. Now enter &#8220;Loadmodule php4&#8243; and you&#8217;ll be taken to the exact location. Now again perform Where for &#8220;AddModule&#8221;  and uncomment the function call. Now enter &#8220;Control + X&#8221; for exit, press &#8220;Y&#8221; to save the file and exit from pico.</p>
<p>In Leopard, we just need to uncomment one entry by performing similart task with pico:</p>
<blockquote><p>LoadModule php5_module</p></blockquote>
<p><strong>Testing PHP</strong></p>
<p>To test if our editing effort has been successful, we will invoke the PHP Info function to see the results. Using any text editor, save the file in /user/&lt;username&gt;/sites directory with the name test.php. Enter the following code in the file:</p>
<blockquote><p>&lt;?php phpinfo() ?&gt;</p></blockquote>
<p>Now enter the URL in your favorite browser:</p>
<blockquote><p>http://localhost/~&lt;username&gt;/test.php     (e.g. http://localhost/~munirsalman/test.php)</p></blockquote>
<p>The result should be similar to the following in Tiger.</p>
<p><a href="http://www.macxperience.com/wp-content/uploads/2008/08/php1.jpg"><img class="alignnone size-full wp-image-9" title="php.ini http response" src="http://www.macxperience.com/wp-content/uploads/2008/08/php1.jpg" alt="php.ini http response" width="499" height="432" /></a></p>
<p>A very good resource on PHP on mac, <a title="PHPMac" href="http://www.phpmac.com/" target="_blank">PHPMac</a></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/1a35a281-c284-4d06-a9c6-762f176983ee/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=1a35a281-c284-4d06-a9c6-762f176983ee" alt="Reblog this post [with Zemanta]" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.macxperience.com/2008/08/10/serving-php-mac-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 10/17 queries in 0.095 seconds using disk

Served from: macxperience.com @ 2010-07-29 19:58:56 -->