Switching PHP Versions using your .htaccess file
February 26, 2007
I recently decided to install an open-source application by the name of “ActiveCollab” to play around with a little bit and get to know a bit better. ActiveCollab is similar to BaseCamp (both are project management tools) so I decided to give it a shot. I thought that GoDaddy would have me on the latest version of PHP (5 that is) and ended up getting an error when I tried to install ActiveCollab for use with PureWebAnalytics. The error pretty much told me “Sorry buddy… your version of PHP sucks and is too old”. Needless to say I was surprised… but not defeated.
I contacted GoDaddy’s tech support, which are great as usual to work with and figured out that the problem lay with my .htaccess file in the root directory of my site. The .htaccess file for those of you who are unsure as to what it is; is a file that tells your server how make configuration changes. The idea that it allows you to set commands for the server to make changes to its configuration. In this case I wanted to have all .php files recognized as PHP 5 and not the server default of PHP4 which is what they were at before I made this change. The change to the .htaccess file looks like this…
… talk about an easy fix eh? Have fun with those big old nasty .htaccess files.
Luc
Comments
Got something to say?



