<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 12 Feb 2012 19:43:55 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Multiple PHP versions set-up]]></title>
      <guid>http://www.phpdeveloper.org/news/17092</guid>
      <link>http://www.phpdeveloper.org/news/17092</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has a new post today looking at a method for <a href="http://derickrethans.nl/multiple-php-version-setup.html">setting up multiple PHP versions</a> on the same machine and switch between them with a little help from some simple bash scripts.
</p>
<blockquote>
For many of my projects (both <a href="http://derickrethans.nl/projects.html">hobby</a> and <a href="http://derickrethans.nl/who.html#derickrethansltd">commercial</a>) I need to support many different PHP configurations. Not only just different PHP versions, but also debug builds, ZTS builds and 32-bit builds. In order to be able to test and build extensions against all those different PHP configurations I have adopted a simple method that I'm sharing with you here.
</blockquote>
<p>
Using <a href="http://derickrethans.nl/files/php-build.sh.txt">this script</a> he can tell his system to pull the latest version of any release from SVN and try to compile it. The trick is putting each of them into a different directory under /usr/local. He uses another small shell function (with a function called "pe()") that sets up the pathing to the right release, complete with its own locations for PEAR/PECL and a php.ini.
</p>]]></description>
      <pubDate>Mon, 07 Nov 2011 09:14:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[VXTIndia Blog: How to setup your new VPS Ubuntu server]]></title>
      <guid>http://www.phpdeveloper.org/news/16790</guid>
      <link>http://www.phpdeveloper.org/news/16790</link>
      <description><![CDATA[<p>
On the VXTIndia blog there's a recent post that gives you a <a href="http://vxtindia.com/blog/how-to-setup-your-new-vps-ubuntu-server/">very complete guide</a> to setting up a VPS server running Ubunut with all of the software you'd need to get a (more than) complete server up and running.
</p>
<blockquote>
Every time you purchase a new Linux VPS, you need to go ahead and set it up for use. Even though we manage to do one server a month, we always seem to forget one thing or the other. So we decided to write down the things that we do. I thought it would be a good thing to share it with everybody as well, so that we could get a few comments about what we're doing wrong, and people who do it the first time can probably pick up a few things from here.
</blockquote>
<p>Steps and software involved in their process include:</p>
<ul>
<li>Updating to the latest Ubuntu packages
<li>Creating other users for the system
<li>Installing the web environment (including PHP, MySQL, phpmyadmin and Apache2)
<li><a href="http://munin-monitoring.org/">Minin</a> for monitoring
<li>Configuring IPTables
<li>Installing <a href="http://www.fail2ban.org/wiki/index.php/Main_Page">Fail2Ban</a>
</ul>
<p>
All of this comes complete with the additions you'll need to make to configuration files and the commands to get everything installed (via aptitude).
</p>]]></description>
      <pubDate>Tue, 30 Aug 2011 10:02:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: PHPUnit Fundamentals: Setting Up and Tearing Down a Doctrine 2 Database]]></title>
      <guid>http://www.phpdeveloper.org/news/16736</guid>
      <link>http://www.phpdeveloper.org/news/16736</link>
      <description><![CDATA[<p>
New on PHPBuilder.com today is a tutorial showing you how to use set up and tear down methods in <a href="http://phpunit.de">PHPUnit</a> unit tests to <a href="http://www.phpbuilder.com/columns/phpunit-doctrine/Jason_Gilmore08172011.php3">work with a Doctrine 2 database</a>, making it simpler to run self-contained testing.
</p>
<blockquote>
The recently released Doctrine 2 presents significant advantages over its 1.X predecessor, advantages which are even more pronounced when compared to the Zend Framework's default database solution, namely the <a href="http://framework.zend.com/manual/en/zend.db.html">Zend_Db component</a>. [...] When running unit tests which vet various aspects of your database you'll want to setup (create) and teardown (destroy) the test database, ensuring that a pristine and repeatable version of the database is available to each test. 
</blockquote>
<p>
He includes an example of using the SchemaTool class (of Doctrine) to drop and recreate the schema from scratch with the end result of a clean working copy, ready to test from. He also includes an example of how to initialize the database with some default information using the PHPUnit database connection and a default set of fixtures (defined in YAML).
</p>]]></description>
      <pubDate>Thu, 18 Aug 2011 09:03:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Setting up PHP & MySQL on OS X 10.7 Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/16628</guid>
      <link>http://www.phpdeveloper.org/news/16628</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has posted his own guide to getting <a href="http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/">PHP 5.3 set up on OS X 10.7 Lion</a>, the just-released update for Apple's operating system. It comes with a bundled set of PHP-related tools but you might want to set them up your own way. This is where the guide comes in.
