By RichardHill on
I have a number of D6 installations. All use PHP 5.2.5. (or so the Control Panel on the server says...) I have never used any add-on modules. Until now...
I downloaded from Drupal the ImageAPI 6.x-1.0 module as well as all the D6 Ubercart modules and CCK. My goal being to install and test the new D6 Ubercart.
When I go to http://www.richardubercart.com/admin/build/modules,
CCK is fine, but ImageAPI 6.x-1.0 and all of D6 Ubercard have this error message:
This module requires PHP version 5.2.* and is incompatible with PHP version 4.4.7.
Any advice on how to proceed to install the modules?
Thank you,
Richard Hill
Comments
To be absolutely sure that
To be absolutely sure that PHP 5.2 is used by Drupal,
- enable the "php filter" module in admin/build modules.
- create a test page, set the "Input format" to "PHP code", enter some title and the code
<?php phpinfo() ?>in the body, and preview the page (no need to save it) to see from inside what PHP version is used by Drupal.If you find that PHP 4 is used, your host may require to add something at the top of your .htaccess file to use PHP 5 (often something like
AddHandler application/x-httpd-php5 .php).Thanks cog.rusty
I will give it a shot. Yes, now it sounds like Drupal is actually using an earlier version of PHP on the server.
Wonders never cease...
Thanks, Richard
Yes, indeed it is PHP 4.4.7
Yes, indeed it is PHP 4.4.7 that is being used.
Now, does this mean that I should eliminate the whole D6 installation, (it was created just to test Uber Cart) find out if PHP 5.2 is available on the server (as the CP advertises) and start over: reload D6 and then try the modules again?
Thanks,
Richard
No, you can switch to PHP5
No, you can switch to PHP5 even now, if your host provides a way to do that.
I already mentioned a method which some hosts use, by adding a line to the .htaccess file. Try it, or just ask your host's tech support whether PHP5 is available and how to switch to it.