Forum

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

New Discussion

Installation Prompt Failure

Ben Schofield   ( User )

Commented 6 years ago

Have followed the instructions to install Akaunting (CentOS7, Apache, MariaDB). It seems to be working correctly as I'm presented with the login page when I visit the URL.


However, according to the documentation, I'm meant to be presented with a 3 step installation process. Akaunting is not yet connected to the database, it has not been installed previously, and I've completely blown away all files in the directory and redownloaded from scratch but the issue persists. I've tried switching browsers, using incognito, etc. No matter what I do I can't get it to realise that it isn't already installed and that it needs feeding DB info.


I'm accessing it at / so are there any files that I can access directly to trigger an install? I've looked for the classic install.php but there doesn't seem to be one. Well, there's one under Console but it looks to be for CLI only operations (and when I visit it in the browser, it sends me back to the login page at /).


It's driving me insane. How do I force this thing to install?

Ben Schofield   ( User )

Commented 6 years ago

Right, figured it out.


During the install a file called .env is created and filled with data that has been input during installation. Except that this file had empty values in it. Presumably, Akaunting checks for this file and if it exists pushes you to the login page but doesn't actually check to see that the values are valid.


Annoyingly, as it's a hidden file, it didn't get deleted with a rm -rf . so when I assumed that I was dealing with a completely blank directory, this file was still lingering there.


Smashing the file solved the problem.

Azmi Muhammad   ( User )

Commented 5 years ago

Hi Ben, what do you mean by smashing the file?

Arthur Knight Hammer   ( User )

Commented 5 years ago

He deleted the file.  In linux:


rm .env

Please login or register to leave a response.

Showing 1 to 4 of 4 discussions