Forum

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

New Discussion

Error in installation from GitHub

Nnq Nnq   ( User )

Commented 1 year ago

I followed download instructions from https://github.com/akaunting/akaunting
But, it generate this warning, I moved the index.php to public folder it generate other errors!
How to solve this issue?
Warning: require_once(akaunting/public/index.php): Failed to open stream: No such file or directory in /Users/akaunting/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php on line 16

Nnq Nnq   ( User )

Commented 1 year ago

I soleve the error by modify require_once $publicPath.'/./index.php';

in
vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php
to
require_once $publicPath.'/../index.php';

Nnq Nnq   ( User )

Commented 1 year ago

But now, I faced another issue, which is, not opening Akaunting correctly as attached screen shot shows:
image
when I entered the credential I got this:
{"status":null,"success":true,"error":false,"message":"Verification done! You are being redirected...","data":null,"redirect":"http://127.0.0.1:8000/1"}
After refresh and confirm I got white page of http://127.0.0.1:8000/1/wizard

Nnq Nnq   ( User )

Commented 1 year ago

I solve the issue by using Ngixn web server instead of built-in php web server (i.e., php artisan serve).

Ahmet Kurucan   ( User )

Commented 1 year ago

You should always use the official package for production

https://akaunting.com/start

Nnq Nnq   ( User )

Commented 1 year ago

Thanks, but what you mean by official package?

Nnq Nnq   ( User )

Commented 1 year ago

Anyway, I realized that my issue was with php artisin serve command! may be it cannot serve akaunting. But, php builtin web server and Nginx do not have any issue for installation.
php builtin web server command:
php -S localhost:8080 -t oath/to/directory/akaunting
or go to the root directory of akaunting:
php builtin web server .

Please login or register to leave a response.

Showing 1 to 7 of 7 discussions