Page 1 of 1

admin/check/index.php needs to check PHP vers better

Posted: 04 Jan 2017, 18:28
by mushu
There should be no wanring for this because my PHP version is higher than required:

With:

Code: Select all

C:\>php -v
PHP 5.6.24 (cli) (built: Jul 20 2016 21:19:24)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

C:\>
I get:

Code: Select all

Checking your MantisBT installation...
PHP
There is a performance issue on windows for PHP versions < 5.4 in openssl_random_pseudo_bytes
For best performance upgrade to PHP > 5.4.0.	WARN

Re: admin/check/index.php needs to check PHP vers better

Posted: 04 Jan 2017, 23:33
by atrol
Maybe there is more than one PHP version installed on your system.
One for CLI (Command Line) and another one which is used by your web server.

To see the version, create a file test.php with the following content in the root directory of your Mantis installation and run the script in your browser

Code: Select all

<?php
phpinfo();

Re: admin/check/index.php needs to check PHP vers better

Posted: 05 Jan 2017, 00:36
by mushu
OMG. How did that happen? I installed php via the WebPI plugin within the IIS 8.5 management console. This means it fubar'd the php install (thanks microsoft!) and now I'm stumped. Do I uninstall php completely and then manually install the one specific version? Or do I attempt to figure out where it put the 5.3 version and manually update just that to 5.6? Bleh. Thanks for the clue that showed me what's happening at any rate.

Re: admin/check/index.php needs to check PHP vers better

Posted: 05 Jan 2017, 16:56
by mushu
Just a followup in case anyone cares, here is how to remove one of the installed versions of PHP:

http://serverfault.com/questions/273225 ... ion-of-php