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

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
mushu
Posts: 145
Joined: Jan 04, 2017 12:41 pm

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

Post by mushu » Jan 04, 2017 1:28 pm

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

atrol
Site Admin
Posts: 7629
Joined: Mar 26, 2008 4:37 pm
Location: Germany

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

Post by atrol » Jan 04, 2017 6:33 pm

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();
Please use Search before posting and read the Manual

mushu
Posts: 145
Joined: Jan 04, 2017 12:41 pm

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

Post by mushu » Jan 04, 2017 7:36 pm

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.

mushu
Posts: 145
Joined: Jan 04, 2017 12:41 pm

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

Post by mushu » Jan 05, 2017 11:56 am

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

Post Reply