Ask, reply and learn. Join the community of Akaunting.
Hi, I am using XAMPP for Windows. I created a folder for Akaunting and extracted the zip file into it. XAMPP uses the latest PHP version but when I access the directory for installation I get the following error. I looked for similar topics in the forum but could not find a valid solution. Is there any solution?
Error: Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI.
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.
You need to update your PHP version to 7.3 or higher
more information here: https://akaunting.com/forum/discussion/installation-update/missing-documents-table
Hi Rafe, I tried your solution and moved on to the next step, but it stays on the database step and cannot proceed to the next step.
Hi Jackson, I have already said that XAMPP is using the latest PHP version.
I can't help further, was just how I got round the install this morning.
Jackson - I have the right version of everything and everything works. It's just the Akaunting installer PHP version test seems to fail in an XAMPP environment. I removed the check so the installer would run and it was effortless after that to get a working install.
Can - I presume you created a blank database in MySQL before you started the install?
Yes, I created a new database.
Sorry, I don't know enough to help any more than that. I created blank database, commented out the line and it worked perfectly after that.
I appreciate you trying to help. Thank you Rafe!
Hi Rafe,
Thanks a lot for your tips. It works for me!
I'd like to install the 2.1.x version to Plesk and got that error message about PHP version. Then, I tweaked the installer file as your suggestion. Voila! It's successfully installed to my subdomain.
Again, thanks for your brilliant answer.
Showing 1 to 10 of 16 discussions