Hi!
I am experiencing an extremely weird bug on LSWS 4.0.3! I am trying to run a wiki based on MediaWiki, which requires PHP5. My server, for various reasons defaults at PHP4. So I created an .htaccess file in the domain root and redefined the PHP version as following:
AddType application/x-httpd-php5 php php3 php4 php5 phtml
Now when I open the wiki's main page, I get this:
I've created an info.php to check the version out and it says I am running PHP 5.2.9. Digging deeper into the issue I found out that the "switching" occurs in the following line in includes/WebStart.php:
placing a
before that line gives me 5.2.9. Placing it before define(..) gives me 4.4.9.
I cannot for the life of me figure this out, so any help would be welcome!
I am experiencing an extremely weird bug on LSWS 4.0.3! I am trying to run a wiki based on MediaWiki, which requires PHP5. My server, for various reasons defaults at PHP4. So I created an .htaccess file in the domain root and redefined the PHP version as following:
AddType application/x-httpd-php5 php php3 php4 php5 phtml
Now when I open the wiki's main page, I get this:
MediaWiki requires PHP 5.0.0 or higher. You are running PHP 4.4.9. [etc]
PHP:
if ( (! function_exists( 'version_compare' ))
|| (version_compare( phpversion(), '5.0.0') < 0)) {
define( 'MW_PHP4', '1' );
PHP:
phpinfo();
die();
I cannot for the life of me figure this out, so any help would be welcome!