RSS
 

Posts Tagged ‘php’

Introducing, the twig for drupal template engine

15 Aug

Introduction

This project is for those who like me, are getting that strange itching sensation in the neck when reading the amounts of PHP code in drupal tipplephip files. Not for the people who claim PHP is a template language and that a language in a language is a stupid waste of time. For all I care go ahead, and keep rocking the party like it is still 1998. To me PHP has come a long way since then with the usual growing pains, but it has become so much more then just a simple language to make personal home pages and thus a template system is no excessive baggage but a good companion in creating maintenance friendly code!

Read the rest of this entry »

 
2 Comments

Posted in Drupal

 

Compiling PHP 5.3.3, with nginx on ubuntu 10.4 for drupal 7

25 Jul

Introduction

Since i made the plan to change from a rather expensive dedicated server to a much cheaper VPS solution, i started thinking about moving away from the sluggish apache2 stack. Fed by the fact that the PHP developers surprised me by suddenly announcing that the support for the php 5.2.x is going into security fixes when needed mode, i decided i might as well go all the way then. Moving to PHP 5.3.3 running a much leaner and faster NGINX HTTP server under Ubuntu 10.4 LTS using the new PHP-FPM instead of fastcgi Read the rest of this entry »

 
2 Comments

Posted in ubuntu

 

Fixing the documentroot with vhost_alias

15 Jul

A small solution in follow up of the document root issue drm brought up in a previous post. Setting the correct $_SERVER["document_root"] value for your vhost_alias site.

Read the rest of this entry »

 
No Comments

Posted in OSX

 

Running a local wildcard DNS server on your mac

12 Jun

Ever since I’am using my macbook pro with XAMPP as my primary development workhorse, i’ve been playing around with the hosts file every single time I started a new project. Until last week, where i suddenly realized that it was a rather stupid practice. After all i’am running a system that comes preinstalled with named. Yeah i know, a bit late… But still, sat down for a few minutes to (re-)read about zone files and how to get an wildcard DNS server up and running.

The goal was to have *.dev.local pointing to 127.0.0.1 so i only needed to add/alter my apache vhosts.conf to fit my project needs.

Read the rest of this entry »

 
6 Comments

Posted in OSX