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.
|
Turnkey php mysql hotscripts promotion web script US $0.99 (0 Bid) Auction Ends: Saturday Jul-31-2010 15:35:13 PDT Bid on 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.