Forum

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

New Discussion

500 Error: No application encryption key has been specified.

Zaki Hamid   ( User )

Commented 4 years ago

Hello,
I downloaded the latest version of Akaunting from akaunting.com/download
Followed the installation docs, uploaded the files to my host and opened the folder in the browser.
Browser throws 500 Internal Server Error and the link on browser reads akaunting-folder/install/requirements

I renamed the .env.example to .env (which already has debug set to true)
Now when I open the page, I see the debug info with: No application encryption key has been specified.

Could someone guide me as to what extension/module might be missing?
I am running php 7.3.

Thanks and regards.

Zaki Hamid   ( User )

Commented 4 years ago

I have checked the requirements and I have all the necessary php extensions loaded.

Candra Aditama   ( User )

Commented 4 years ago

I once had the same problem.
If you use Wampserver with Apache 2.4.43, update to Apache 2.4.43a. You can download here : http://wampserver.aviatechno.net/
I think it might be the same if you use other than wampserver, you can try to update or reinstall apache using latest released version.

Zaki Hamid   ( User )

Commented 4 years ago

@Candra, thank you for your reply.
Unfortunately I am on a webhost, not localhost, hence I do not have control over Apache.
I used on another server with same Apache version and it worked all fine. I think the problem is with the installer alone on particular host setting.

For now, I used softaculous to install Akaunting and it went fine and I could install and use it.

Denis Dulici   ( Admin )

Commented 4 years ago

Hello,

You should not rename env or change any file but following the installation steps:

https://akaunting.com/docs/installation

You can enable debug to see more details about errors:

https://akaunting.com/docs/developer-manual/debug

Regards

Zaki Hamid   ( User )

Commented 4 years ago

Hello Denis,
Thank you for your reply.
Documentation says: "To enable it, set true the APP_DEBUG variable in the .env file, located in the root directory of your Akaunting installation."

Without the application installed, there is no .env file in the root. So I rename .env.example to .env which already has debug enabled but does not have key set.

Please tell me how I can enable debug in another way?

Thanks and regards.

Captain Morgan   ( User )

Commented 4 years ago

Try copying the key from env.testing to env.example - it would be nice if there was some documentation about this in the installation instructions page. Maybe a troubleshooting section.

By the way what I'm suggesting didn't work for me. When I copied the key across it got rid of the missing key error but gave me a new error about being unable to find the PHP binary. Might work for you though.

Please login or register to leave a response.

Showing 1 to 7 of 7 discussions