Archive for June 11th, 2006

HowToForge.com: How To Set Up suPHP With PHP4 And PHP5

On HowToForge.com today, there’s a new tutorial on getting suPHP to work with both PHP4 and PHP5 installations.


This tutorial shows how to install and use suPHP with PHP4 and PHP5. suPHP is a tool for executing PHP scripts with the permissions of their owners instead of the Apache user. With the help of suPHP you can also have PHP4 and PHP5 installed at the same time which I will describe at the end of this article.

The tutorial steps you through the process - installation of apache (with apt-get), disabling the built-in PHP, installing apxs, installation of PHP4-CGI, and, finally suPHP. From there, it’s all just configuration of the different packages up to a finished, working install.

(0 comments)

Continue Reading · Add comment

Robert Ames’ Blog: Upgrading from PHP4 to PHP5

For those out there wanting to make the move from PHP4 up to PHP5, Robert Ames has posted a few things to watch out for.


So, I’ve spent some time upgrading the darwingames.com codebase to be PHP5 compatible. For those considering the transition (and language designers who are considering an incompatible source version upgrade), I offer the following observations.

He breaks it down into to categories - the good and the bad. Some of the items on either list include:

  • static methods (good)
  • E_STRICT (bad)
  • random passing by reference gone (good)
  • replacing is_a() with instanceof (bad)

He also offers some of his personal suggestions for guidelines for future language updates.

(0 comments)

Continue Reading · Add comment

Alexey Zakhlestin’s Blog: FastCGI in PHP - The way it could be.

Alexey Zakhlestin shares with us in this new blog post, how the fast-cgi PHP developers think they’re using isn’t really a true FastCGI.


Most PHP programmers believe, that PHP has support for FastCGI. They refer to fastcgi-sapi, which is bundled with php since long ago, and which was recently reimplemented for PHP 5.1.3/4. This SAPI really does exist and actually working quite good. ButÂ… it is not a real fast-cgi. It is just an imitation of mod_php which is linked against fastcgi api, instead of apache api. So, it’s time for you to ask: if it exists and works, then what am I talking here about? Let’s start from the basics…

He talks about a history of how things go to where they are, starting back with regular CGI scripts, moving up through using server-based APIs, and finally to FastcGI, a method for overcoming a lot of the limitations of its predecessors.

With that look back, he turns his attention around and looks to the current situation within PHP. He talks about the sudden appearance fastcgi made in PHP’s SAPIs, but that the implementation wasn’t true. He suggests that the reasoning behind this “fake” implementation was for the sake of speed. He also notes, however, it’s his opinion that true FastCGI support in PHP will be a requirement for future large-scale applications.

(0 comments)

Continue Reading · Add comment