Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

PHP error on installation

Phil Steels   ( User )

Commented 2 years ago

I have installed the latest 2.1.19-Stable on a windows server with PHP 7.4.20 with no problems.

However, I have another server which we want to install it on, and this has PHP 7.3.10. This meets the minimum of 7.3.0 however, I get an error message when trying to install it saying:

"Ask your hosting provider to use PHP 7.3.0 or higher for HTTP, CLI, and php command. Current PHP version: 7.3.10"

I did some searching of the PHP code and found this file:-

bootstrap\autoload.php

If I change line 4 to the version I have installed then it gets passed the first screen:-

4: define('AKAUNTING_PHP', '7.3.10');

However, I then get a graphical page with the Akaunting logo and then the same error message. Again doing some searching I have found:-

app\utilities\installer.php

If I comment out line 120 then the installer runs without issue.

120: # $requirements[] = trans('install.error.php_version', ['php_version' => AKAUNTING_PHP]);


My question is, by commenting out line 120, will this cause any other knock-on effects within the code?

Thanks,
Phil.

Melda Melda   ( User )

Commented 2 years ago

Hi Phil,

You can check out the following link for more information.

https://akaunting.com/docs/faq/not-able-to-install-apps

If the doc is not helpful you can contact to your hosting provider.

Phil Steels   ( User )

Commented 2 years ago

Thank you for your suggestion Melda.

We host on our own windows server, using standard Apache, PHP and MySQL - we don't have cpanel or multiple versions of PHP available.

I setup a fresh install on our VMServer, and installed fresh copies of Apache 2.4.48 with PHP 7.3.10 and got exactly the same error message with the graphic screen. I then removed 7.3.10 and replaced it with 7.3.11 and I was able to get to the select language for the install.

So it would appear that your code doesn't work properly with PHP 7.3.10 - the exact version I used is: php-7.3.10-Win32-VC15-x64.zip

Please login or register to leave a response.

Showing 1 to 3 of 3 discussions