 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Lorna Mitchell's Blog: PHP 5.4 Built In Webserver
by Chris Cornutt 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.
voice your opinion now!
webserver builtin configure tutorial server
Chance Garcia's Blog: MAMP PRO, PECL, SSH2, and OSX CLI (AKA acronym madness)
by Chris Cornutt 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.
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
by Chris Cornutt 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).
voice your opinion now!
nginx phpfpm configure install ubuntu tutorial webserver
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
Johannes Schluter's Blog: Improvements for PHP application portability in PHP.next
by Chris Cornutt 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.
voice your opinion now!
version magicquotes shorttags enable zend multibyte configure
Tom Jowitt's Blog: Streamlined PHP Development - Part I
by Chris Cornutt 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.
voice your opinion now!
development tutorial install configure environment xdebug phpunit git pear
|
Community Events
Don't see your event here? Let us know!
|