mantisbt-2.27.0 install.php does not run.

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
seppeltronics
Posts: 15
Joined: 04 Nov 2018, 22:21

mantisbt-2.27.0 install.php does not run.

Post by seppeltronics »

Hello,

currently I try to update my server to discontinue the PHP 7.4 Support and go fully to 8.4 .

Code: Select all

tar -xzf mantisbt-2.27.0.tar.gz
mv mantisbt-2.27.0 mantisbt
Then I run: https://www.foo.net/bar/mantisbt/admin/install.php

The issue is, if I try to run the install.php on the, but there is no response on the webpage, it shows nothing.

I tried the older mantisbt-2.18.0.tar.gz, it starts.

Code: Select all

tar -xzf mantisbt-2.18.0.tar.gz
mv mantisbt-2.18.0 mantisbt_old
Then I run: https://www.foo.net/bar/mantisbt_old/admin/install.php The Webpage comes up,... as expected.

What could be the issue?

Thanks a lot, Best Regards, Seppel

--------------------------------------------------------------------------------------------------------------

The output for PHP versions I get is:

Code: Select all

php --version
PHP 4.4.9 (cgi-fcgi) (built: Nov 11 2024 13:32:51)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Code: Select all

php7.4 --version
PHP 7.4.33 (cgi-fcgi) (built: Dec 11 2024 09:37:41)
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Code: Select all

php8.4 --version
PHP 8.4.3 (cgi-fcgi) (built: Jan 20 2025 10:48:23) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.3, Copyright (c) Zend Technologies
atrol
Site Admin
Posts: 8531
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisbt-2.27.0 install.php does not run.

Post by atrol »

PHP 8.4 is currently not supported, see https://mantisbt.org/bugs/view.php?id=35216 and the child issues,
Please use Search before posting and read the Manual
seppeltronics
Posts: 15
Joined: 04 Nov 2018, 22:21

Re: mantisbt-2.27.0 install.php does not run.

Post by seppeltronics »

Hello,
atrol wrote: 26 Jan 2025, 19:50 PHP 8.4 is currently not supported, see https://mantisbt.org/bugs/view.php?id=35216 and the child issues,
What PHP version is supported in 2.27.0?

I guess it is not the PHP Version, it might be other problems as there are multiple PHP versions available on the server,.... , it's a webhoster.

Thanks a lot, best Regards Seppel
atrol
Site Admin
Posts: 8531
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisbt-2.27.0 install.php does not run.

Post by atrol »

At the moment I would recommend using PHP 8.1, 8.2 or 8.3

Maybe you are using PHP 4.4.9.
To find out which version is used by the web server, create a file test.php with the folowing content un the folder where you hav stored MantisBT

Code: Select all

<?php
phpinfo();
After that run
https://www.foo.net/bar/mantisbt/test.php
Please use Search before posting and read the Manual
seppeltronics
Posts: 15
Joined: 04 Nov 2018, 22:21

Re: mantisbt-2.27.0 install.php does not run.

Post by seppeltronics »

Hello,

very good hint, thanks a lot, it is 7.4.33 in the mantisbt_old folder(which is a freshly unpacked mantisbt-2.18.0.tar.gz), but what is more interesting, when I executed it from the mantisbt folder(which is a freshly unpacked mantisbt-2.27.0.tar.gz), it did not execute at all.

Currently I just changed the permissions of the mantisbt folder itself, on the unpacked 2.18.0 it is 705, so I changed it to 705 on the unpacked 2.27.0 to 705 as well, now the version is displayed and the /admin/install.php runs. :roll: :D

Should I upgrade the PHP to 8.3 before installing 2.27.0 or should I go with 7.4.33 and change it later, what would you recommend?

Thanks a lot.

Best Regards, Seppel
atrol
Site Admin
Posts: 8531
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisbt-2.27.0 install.php does not run.

Post by atrol »

seppeltronics wrote: 26 Jan 2025, 22:10 Should I upgrade the PHP to 8.3 before installing 2.27.0 or should I go with 7.4.33 and change it later, what would you recommend?
Both options should work.
If I understand right, you succeeded in installing 2.27.0 using PHP 7.4.33, so upgrading to a newer PHP version after the installation could be the better option.
Please use Search before posting and read the Manual
seppeltronics
Posts: 15
Joined: 04 Nov 2018, 22:21

Re: mantisbt-2.27.0 install.php does not run.

Post by seppeltronics »

Hello,

actually I get an error that I do not understand. What I did was:

1) Took the old mantisbt offline and renamed it, e.g. https://www.foo.net/bar/mantisbt_old/admin/install.php

2) Unpacked the new mantisbt 2.27.0, renamed it,copied the config_inc.php .

Issue 1:

I could not find the custom-files, I assume that I just never used them, so they do not exist?

custom_strings_inc.php,
custom_constants_inc.php and
custom_functions_inc.php.

3) I ran https://www.foo.net/bar/mantisbt/admin/install.php and pressed Install/Upgrade

Issue 2:

Code: Select all

Setting Admin Password 	POSSIBLE PROBLEM
admin user password is blank, using database user password instead
Why can't it use the users already set? What did I do wrong?

Problem

Code: Select all

Checking URL to installation 	BAD
Web page at 'https://www.foo.net/bar/mantisbt/' does not appear to be a MantisBT site.
It is the unpacked tar, so I do not understand why it complains nor how to resolve it.

What causes the issues and how can I resolve the Problem, so I can upgrade?

Thank you very much.

Best Regards, Seppeltronics
seppeltronics
Posts: 15
Joined: 04 Nov 2018, 22:21

Re: mantisbt-2.27.0 install.php does not run.

Post by seppeltronics »

P.S.
atrol wrote: 27 Jan 2025, 09:13 .. If I understand right, you succeeded in installing 2.27.0 using PHP 7.4.33 ...
Not at all, the Install/Upgrade Button was not a success.

If I try to set the old admin-username and admin-password I get:

Code: Select all

 Attempting to connect to database as admin 	BAD
Does administrative user have access to the database? ( Access denied for user 'administrator'@'infong821.clienthosting.eu' (using password: YES) ) 

Code: Select all

 Checking URL to installation 	BAD
Web page at 'https://www.kardeh.net/ads/mantisbt/' does not appear to be a MantisBT site. 

Code: Select all

 Checking Database Server Version 	POSSIBLE PROBLEM
Unable to determine 'mysqli' version. (MySQL 5.5.35 or later is required for installation). 
Not sure why it dies that, I assumed the fields Admin Username and Admin Password would be those of MantisBT, but ok. It marked the setting of usernames and passwords green,... which is a little confusing.

The Database is a MySQL 5.7, so that should be ok.

Still I can not resolve the "Checking URL to installation BAD"

Than I just loaded the page and logged in as admin-user,.... is it ok?
Screenshot from 2025-01-27 16-52-30.png
Screenshot from 2025-01-27 16-52-30.png (116.55 KiB) Viewed 9609 times
Screenshot from 2025-01-27 16-32-12.png
Screenshot from 2025-01-27 16-32-12.png (133.18 KiB) Viewed 9614 times
Actually not:
Screenshot from 2025-01-27 16-36-42.png
Screenshot from 2025-01-27 16-36-42.png (63.4 KiB) Viewed 9613 times
Post Reply