By venkat-rk on
I was pleasantly surprised to read here that all it takes to force drupal to use php5 is to change a bit of code in its .htaccess file. At least, this works on Site5.
This is very valuable for me as I have a few 4.7 sites on Site5 that I haven't been able to switch to my new host because they are running on php 4.x. I have a few questions, though. Would a recommended procedure be something like:
1.) Upgrade sites to 4.7.6
2.) Upgrade the php version using the .htaccess trick
3.) Upgrade all contrib modules to 5.0 versions
4.) Move the hosting account to the new host.
Does the change to the .htaccess file have any impact on drupal version upgrades?
Thanks,
Venkat
Comments
I don't understand; you
I don't understand; you wanted to upgrade your Drupal to 4.7.6 right then you still need to use 4.7.x version of contrib modules not 5.x
--
Cheers,
Sivanandhan, P. (a.k.a. apsivam)
Whoops, you're right. I was
Whoops, you're right. I was mixing up the drupal and php versions.
I would have to use drupal 5.0 versions when I upgrade to drupal 5.0, of course.
----
Previously user Ramdak.
Does your new host run php5
Does your new host run php5 by default. Then I would say
1) Upgrade sites to 4.7.6 to make sure they will *also* work with php5 when you move them.
2) Move them to the new php5 host.
The .htaccess AddHandler trick does not change anything in Drupal. It just tells site5's server to use php5 and not php4, and that is not a standard trick. So it seems irrelevant for the new php5 server.
Also asmallorange
Just FWIW, the .htaccess change works just the same way on asmallorange.
Cheers,
David.