 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Derick Rethans' Blog: Multiple PHP versions set-up
by Chris Cornutt November 07, 2011 @ 09:14:00
Derick Rethans has a new post today looking at a method for setting up multiple PHP versions on the same machine and switch between them with a little help from some simple bash scripts.
For many of my projects (both hobby and commercial) 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.
Using this script 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.
voice your opinion now!
multiple version setup bash script switch tutorial
VXTIndia Blog: How to setup your new VPS Ubuntu server
by Chris Cornutt August 30, 2011 @ 10:02:47
On the VXTIndia blog there's a recent post that gives you a very complete guide 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.
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.
Steps and software involved in their process include:
- Updating to the latest Ubuntu packages
- Creating other users for the system
- Installing the web environment (including PHP, MySQL, phpmyadmin and Apache2)
- Minin for monitoring
- Configuring IPTables
- Installing Fail2Ban
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).
voice your opinion now!
vps server setup tutorial software configure minin fail2ban
PHPBuilder.com: PHPUnit Fundamentals Setting Up and Tearing Down a Doctrine 2 Database
by Chris Cornutt August 18, 2011 @ 09:03:40
New on PHPBuilder.com today is a tutorial showing you how to use set up and tear down methods in PHPUnit unit tests to work with a Doctrine 2 database, making it simpler to run self-contained testing.
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 Zend_Db component. [...] 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.
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).
voice your opinion now!
phpunit unittest setup tear down doctrine2 database tutorial
David Behler's Blog: Dev-Box Virtual Machines for Developers
by Chris Cornutt March 08, 2011 @ 09:17:14
David Behler has provided a complete guide 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.
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.
He uses an image from thoughtpolice 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 in this image too.
voice your opinion now!
virtualmachine virtual instance thoughtpolice ubuntu linux setup image developer
Volker Dusch's Blog: Setting up Hudson for PHP Projects in 15 minutes
by Chris Cornutt December 22, 2010 @ 10:40:33
Volker Dusch has posted a guide perfect for those looking to get their projects set up with the Hudson continuous integration tool quickly (15 minutes or so).
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.
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).
voice your opinion now!
hudson project setup tutorial simple project phpunit unittest
|
Community Events
Don't see your event here? Let us know!
|