Hi!
I’m trying to update the Akauting software. I’ve just run the upgrade command in my Ubuntu 18.04.
However, the following errors don’t allow the complete Akatung update:
“You can not upgrade to Akaunting 2.1 version because your PHP version is lower than 7.3.0. Please, ask your hosting company to upgrade your PHP.”
and:
“The PHP CLI executable file is not working! Please, ask your hosting company to set PHP_BINARY or PHP_PATH environment variable correctly.”
How can I fix that? Thank you so much!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
As far as I can tell for the error that you are getting, you have to upgrade your PHP version. To do that you could follow the steps from this answer here:
Hope that this helps. Regards, Bobby
To fix the errors encountered during the Akaunting update, follow these steps:
Akaunting 2.1 requires PHP 7.3 or later. Your Ubuntu 18.04 currently has an older PHP version installed.
To install or upgrade PHP to version 7.3 or later:
sudo add-apt-repository ppa:ondrej/php
sudo apt update
Install the required PHP version (e.g., PHP 7.4 for compatibility):
sudo apt install php7.4 php7.4-cli php7.4-fpm php7.4-mysql php7.4-xml php7.4-mbstring php7.4-curl php7.4-zip php7.4-gd
Use update-alternatives to switch to the newer PHP version:
sudo update-alternatives --set php /usr/bin/php7.4
Verify the PHP CLI version:
php -v
Akaunting requires the PHP CLI executable to be properly configured. If you’re seeing “PHP CLI executable file is not working,” ensure the PHP binary path is correct.
PHP_BINARY or PHP_PATHwhich php
Example output: /usr/bin/php
Set Environment Variables: Add the following lines to your web server or system environment configuration file:
export PHP_BINARY=/usr/bin/php
export PHP_PATH=/usr/bin/php
Save and apply the changes:
source ~/.bashrc
Run the PHP command manually to ensure it’s working:
php -v
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.