Create a folder
testsite.dev in your
~/Sites folder and immediately access it with your browser by using http://testsite.dev, without changing your apache config or adding sitenames to your DNS or
/etc/hosts file. That's what you can do after following the instructions in this post!
If you enable mod_security on your apache server and you install the base-rules, you'll probably notice the WordPress blog isn't functioning correct anymore.
To fix this, you could add the following between the
<vhost> tags in your vhost file that powers your blog:
In my previous post we installed the latest apache and php from source and now I'd like to install xDebug to it. As stated in the comments on the previous post, I like living on the edge, so I build it myself, instead of using packages like MAMP or XAMMP or using binaries. With that out of the way we can prepare our system for the addition of PHP modules.
Because I travel a lot by train, it's easy to have a local development environment with me. Because OSX Leopard contains Apache2 and PHP 5.2.6, I installed MySQL, ZF, PEAR, setup the vhost conf for apache and added the path to the ZF and PEAR libraries to /etc/php.ini. This seemed to work fine for a day or two, but after that I needed to use the PDO_MySQL library. This didn't really work... The fact is that PDO_SQLite and PDO_SQLite2 are compiled along the installed PHP library, but PDO_MySQL isn't... Big FAIL!.
So, we'll have to setup a new PHP/Apache2 combo.....