Changing the default PHP version under 1&1 hosting
Ya can’t.
Well, OK, you can force it by using ‘.php5′ as the extension for all the PHP files. This works if you’re writing all your own shit but not much cop if you’re installing scads of downloaded ‘.php’ files.
What bollocks. Dreamhost makes it easy in the web panel - you simply select whether you want PHP5 or PHP4 as default for a particular domain. (Current options being PHP 4.4.7 or PHP 5.2.2)
And while I’m on the subject of figuring out why my DOMDocument wasn’t working, 1&1’s documentation blows compared to Dreamhost’s combination of support Wiki and forums.
|
NEW Creating Interactive Web Sites with PHP and Web ... US $34.56 Auction Ends: Tuesday Mar-09-2010 21:43:54 PST Buy this Item | Watch this Item |
January 1st, 2008 at 7:40 pm
yes you can change it - you’ll need to add “AddType x-mapp-php5 .php” to a “.htaccess” file in the folder where you want .php files to run as PHP5. Also, the DOMDocument only works in PHP5, so using the .htaccess fix should make it work.
January 1st, 2008 at 9:31 pm
Thanks for the hint Chris. I still prefer Dreamhost’s method but appreciate the solution!
Thanks for the comment.