Hi.
If I am not mistaken, which version(s) of PHP are loaded by Apache are set by a module directive, meaning you need to change the global Apache configuration to set it up. However depending on
how the different versions of PHP are set up, you can usually "switch" between them with an
.htaccess directive.
If for example your Apache install uses two different majors, PH4 and PHP5, you'll see something like this in In your
httpd.conf file (or similar master configuration file depending on your setting):
<IfModule mod_php5.c>
php_value include_path ".:/usr/local/lib/php"
php_admin_flag engine on
</IfModule>
<IfModule mod_php4.c>
php_value include_path ".:/usr/lib/php"
php_admin_flag engine on
</IfModule>
...
(somewhere else)
AddType application/x-httpd-php4 .php .php3 .php4
AddType application/x-httpd-php5 .php5
(I'm assuming there that ".php" files are handled by default with PHP4, which seems to be your problem)
If you find this, and assuming that the Apache config will allow you to use those directives in a local htaccess file, then you can add the following directive to DokuWiki's
.htaccess file:
AddHandler application/x-httpd-php5 .php
Which makes all php files be handled by the php5 module.
I'm not sure if Apache will need to be restarted after this.