Forum

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

New Discussion

Install akaunting 2.1.x) in plesk error

Masyamtot   ( User )

Commented 3 years ago

Install akaunting di plesk https://yogjo.com error
Error: Ask your hosting provider to use PHP 7.3.0 or higher for both HTTP and CLI.

Sisco Disco   ( User )

Commented 3 years ago

I got the same issue, too!
I'm going to install 2.1.x to Plesk. The PHP version is 7.4.14 already. It seems Akaunting recognized it as 7.3.0. Any feedback is very appreciated.

Sisco Disco   ( User )

Commented 3 years ago

Masyamtot,
I just resolved the issue by following user Rafe's comment, quoted below:

I could not get it to work on XAMPP either, despite trying lots of things such as environment variables etc. I knew PHP was working fine and on the path, it was just the Akaunting check that was failing. In the end I commented out this line:

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

in \app\Utilities\installer.php so the check never happens and the issue goes away ;)

Obviously this is a complete hack and will only work if you've a working XAMPP/PHP installation just one that can't pass the checks for some reason.

Denis Dulici   ( Admin )

Commented 3 years ago

This is related to your Plesk not configured properly:

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

Dominik   ( User )

Commented 3 years ago

I got the same problem on Plesk.
I managed to install a fresh installation of Akaunting with commenting out the line in \app\Utilities\installer.php that Sisco suggested. Works fine eventhough it is a hack that most likely causes unseen problems somewhere else. @Denis what do you think about this hack?

What I did not manage is to update an existing version 2.1.0 to 2.1.1 and also 2.0.27 to 2.1.1. The error message is also
"Error: Ask your hosting provider to use PHP 7.3.0 or higher for HTTP, CLI, and php command.
Current PHP version: 7.2.24-0ubuntu0.18.04.7"

My hosting provider suggested me to use the following path on Plesk for the correct PHP CLI version:
/opt/plesk/php/7.4/bin/php

I added to my .env file this line:
PHP_BINARY="/opt/plesk/php/7.4/bin/php"

This does not change anything and results the update to fail.

Am I using the .env file correctly? Is maybe the path from my hosting provider wrong? Can I somehow prove that Akaunting is trying to get this PHP version but it's not available?

Carlos   ( User )

Commented 3 years ago

I got the same error at 3 different plesk vps providers, none of them where able to help.

Error: Ask your hosting provider to use PHP 7.3.0 or higher for both HTTP and CLI.

any ideas?

Joseph K. Mutai   ( User )

Commented 3 years ago

I am having the same problem on Cpanel shared hosting.

After every update, the server changes php version back to 7.0.

The host has to change php version again and again on the server for akaunting to work again.

Looks like the update feature tempers with php version set on the account.

Joseph K. Mutai   ( User )

Commented 3 years ago

Akaunting when it updates, it edits or makes changes to the .htaccess file where it has php version settings ( FOR MY CASE)

Therefore, the default php version should be set in the system itself.... something like that...

Davy Ronald Hermanus   ( User )

Commented 3 years ago

I tried the advise of Sisco Disco:
// $requirements[] = trans('install.error.php_version', ['php_version' => AKAUNTING_PHP]);

in \app\Utilities\installer.php so the check never happens and the issue goes away ;)

and it run

Please login or register to leave a response.

Showing 1 to 9 of 9 discussions