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



Joshua Thijssen's Blog:
php 5.4 + htrouter Your personal Apache 2.2 compatible server
December 23, 2011 @ 08:27:10

Joshua Thijssen has a new post to his blog today about a feature of the upcoming PHP 5.4 release, the built-in web server, and a handy way to reproduce .htaccess functionality with the help of a simple PHP script - htrouter.

The problem with the new PHP 5.4 internal web-server is that it isn't Apache. Thus it does not know anything about .htaccess. Even when you have defined your .htaccess to do authentication, the internal PHP web-server will ignore it, while in production, the authentication will be needed (if you will be running Apache, of course). Also, you need to reroute everything manually through your app_dev.php, so your URL's don't really match the way they will be on your production.

He introduces the PHP web server quickly, just showing a sample command line call to start it up and to point it at a certain PHP file as a "boostrap". With the help of his htrouter script, though, you can use "modules" similar to those in Apache. He already has the HTTP auth stuff working and more is to come.

0 comments voice your opinion now!
htrouter apache tool webserver feature


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


DZone.com:
PHP 5.4 Will Have a Built-in Web Server
October 24, 2011 @ 09:24:01

As is mentioned in this new post to DZone.com, one of the features of the upcoming PHP 5.4 release, including things like traits and array dereferencing support, will also have an interesting new feature - a built-in simple web server.

Yet another new feature to look forward to in PHP 5.4.0 - the CLI SAPI will now provide a built-in web server which is geared toward developmental purposes. It shouldn't be used in production right now.

The PHP manual has been updated with the latest on this upcoming feature:

URI requests are served from the current working directory where PHP was started, unless the -t option is used to specify an explicit document root. [...] If a PHP file is given on the command line when the web server is started it is treated as a "router" script for the web server. The script is run at the start of each HTTP request. If this script returns FALSE, then the requested resource is returned as-is. Otherwise the script's output is returned to the browser.

The PHP 5.4.x series is still in beta as of the time of this post - you can download the beta1 on the downloads section of the PHP site (or the Windows binaries).

0 comments voice your opinion now!
webserver builtin server beta1 download


HowToForge.com:
Installing Cherokee With PHP5 And MySQL Support On Ubuntu 11.04
August 17, 2011 @ 13:46:09

On the HowToForge.com site there's a new tutorial stepping you through the process of getting Cherokee+PHP+MySQL working on an Ubuntu linux installation.

Cherokee is a very fast, flexible and easy to configure Web Server. It supports the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL encrypted connections, virtual hosts, authentication, on the fly encoding, load balancing, Apache compatible log files, and much more. This tutorial shows how you can install Cherokee on an Ubuntu 11.04 server with PHP5 support (through FastCGI) and MySQL support.

The tutorial makes use of the package manager (apt-get) to install the needed software, so don't look for complete compiling information from this process. They include a bit of the configuration of the Cherokee installation and how you enable PHP support via its interface. Screenshots of the Cherokee interface are included to help make it easier to follow along.

0 comments voice your opinion now!
tutorial install cherokee webserver php5 mysql ubuntu linux


PHPClasses.org:
Lately in PHP Podcast Episode 10 - the Built-in Web Server, PHP 5.3.6 & PHP.js
March 30, 2011 @ 08:20:02

PHPClasses.org have posted their latest episode of the "Lately in PHP" podcast today, a discussion between Manuel Lemos and Ernani Joppert about the built-in web server that's planned for inclusion in future releases of the PHP language.

PHP is going to come with a built-in Web server, so you will no longer need Apache or any other Web server software to run PHP applications. This is the main topic discussed by Manuel Lemos and Ernani Joppert in the episode 10 of the Lately in PHP podcast.

They also talk about some security fixes and the PHP.js project. As usual, you can listen to this latest episode either through the in-page player, by downloading the mp3 or by subscribing to their feed.

0 comments voice your opinion now!
latelyinphp podcast webserver builtin phpjs


Alexey Zakhlestin's Blog:
on PHP's webserver
March 03, 2011 @ 13:19:04

Alexey Zakhlestin has a new post today with some of his own thoughts on the suggestion for a built-in web server (RFC) that's been floating around lately - a tool that would act as a simple server right out of the box without much in the way of configuration.

There are a lot of talks today about "Built-in web server" [for PHP] RFC by Moriyoshi Koizumi. There is a nice discussion on Hacker News (and 2 threads on reddit: here and here). So, here's couple of cents from me.

Alexey agrees with the suggestion and notes it'd be a welcome addition to the PHP toolset. He also reminds developers that it wouldn't (and shouldn't) be used in production.

0 comments voice your opinion now!
opinion webserver internal rfc suggestion


Leniel Macaferi's Blog:
Installing PHP on Mac OS X Snow Leopard 10.6.5
December 31, 2010 @ 10:57:25

On his blog today Leniel Macaferi has a new post showing how to install PHP on OSX 10.6.5, really enabling the PHP that's already installed.

I hit a pretty good tutorial to enable PHP on Mac at About.com written by Angela Bradley that gets to the point: How to Install PHP on a Mac. Along the way I had to solve only one minor thing described in the caveat section at the end of this post. You see that the title of this post has the word installing (well I thought I had to install it '" that was my first reaction), but in fact it could be the word enabling because PHP is an integral part of Mac OS X Snow Leopard and we just need to enable it as you'll see soon.

He talks about enabling the web server, enabling PHP and testing the installation with a phpinfo. There's screenshots included so you can be sure you're in the right places.

0 comments voice your opinion now!
install osx snowleopard enable webserver


Josh Holmes' Blog:
ASP.NET and PHP On IIS Together
November 12, 2010 @ 11:34:57

Happen to need both ASP.NET and PHP running on the same IIS server? Josh Holmes (and Mark Brown) have you covered with this new presentation posted to Josh's blog.

I got a question the other day about running both ASP.NET and PHP on the same server and whether or not it works. The short answer I gave is "Yes". The longer answer, I'm going to give here. In point of fact, both ASP.NET and PHP work really well on the instance of IIS. They can't share session state but otherwise it's a very peaceful existence.

The slides from the presentation are included in the post. There's also a full tutorial on how to get things set up correctly so that PHP and ASP.NET can play nicely on the same machine.

0 comments voice your opinion now!
iis aspnet webserver tutorial presentation


TechTatva.com:
[How To] Setup Cherokee with PHP5 FPM
September 02, 2010 @ 12:35:26

On the TechTatva.com site today there's a new tutorial posted about getting the Cherokee web server set up and running PHP5 FPM. It's a few simple steps to install and a few clicks around the GUI to get things configured.

In this "how to" we will see how to setup cherokee on Ubuntu with PHP5-FPM (FastCGI Process Manager). Although the cherokee CookBook claims that "If PHP-fpm binaries are found, those will be prioritized over the regular binaries." it turns out that the latest stable version of cherokee in Launchpad gives errors while enabling

A few calls to "apt-get" install some packages (Cherokee and php5-fpm) and changes to the Cherokee configuration - handled through its web-based interface - are all that's needed to add a new behavior rule to the default vServer to link to the PHP5-FPM install (as FastCGI).

0 comments voice your opinion now!
chreokee webserver php5fpm tutorial ubuntu aptget



Community Events





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


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

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