Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problems installing PHPBb

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
MedricCedric
Posts: 12
Joined: 2022-06-30 14:19

Problems installing PHPBb

#1 Post by MedricCedric »

Hi

I updated my php so when I do the command

Code: Select all

php -v
I get the below

Code: Select all

php -v
PHP 8.1.7 (cli) (built: Jun 25 2022 08:17:26) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.7, Copyright (c), by Zend Technologies
However When I navigate to the webaddress of the folder I get
* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ /** * @ignore */ define('IN_PHPBB', true); define('IN_INSTALL', true); $phpbb_root_path = '../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); if (version_compare(PHP_VERSION, '7.1.3', '<')) { die('You are running an unsupported PHP version. Please upgrade to PHP 7.1.3 or higher before trying to install or update to phpBB 3.3'); } $startup_new_path = $phpbb_root_path . 'install/update/update/new/install/startup.' . $phpEx; $startup_path = (file_exists($startup_new_path)) ? $startup_new_path : $phpbb_root_path . 'install/startup.' . $phpEx; require($startup_path); /** @var \phpbb\filesystem\filesystem $phpbb_filesystem */ $phpbb_filesystem = $phpbb_installer_container->get('filesystem'); /** @var \phpbb\template\template $template */ $template = $phpbb_installer_container->get('template'); // Path to templates $paths = array($phpbb_root_path . 'install/update/new/adm/style', $phpbb_admin_path . 'style'); $paths = array_filter($paths, 'is_dir'); $template->set_custom_style(array( array( 'name' => 'adm', 'ext_path' => 'adm/style/', ), ), $paths); /** @var $phpbb_dispatcher \phpbb\event\dispatcher */ $phpbb_dispatcher = $phpbb_installer_container->get('dispatcher'); /** @var \phpbb\language\language $language */ $language = $phpbb_installer_container->get('language'); $language->add_lang(array('common', 'acp/common', 'acp/board', 'install', 'posting')); /** @var $http_kernel \Symfony\Component\HttpKernel\HttpKernel */ $http_kernel = $phpbb_installer_container->get('http_kernel'); /** @var $symfony_request \phpbb\symfony_request */ $symfony_request = $phpbb_installer_container->get('symfony_request'); $response = $http_kernel->handle($symfony_request); $response->send(); $http_kernel->terminate($symfony_request, $response);
Any help at all?

I assume it's cos of this line
Please upgrade to PHP 7.1.3 or higher before trying to install
So maybe I have 2 versions of php installed in which case how do I revert the default to version 8 when I run command PHP -V

I'm on debian 9

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Problems installing PHPBb

#2 Post by Head_on_a_Stick »

What is the output of

Code: Select all

type php
See also https://wiki.debian.org/WhereIsIt#A.22I ... g_to.3F.22

Disclaimer: I've never used PHP.
deadbang

MedricCedric
Posts: 12
Joined: 2022-06-30 14:19

Re: Problems installing PHPBb

#3 Post by MedricCedric »

This is response

type php
php is /usr/bin/php

MedricCedric
Posts: 12
Joined: 2022-06-30 14:19

Re: Problems installing PHPBb

#4 Post by MedricCedric »

I just realised that PHP doesn't seem to be executing scripts on my other sites :/

So it looks to be an issue with PHP?

Any ideas how to get it working?

Post Reply