 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Ibuildings Blog: Off-The-Shelf Server Setup
by Chris Cornutt May 30, 2008 @ 08:43:28
On the Ibuildings blog, Ian Barber has a reminder to PHP developers out there used to their servers "just working" because of the popularity of LAMP. He recommends digging a little deeper to the "behind the scenes" of how the server is configured.
PHP programmers generally know what a good systems architecture should look like, but it is often a reality of development that they will have little input on the system itself until the last minute. In fact, it's far from uncommon for a developer to be faced with an off-the-shelf dedicated LAMP server, and left up to their own devices.
He recommends getting to know things like the package manager for your distribution (apt, yum, yast, etc), stripping down the modules your installation is using, check that all of the packages in use need to be enabled and ensure that the network connection is set up correctly and is what you need for the site.
voice your opinion now!
oftheshelf default installation configuration behindthescenes lamp server
Ian Selby's Blog: Weird PHP Seg Faults & Custom Session Handlers
by Chris Cornutt September 18, 2007 @ 10:27:00
In recent work, Ian Selby came across something odd - a setup where PHP was segfaulting without any real indication of where the error might be:
Starting to get a little frustrated, I took a peek at my error logs (/var/log/httpd/error_log for the unitiated), and discovered a wonderful message [about the segfault]. As any person scratching their head would do, I hit up google.. to no real avail. Just a bunch of php bug reports. So, what happened, and how did I fix it?
After searching through the code and narrowing down where it could be, the culprit looked like a custom session handler he was using. It uses MySQL to store the sesion information and, unfortunately, when Ian had compiled the server he didn't let PHP know about his unique setup.
His default installation was trying to use the default MySQL information (including the socket) to reach the database. Obviously failing, the server simply gave up and segfaulted. Thankfully, all it takes it a recompile with a few extra parameters and you're back in business.
voice your opinion now!
segfault custom session handler mysql default configure segfault custom session handler mysql default configure
Nexen.net: Base configuration for PHP 5.2.3
by Chris Cornutt August 15, 2007 @ 13:48:15
Nexen.net has a new look today at something most people take for granted - some of the default extensions loaded (and how often they are) in a PHP installation.
Since PHP 5.2.3 has been published, over 9700 tests were sent to the Quality Assurance Team. In those tests reports, we can find the list of failed tests, and an anonymous PHPinfo(), that helps the PHP team to understand the origin of the errors. With such a number of phpinfo(), it is tempting to get some stats about compilation choices.
Damien has graphed out a few different data sets - the extensions included in most default installations, other popular extensions that may or may not be compiled in, the list of rare extensions (a long list) and how often they show up and, finally, the graphing of all extensions included in any PHP install anywhere. Links to more information about these extensions can be found immediately following the graph.
voice your opinion now!
base configuration php5 extension graph popular default base configuration php5 extension graph popular default
DevShed: PHP Functions
by Chris Cornutt August 01, 2006 @ 09:52:57
DevShed shares some basic PHP knowledge today with this new tutorial, an introduction to functions in PHP. This time, they're specifically focusing on custom function creation.
If you're looking for a way to save time when you program, look no further. Creating functions lets you reuse code that you've used before without having to rewrite the whole thing.
This will save you time and make programming easier, especially as websites become more complex. Another advantage of a function is that it executes wherever and whenever you call it, in the same way that print() displays text.
They start off basic, defining what a "user defined function" is before moving on to arguments in their use. They include the method to define default values and how to return values once the function is through.
voice your opinion now!
tutorial introduction function variable default return tutorial introduction function variable default return
Bård Farstad's Blog: Compiling Apache and PHP on Mac OS X
by Chris Cornutt April 14, 2006 @ 18:15:32
In this new blog entry, Bård Farstad shares what he, a recent "switcher" to the OS X operating system, had to do to get Apache and PHP completely installed on his system.
Since my recent move to the Mac running OS X I have learnt some new stuff about PHP and Apache the hard way. OS X is shipped with Apache and PHP by default and if you compile Apache and PHP like you normally do under Linux you quickly get surprised.
HE notes that the default install of Aapche/PHP on an OS X system is a bit different than on others - the entire isntallation isn't in the directory defined by the "prefix" parameter. He worked around this kind of setup, and includes the configure lines in the post as an example.
voice your opinion now!
php apache osx macintosh mac compile default php apache osx macintosh mac compile default
|
Community Events
Don't see your event here? Let us know!
|