</p>
<blockquote>
With OS X 10.7, Apple continues to ship PHP 5.3 with PEAR, GD and PDO_MYSQL out of the box. This is how to set it up from a clean install of 10.7.
</blockquote>
<p>
He goes through each of the pieces of software and talks about where to download the latest from and what configuration steps are needed:
</p>
<ul>
<li>MySQL
<li>Apache
<li>the php.ini
<li>Xdebug
<li>PEAR
<li>PHPUnit (and friends)
<li>PECL OAuth
<li>mcrypt
</ul>]]></description>
      <pubDate>Mon, 25 Jul 2011 12:12:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Martin Sikora's Blog: Symfony 1.4 on shared webhosting]]></title>
      <guid>http://www.phpdeveloper.org/news/16521</guid>
      <link>http://www.phpdeveloper.org/news/16521</link>
      <description><![CDATA[<p>
On his blog <i>Martin Sikora</i> shares a solution that many a Symfony developer out there might find handy for <a href="http://www.martinsikora.com/symfony-1-4-on-shared-webhosting">running their application in a shared hosting environment</a>:
</p>
<blockquote>
Some time ago (actually when I was making this blog) I posted on <a href="http://www.stackoverflow.com/">stackoveflow.com</a> a question on <a href="http://stackoverflow.com/questions/2809778/symfony-on-virtual-host-document-root-problem">how to configure Symfony to run on shared webservers</a> where you can't change your website's document root. I solved it but forgot that I was asking and left it without any answer.
</blockquote>
<p>
The main problem is that the DOCUMENT_ROOT for the hosting service can't be changed by the users of the shared host. To solve this he modified his routing rules (sfPatternRouting class) and changed his .htaccess file to rewrite things over from just "/page" to "/web/page" instead. A simple solution, but it might be evasive if you've never configured it before.
</p>]]></description>
      <pubDate>Mon, 27 Jun 2011 11:07:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[David Behler's Blog: Dev-Box: Virtual Machines for Developers]]></title>
      <guid>http://www.phpdeveloper.org/news/16011</guid>
      <link>http://www.phpdeveloper.org/news/16011</link>
      <description><![CDATA[<p>
<i>David Behler</i> has provided <a href="http://www.davidbehler.de/2011/03/virtual-machine-for-developers/">a complete guide</a> to helping you get a development virtual machine instance up and running quickly complete with Apache, PHP, MySQL and Samba shares to access your files.
</p>
<blockquote>
I know that no server is like the other and you might still run into some problems due to different library versions and so on, but you gotta admit that two Linux servers have way more in common than a Linux and a Windows server. So in this post I'll tell you how to setup your own VM with all the libs you need. Even if you haven't worked with Linux before, you should be able to follow this tutorial/example easily.
</blockquote>
<p>
He uses an image <a href="http://www.thoughtpolice.co.uk/vmware/#ubuntu10.10">from thoughtpolice</a> as the base and walks you through every step of the way. He shows you how to log in as root, update all packages and start installing the software you'll need (all via apt-get). There's even a sample Samba configuration file you can use to get started. The end result of all of this setup can be found <a href="http://www.davidbehler.de/wp-content/plugins/download-monitor/download.php?id=1">in this image</a> too.
</p>]]></description>
      <pubDate>Tue, 08 Mar 2011 09:17:14 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Mike Willbanks's Blog: Building and Maintaining a PEAR Server with Pirum]]></title>
      <guid>http://www.phpdeveloper.org/news/15885</guid>
      <link>http://www.phpdeveloper.org/news/15885</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Mike Willbanks</i> shows you how to <a href="http://blog.digitalstruct.com/2011/02/09/building-and-maintaining-a-pear-server-with-pirum/">build and maintain a PEAR server</a> with <a href="http://www.pirum-project.org/">Phirum</a>.
</p>
<blockquote>
<a href="http://www.pirum-project.org/">Pirum</a> is a simple PEAR channel server manager that was built by <a href="http://fabien.potencier.org/">Fabien Potencier</a>. The Pirum project allows you to easily setup a PEAR channel and publish your own packages quickly. This quick blog post / article will get you going with it in no time.
</blockquote>
<p>
He shows you how to install Phirum (ironicly from a PEAR channel) and how to create the XML to define the PEAR service. Running Phirum will generate a few other files based off the XML configuration and adding in a package is as simple as a "phirum add" call. He also mentions adding support for cloning packages with the help of <a href="https://github.com/mwillbanks/Pirum">his updated fork</a> on github.
</p>]]></description>
      <pubDate>Thu, 10 Feb 2011 10:57:12 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tony Lukasavage's Blog: PHP Debugging on IntelliJ IDEA 10 with Xdebug]]></title>
      <guid>http://www.phpdeveloper.org/news/15696</guid>
      <link>http://www.phpdeveloper.org/news/15696</link>
      <description><![CDATA[<p>
<i>Tony Lukasavage</i> has a new post to his blog about <a href="http://savagelook.com/blog/portfolio/php-debugging-on-intellij-idea-10-with-xdebug">debugging your PHP applications with IntelliJ and XDebug</a> on a WAMP install.
</p>
<blockquote>
If you are a serious PHP developer and have not given debugging a fair chance, or a chance at all, you are killing yourself. So let's do this thing from the ground up. WAMP, XDebug, IntelliJ, and magic. Follow these steps (for Windows) to reach my recent state of elightenment and PHP debugging bliss.
</blockquote>
<p>
It's a sixteen step process, but don't let that scare you off - it's made up of lots of little steps like "make a phpinfo() page" and "download IntelliJ IDEA". The rest is actually setting up a new PHP project, dropping in a breakpoint and mapping the scripts to run on your local machine's WAMP install.
</p>]]></description>
      <pubDate>Thu, 06 Jan 2011 14:24:30 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Volker Dusch's Blog: Setting up Hudson for PHP Projects in 15 minutes]]></title>
      <guid>http://www.phpdeveloper.org/news/15617</guid>
      <link>http://www.phpdeveloper.org/news/15617</link>
      <description><![CDATA[<p>
<i>Volker Dusch</i> has <a href="http://edorian.posterous.com/setting-up-hudson-for-php-projects">posted a guide</a> perfect for those looking to get their projects set up with the <a href="http://hudson-ci.org/">Hudson</a> continuous integration tool quickly (15 minutes or so).
</p>
<blockquote>
While [running tests on commit] is great it can be pretty tedious to run the whole test suite every time before a commit but not doing it leads to a broken test suite that other people have to repair or go around asking who broke it.. make up your own story. This is where a continuous integration (ci) server jumps in ! Every time you commit, or push if you're using git, to a repository it detects the change, gets the new version of the source, runs all your tests (and more if you tell it to) and notifies you if there was a Problem.
</blockquote>
<p>
He chose Hudson because of its simple setup, going from download to install and configured in around five minutes. It includes a plugin system with one of the "big ones" being the xUnit integration. Included in the post is every command you'll need to get it up and running on a linux (Ubintu) system including all plugins needed and the setup of a simple project's XML configuration file (with the code to run it on).
</p>]]></description>
      <pubDate>Wed, 22 Dec 2010 10:40:33 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[AjaxRay.com: Setting up Database testing with Kohana UnitTest module]]></title>
      <guid>http://www.phpdeveloper.org/news/15268</guid>
      <link>http://www.phpdeveloper.org/news/15268</link>
      <description><![CDATA[<p>
On the AjaxRay.com blog there's <a href="http://www.ajaxray.com/blog/2010/10/11/setting-up-database-testing-with-kohana-unittest-module/">a new post</a> showing you how to set up unit testing for your <a href="http://kohanaframework.org/">Kohana v3</a>-based application through PHPUnit.
</p>
<blockquote>
Kohana <a href="http://github.com/kohana/unittest">Unittest module</a> has made testing in <a href="http://kohanaframework.org/">Kohana v3</a> easy and fun. Lysender wrote a <a href="http://blog.lysender.com/2010/08/kohana-unit-testing-finally/">cool, straight forward post</a> about how to set it up and running. I'll just talk here about how I have set up database testing with Kohana Unittest for my personal use. Not saying "How to set up". Because it's obviously not the best way to do this.
</blockquote>
<p>
They walk you through the creation of the testing process - making "setup" and "tear down" SQL files, creating a "runSchema" method in a test case class and the code needed to run those setup/tear down files to refresh the database so there's no side effects of multiple tests using the same database.
</p>]]></description>
      <pubDate>Tue, 12 Oct 2010 13:29:38 -0500</pubDate>
    </item>
  </channel>
</rss>

