New Relic is a great service for monitoring servers and website applications. One of the major features is New Relic’s PHP application monitoring and the ability to do per directory PHP monitoring. This is useful for web servers that run PHP but serve multiple PHP applications under different domain names/directories. Being able to create per directory PHP application monitoring allows you to get more meaningful data about a specific PHP app and gives you the ability to segment your app data easily. I’ll show you how you can automate this type of setup with an Apache setup which is controlled by DirectAdmin.