News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
feed this:

Lorna Mitchell's Blog:
PHP 5.4 Built In Webserver
January 30, 2012 @ 11:35:09

Lorna Mitchell has posted a quick tutorial about a feature of the upcoming PHP 5.4 release, the built-in web server, and some tips on doing things like routing requests and changing the hostname.

One of the big features arriving with PHP 5.4 is the addition of a built-in basic webserver for use in development environments. Quite a few of the other scripting languages have something like this so I'm very pleased to see it in PHP. Using a server like this makes it easy to quickly try out some scripts without needing to configure apache or really do anything much! I had to look up a few things to get started, so I thought I'd write them down for posterity.

She includes instructions on how to get the server up and running from the command line, updating the location of the document root with a command line option and using a simple "routing.php" script to act as a front controller. Changing the hostname is as simple as changing "localhost" to something else when starting the server.

0 comments voice your opinion now!
webserver builtin configure tutorial server



Michaelangelo van Dam' Blog:
Configuring Zend Framework apps for Windows Azure
December 19, 2011 @ 08:50:51

Michelangelo van Dam is back with the second part of his series looking at running PHP applications on Azure (the first part Zend Framework.

Building web applications is nothing new anymore, as we've been doing it since the early days of the internet, but we've always done this on a single system. Even when Zend Framework came round, we kept doing the same thing and build apps for a single environment. But as I've discussed already in my previous article, developing for the cloud requires another approach. [...] With Zend Framework developing applications running on these separate compontents becomes really easy. It's like having your cloud toolbox right in your pocket.

He walks you through the settings needed to interact with a MySQL database backend, setting up sessions to write to the database, caching information to a memcache server and storing files on a remote destination (in this case cloud storage).

0 comments voice your opinion now!
windows azure zendframework application configure tutorial


Chance Garcia's Blog:
MAMP PRO, PECL, SSH2, and OSX CLI (AKA acronym madness)
November 09, 2011 @ 11:37:34

Chance Garcia has a recent post to his blog showing how he fixed an issue with his MAMP install involving development of a SSH wrapper he developed and some testing out of PHPStorm and PHPUnit.

One thing I can say is that, even though I use a convenient app like MAMP PRO to set up my local development environment, I'm glad my sysadmin-fu is up to snuff enough to fly without the conveniences because after this ordeal, I feel like I might as well have made my MAMP stack from scratch with all the hoops I jumped tonight.

He shares a few of the things he discovered along the way like: the location of MAMP's "pecl" command, an error caused by a bad pear.conf file, doing custom compiles of PHP and libssh as a fallback and getting the extension to work in the CLI PHP version too.

0 comments voice your opinion now!
osx cli mamp tutorial libssh pecl install configure compile


Justin Carmony's Blog:
Setting Up Nginx & PHP-FPM on Ubuntu 10.04
October 25, 2011 @ 13:39:24

Justin Carmony has a new tutorial posted to his blog today about setting up Nginx and PHP-FPM on Ubuntu in a few easy steps (thanks to some package management).

This is another wonderful setup that I've found myself using rather than the traditional Apache & mod_php setup. [...] Ngnix, unlike Apache, doesn't actually load PHP. Instead, it hands it off as a proxy to a "php handler" which acts like an Application Server. So nginx by itself won't serve PHP files, but just static files.

He briefly introduces Nginx and PHP-FPM for those not familiar and points out that this combination is very fast, even without much configuration. The packages are installed with the aptitude installer and minimal changes are made to the php-fm and nginx configuration files (mostly to set up whatever your domain/virtual host is).

0 comments voice your opinion now!
nginx phpfpm configure install ubuntu tutorial webserver


Abou Kone's Blog:
Set up JSON action output in CakePHP 1.3
October 07, 2011 @ 08:45:00

Abou Kone has a recent post to his blog showing the CakePHP users out there how to set up JSON output for your actions in a few simple steps.

Working on setting up the Rest Plugin for CakePHP helped me realize that i wanted to set up JSON output for some of my actions. This way, if you request for example "www.yourapp.com/app/post/view/1.json" in the url, you will be returned the JSON post data. This excellent tutorial here will help you achieve it.

Changes include updates to configuration for routing, using the RequestHandler component and setting your actions to output the data correctly when the ".json" is detected on the request.

0 comments voice your opinion now!
json output cakephp tutorial configure framework


VXTIndia Blog:
How to setup your new VPS Ubuntu server
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).

