Reputation:
I am facing the issue while setup the Akaunting application. I cloned this repo from GITHUB source 1: https://github.com/akaunting/akaunting. I followed all the steps and fulfilled all requirements, but when I serve this project it can show me this error on the screen (Error: Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI.). My Php version is 7.4.10. Please help me out on how to fix this issue?
Upvotes: 0
Views: 6485
Reputation: 8
If you are using XAMPP to install Akaunting, you can fix the "Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI" error by changing the global PHP version.
To do this, follow these steps:
Once you have changed the global PHP version, you should be able to install Akaunting without any problems.
If you are still having problems, you can try the following:
If you are still having problems, you can contact Akaunting support for assistance.
Here are some additional tips for troubleshooting Akaunting installation issues:
I hope this helps.
Upvotes: -1
Reputation: 31
The reason why for this error is because Akaunting is using command line (CLi) php
to get your installed php version instead of universal accepted method of getting php version through built in phpinfo()
.
Because it's using CLi php
it might not work properly with xampp or any other php hosting server that did not configure the right path to php
binary in the environment variables
To fix this in windows, locate php.exe
most probably in [pathTo]\xampp\php\php.exe and add them into your windows environment variables .
Launch cmd and execute this
setx PATH "%PATH%;drive:\path\to\your\php.exe"
To fix this in Linux, locate php
binary path, most probably at in [path]/bin folder`.
Launch Shell/bash
export PATH=$PATH:/place/with/path/to/php
restart your web server to refresh the new environment PATH
Upvotes: 1
Reputation: 315
So there may be many, many reasons for this issue, hopefully one answer will resolve it for you. In my case, I had to do 2 things:
So for part 2:
would become:
Like this you should skip to the wizard and select the language setting.
I hope this helped!!
Cheers.
Upvotes: 3
Reputation: 1
You need to check the PHP version globally and in the project directory.
This error appears when there is a difference in PHP Version of these folders. In my case reinstalling the composer did the trick.
Upvotes: 0
Reputation: 1
I had a similar issue. I got is resolved by doing the following.
PHP_BINARY="C:/xampp/php/php.exe"
Upvotes: 0