 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Joshua Thijssen's Blog: php 5.4 + htrouter Your personal Apache 2.2 compatible server
by Chris Cornutt 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.
voice your opinion now!
htrouter apache tool webserver feature
NetTuts.com: Zend Framework from Scratch
by Chris Cornutt November 03, 2011 @ 08:50:39
On NetTuts.com today there's a new tutorial helping you get started with Zend Framework "from scratch". They outline the full process - from download to the creation of a first application.
Ready to take your PHP skills to the next level? In this new "From Scratch" series, we'll focus exclusively on Zend Framework, a full-stack PHP framework created by Zend Technologies. First in our tutorial series, is "Getting Started with Zend Framework."
The tutorial (executed in a Windows environment) is broken up into seven parts:
- Download Zend Framework
- Set up your Zend Framework Environment
- Create your First Zend Framework Project
- Learn about Zend Framework's MVC Structure
- Pass Data From a Controller to its View
- Create a Layout in Zend Framework
- Create New Controllers and Actions
They use the Windows version of Apache to host the site (installation instructions not included). If you'd like to get the source for this tutorial series as it evolves, you can find it on github.
voice your opinion now!
zendframework tutorial beginner introduction project apache
ServerGrove Blog: How to setup multiple PHP versions on Apache
by Chris Cornutt August 23, 2011 @ 11:07:38
On the ServerGrove blog today there's a new post from Ishmael about setting up multiple versions of PHP on one Apache instance with the help of FastCGI.
There are several reasons you might need to run multiple versions of PHP on the same server. Maybe you have a PHP 5.2 application running on your server and you need to start working on another application based on a new framework like Symfony2 or Lithium? Perhaps you haver a client with a legacy site that runs PHP 5.2, or maybe you simply want to test some of the new functionality? This post is going to explain how to setup a server to run multiple versions of PHP.
Normally, Apache can only be compiled with one version of PHP, but FastCGI gets around that by letting you define it in a configuration file instead. They also include support for defining the user the process runs as (suexec) that helps to make permissions issues lesser. Included are all of the command-line calls and config settings you'll need to make to get things set up.
voice your opinion now!
multiple version tutorial apache fastcgi suexec
Shay Ben Moshe's Blog: PDO Persistent Connection Analysis
by Chris Cornutt June 28, 2011 @ 08:11:15
Shay Ben Moshe has a new post to his blog today looking at some of the benefits that using the persistent connections offered in PDO can have on your application.
PDO is an abstraction layer for database connections in PHP, and it became increasingly popular in the past few years. PDO gives us the option to use a persistent connection. If we don't use this option, a new connection is created for each request. If we do use this option, the connection is not closed at the end of the script, and it is then re-used by other script requests.
He shares the setup for his testing (hardware and MySQL configuration) and some of the results from his tests using the Apache ab tool for making web requests against an application. You'll need to download the archived file to see the results, though. It also includes the files he used to test with, comparing regular connections to the persistent ones.
voice your opinion now!
pdo persistent connection benchmark apache ab request
Elvin Haci's Blog: Using Python and PHP together
by Chris Cornutt June 09, 2011 @ 10:58:15
Elvin Haci has a recent post to his blog showing how he set up PHP and Python to work on the same machine, just on different ports of the same Apache instance. His example is based on Ubuntu, but the principles can be used just about anywhere.
Today i decided to install Python in Ubuntu OS and to use PHP and Python both together. If i hadn't installed php and wanted to have python as only localhost in my OS, so it was easy, there are plenty of examples which show how to do it(for example). But if you have already installed php and you want to have python, then let's go on. Of course we need two different ports if we want to do so. And i could easily install and test it. So i am sharing how i did it.
He includes all of the commands and configuration changes you'll need to get Python and Apache all set up (he assumes you already have PHP installed). He also includes a full listing of his Apache config file so you can get a feel of how it all fits together using the VirtualHosts.
voice your opinion now!
python install apache ubuntu linux configure
RandomBugs.com: Apache Dynamic Virtual Hosting and PHP security
by Chris Cornutt June 07, 2011 @ 10:09:31
On the RandomBugs blog today there's a new post looking at some of the considerations made when setting up Apache and PHP for dynamic virtual hosting.
It's been a while since I configured the latest Dynamic Mass Virtual Hosting Server. Last time I used mod_vhost_alias to create a dynamic virtual hosting and it worked without any problem for what we need in that time. [...] Now, the problem is a little bit changed: We need a secure sever which should support ftp virtual users with quota and we don't have permission to change the packages, apply patches or recompile sources, because we need to be able to upgrade without to much stress.
Their biggest problem was dealing with the virtual users and handling the security for them to work with the files and hosts set up for them and only them. They tried both suPHP and a combination of mod_vhost_alias/php safe_mode/openbasedir but neither fit their needs. In the end it was mod_macro that did the trick with one caveat - you had to be more careful when adding the host to use the correct syntax in the configuration. It's split between multiple files and settings have to match across them.
voice your opinion now!
dynamic apache security hosting virtual tutorial
|
Community Events
Don't see your event here? Let us know!
|