0 comments voice your opinion now!
vps server setup tutorial software configure minin fail2ban


Tom Jowitt's Blog:
Streamlined PHP Development - Part III
August 10, 2011 @ 11:09:04

Tom Jowitt has posted his third part in his "streamlined PHP development" series today focusing on working with databases and setting it up with your automated deployment system (parts one and two).

In the first two parts of this series we covered setting up the server and an introduction to Phing. This post will cover managing our database code with dbdeploy and Phing.

He points out that there's no "silver bullet" when it comes to automated database management but he's found dbdeploy as a good tool for his needs. He includes the configuration changes to get the database login information into Phing and a few new targets/tasks to add to the Phing configuration for initializing the database and applying patches.

0 comments voice your opinion now!
development tutorial install configure environment phing dbdeploy initialize update


Johannes Schluter's Blog:
Improvements for PHP application portability in PHP.next
July 26, 2011 @ 08:40:46

In a new post today Johannes Schluter talks about the upcoming version of PHP and three of the things it features: no more short tags, no more magic quotes and the dropping of the enable-zend-multibyte compile option.

I was writing about PHP.next before, many things improved there meanwhile. Most notably we have a committed version number: The next PHP release will be called PHP 5.4. The topic I want to talk about today is "Improved application portability" which covers multiple small changes which aim at making it simpler for developers to write applications working on any PHP setup.

The first two will be immediately familiar to any PHP developer, but the third might be a little more elusive. This option was used to compile in multi-byte encodings to use for data in an application. Unfortunately a good implementation (that didn't use mbstring) couldn't be found, so they're removing the feature.

1 comment voice your opinion now!
version magicquotes shorttags enable zend multibyte configure


Christian Weiske's Blog:
Installing PHP extensions for phpfarm
July 25, 2011 @ 08:15:15

Christian Weiske has a new post to his blog today on how to get PHP extensions installed for phpfarm, the tool that lets you switch between multiple PHP versions on the same machine.

When using several PHP installations with phpfarm, installing PHP extensions is not always easy - mostly because Pyrus is very strict about package files - and many of the packages in PECL unfortunately have invalid non-validating package.xmls.

The installation follows most of the normal process with one exception - you use the phpfarm phpize and point the configure to use the phpfarm ini configuration file then enable it as usual.

0 comments voice your opinion now!
extension phpfarm multiple pear pyrus phpize configure


Tom Jowitt's Blog:
Streamlined PHP Development - Part I
July 18, 2011 @ 12:54:19

As the first part of a series, Tom Jowitt has posted this introduction to setting up a brand new development environment with some of the basic tools any PHP developer should need.

I dunno about anyone else but my development environment is usually in some form of barely-controlled chaos. It's one command away from collapse with folders full of test software, symlinks that lead to long-forgotten libraries and ancient VCS repos that only a mother could love, all held together with sticky-tape shell scripts. [...] This series of posts will look at the tools available to PHP developers who want to be liberated from the mundane and the frustrating tasks that plague our lives.

He doesn't describe the installation of the basic platform - Apache, PHP and MySQL on Ubuntu - but jumps right into the details of the settings. He shows how to:

  • configure the VirtualHosts in Apache,
  • installing and updating PEAR,
  • Install/configure XDebug,
  • Set up PHPUnit,
  • and install git for version control

In the next post he'll show how to set up Phing for building/testing out the code.

1 comment voice your opinion now!
development tutorial install configure environment xdebug phpunit git pear



Community Events





Don't see your event here?
Let us know!


series conference api interview component community development language podcast custom opinion framework test database application introduction unittest symfony2 release phpunit

All content copyright, 2012 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework