<?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> &#187; PHP</title>
	<atom:link href="http://www.oojahtech.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oojahtech.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Jul 2010 17:16:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>PHP redirect</title>
		<link>http://www.oojahtech.com/2010/01/20/php-redirect/</link>
		<comments>http://www.oojahtech.com/2010/01/20/php-redirect/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 17:04:37 +0000</pubDate>
		<dc:creator>fishbowl</dc:creator>
				<category><![CDATA[Tutorial & How-To's]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://www.oojahtech.com/?p=237</guid>
		<description><![CDATA[If you want to redirect a page with PHP simple create a blank PHP file (example.php) and only include the following line: &#60;?php header( &#8216;Location: http://www.example.com/new_page.html&#8217; ) ; ?&#62; If you want to redirect an entire directory simply name this file index.php NOTE: If you want a permanent redirect because you have moved your website [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to redirect a page with PHP simple create a blank PHP file (example.php) and only include the following line:</p>
<blockquote><p>&lt;?php<br />
header( &#8216;Location: http://www.example.com/new_page.html&#8217; ) ;<br />
?&gt;</p></blockquote>
<p>If you want to redirect an entire directory simply name this file index.php</p>
<p><em><strong>NOTE: </strong>If you want a permanent redirect because you have moved your website and wish to keep your linkbacks from google and other search-engines and sites, follow the directions <a href="http://www.oojahtech.com/2009/08/15/perminant-redirect-with-htaccess/">here</a></em>.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.oojahtech.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.oojahtech.com/2010/01/20/php-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LAMP on Debian Lenny</title>
		<link>http://www.oojahtech.com/2009/08/17/lamp-on-debian-lenny/</link>
		<comments>http://www.oojahtech.com/2009/08/17/lamp-on-debian-lenny/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 21:24:55 +0000</pubDate>
		<dc:creator>fishbowl</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Tutorial & How-To's]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello boys and girls! to day we are going to talk about LAMP, and no I do not mean the light with a shade. In the Linux world LAMP is an acronym for Linux, Apache, MySQL and PHP(sometimes Perl/Python). This is a popular HTTP server configuration where my own blog is kept. This configuration is [...]]]></description>
			<content:encoded><![CDATA[<p>Hello boys and girls! to day we are going to talk about LAMP, and no I do not mean the light with a shade. In the Linux world LAMP is an acronym for Linux, Apache, MySQL and PHP(sometimes Perl/Python). This is a popular HTTP server configuration where my own blog is kept. This configuration is particularly useful for many of the open source content management systems and blogging systems out there, such as Joomla, Drupal, WordPress, b2evolution. But you already knew that didn&#8217;t you? otherwise you wouldn&#8217;t bee looking for instruction on how to configure LAMP for Debian (but in case you didn&#8217;t know, there it is).  </p>
<p>You may wish to configure LAMP because you want to do some PHP and MySQL development, or test out a new CMS you found out about, or you self host your own top level domain website. First make sure you system is updated and upgraded with apt-get. First let us install the Apache server.</p>
<blockquote><p>
sudo apt-get install apache2 apache2-doc</p></blockquote>
<p>Now to see if it worked, open your browser and in the address bar type http://localhost/ and if all went well you should see a simple text &#8220;It works!&#8221; Now it is time to install PHP (which is a server side programing language.)
</p>
<blockquote><p>sudo apt-get install php5 php5-mysql libapache2-mod-php5</p></blockquote>
<p>Create the file /var/www/test.php and insert:</p>
<blockquote><p><img src="http://oojah.fishbowl42.com/media/blogs/tech/phptag.jpg" alt="phpcode" title="PHP Test" /> </p></blockquote>
<p>Don&#8217;t forget to start and stop Apache</p>
<blockquote><p>sudo /etc/init.d/apache2 stop<br />
sudo /etc/init.d/apache2 start</p></blockquote>
<p>Once, completed lead http://localhost/test.php in your browser and you should see a list of information about your server. MySQL is a common open source database server which works in conjunction with PHP on many blog systems and content management systems. to install type in terminal:</p>
<blockquote><p>sudo apt-get install mysql-server mysql-client</p></blockquote>
<p>The install script will ask you to imput a root user password after doing so you will have a MySQL server running on your system. I am not a MySQL pro, and generally only create blank MySQL databases to be filled by the install scripts of my chosen CMS. I do not know much about the command line client for MySQL and install some MySQL GUI&#8217;s. </p>
<blockquote><p>
sudo apt-get install mysql-admin mysql-navigator</p></blockquote>
<p>I find MySQL Administrator in my menus and fire it up, imputing local host for the server and use root user and password I specified during installation of MySQL. Once connected I select User Administration and right click int the lower left hand corner to select New User. I name the new user php and give it a password then in the Schema Privileges I assign all privliges. (This might not be wise, as I said I am not a MySQL pro, and haven&#8217;t taken the time to further investigate this). After clicking apply changes, I close down MySQL Administrator. If you need web access to manage your MySQL install PHPmyAdmin.</p>
<blockquote><p>sudo apt-get install phpmyadmin</p></blockquote>
<p>During installation you will be asked to select what server you are running, choose apache2. now test it out by navigating your browser to http://localhost/phpmyadmin and if everything went correctly you should be looking at a login page. I like to create a symlink in my home directory to /var/www and change the user and group of the directory to allow for that users access.</p>
<blockquote><p>ln -s /var/www/ ~/public_html<br />
sudo chown -Rv myuser:sudo /var/www</p></blockquote>
<p>
Congratulations, you know have a working LAMP configuration on Debian. Now you can start developing your own LAMP powered website, or install one of the many PHP and MySQL driven blogging systems and content management systems. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.oojahtech.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.oojahtech.com/2009/08/17/lamp-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
