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.
Following my last little article on WordPress plugins I can’t live without, it made me remember something I’d done recently to my WordPress installation. If your a WordPress user which runs WordPress on a server rather than a wordpress.com hosted account then you’ll understand that each time you install or remove a plugin you have to provide FTP information in order for WordPress to correctly locate the wp-content/plugins directory and get authorization to add or remove a plugin.
Your Localhost is very nearly complete, we’ve installed Apache, PHP 5 and MySQL 5. I breifly talked about the ability to modify and change MySQL databases. Well phpMyAdmin can do just that, this tool allows you to do this, it helps you manage your MySQL database in a nicely presented admin panel which you can easily change tables, prefixes and much more. This tool is a must if you plan on creating databases on your localhost
In part two, we installed almightly PHP language onto our localhost, with that you can now run php scripts and code offline on your localhost, but for example what if you want to test a script that needs a database your basically stuck aren’t you? Well to handle databases there’s something called MySQL, this is simple a relation database management system and is present on most web-servers avaliable today. MySQL allows you to create and modify (To a certain extent) databases on a server, and lucky you, it can be installed on a localhost! We will be installing the MySQL service and getting it to run with your localhost.
In part one we setup a Apache server and configured the localhost ready for you to use, we also set up the directory where you are going to save your local files. But so far in part one we only essentially setup the localhost, so all of the goodness of being able to view server side documents/scripts etc won’t work yet as you will need to install them, one of the most popular if not the popular server side code is PHP. It is used mostly to create dynamic webpages. Lets install PHP!