Getting 404 running install.php

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
ericlogsdon
Posts: 4
Joined: 06 Sep 2024, 19:23

Getting 404 running install.php

Post by ericlogsdon »

We are currently running MantisBT 1.2.15 on a Windows IIS server with an MSSQLServer database. We are moving to an Azure Linux WebApp server using an AzureSQL database and upgrading to MantisBT 2.26.3.
I uploaded the MantisBT code, optional plugins, and config-inc.php to the new web server and the existing database to the AzureSQL server. I ran https://server.azurewebsites.net/mantis ... nstall.psp and on the verification page I got the error that config-inc.php was in the wrong place (oops). I copied the config-inc.php to the config folder and re-ran https://server.azurewebsites.net/mantis ... nstall.psp. I am now getting a 404 error.
Where can I look to find what I am missing. I scanned the config-inc.php file and didn't see anything obvious.

Thanks,
Eric
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Getting 404 running install.php

Post by cas »

please first get the old situation running on the new platform.
Next follow the upgrade instructions for an upgrade.
ericlogsdon
Posts: 4
Joined: 06 Sep 2024, 19:23

Re: Getting 404 running install.php

Post by ericlogsdon »

I took a step back. I created an index.php that displayed "Hello, world" to make sure the basics were there. https://server.azurewebsites gave the desired results.
I then copied the code from my production server and went to https://server.azurewebsites.net and got the 404 file not found again.
I am not a PHP person, so I could use some pointers. Is there PHP logging I could enable? Azure Webapps uses Nginx, if that makes a difference.
Thanks for any tips or tutorials you can point me to.

Eric.
ericlogsdon
Posts: 4
Joined: 06 Sep 2024, 19:23

Re: Getting 404 running install.php

Post by ericlogsdon »

The web server log is showing the 500 is on index.php
2024-09-10T18:54:32.7318930Z 127.0.0.1 - 10/Sep/2024:18:54:32 +0000 "GET /index.php" 500

It is in my Web Root. When I did the "hello world" app, the server could find it fine.

Eric
ericlogsdon
Posts: 4
Joined: 06 Sep 2024, 19:23

Re: Getting 404 running install.php

Post by ericlogsdon »

OK, an update on my issue.
I can't run MantisBT 1.2.15 on my server. PHP 8 has removed some functions that keep it from running.
So... I installed 2.26.3 in webserver/Mantis-2.26.3 and 1.2.15 in webserver. I copied the config-inc.psp to webserver/config (which I had to create because it doesn't exist in 1.2.15). I ran the webserver/Mantis-2.26.3/admin/install.php and the validation page says I need to copy my config-inc.psp to /config/config.inc.psp (it already is there and does not exist in webserver/

I am getting messages in the log saying that __autoload() is no longer supported (from core.php, line 138). This is from the V1.2 code, so I don't know if it is germane to my issue or a red herring.

I am not enough of a PHP person to dig through the code to see what is going on.

Eric.
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Getting 404 running install.php

Post by cas »

Hi Eric,
this way of upgrading is to fail.
Why not upgrade php on the old server and run the update? Then you can copy the installation across ( although I am not familiar with nthe DB you use and change @ the same time).
Post Reply