Forum

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

New Discussion

Launch Akaunting using Laravel developer server

Ricardo Rodriguez   ( User )

Commented 6 years ago

Hi, is there any way to launch Akaunting through php artisan serve ? If I run that command I get this output when opening http://127.0.0.1:8000


ricardo@ricardo-VirtualBox:~/Descargas/prueba/akaunting$ php artisan serve
Laravel development server started: <http://127.0.0.1:8000>
[Thu Jun 14 10:52:52 2018] PHP Warning:  Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Thu Jun 14 10:52:52 2018] PHP Fatal error:  Unknown: Failed opening required '/home/ricardo/Descargas/prueba/akaunting/server.php' (include_path='.:/usr/share/php') in Unknown on line 0


I think this is not working since this command is trying to execute server.php and not index.php.


Any ideas ? Thanks in advanced


 

Denis Dulici   ( Admin )

Commented 6 years ago

I'm sorry but that's not possible.

Ricardo Rodriguez   ( User )

Commented 6 years ago

Okey, thank you for the reply

Nani Paul   ( User )

Commented 6 years ago

were you able to get it to run. i'm having the same problem here @Ricardo Rodriguez 

Ricardo Rodriguez   ( User )

Commented 6 years ago

Not with laravel's server so I deployed Akaunting on my Apache server, set up XDebug and made my IDE (PHPStorm) to listen to incoming debugs connections. Here's the link I used. @Nani Paul

Nani Paul   ( User )

Commented 6 years ago

Thanks a lot @Ricardo Rodriguez.  I will check that out.

Isaias Soares   ( User )

Commented 6 years ago

On my install, I tried both, from stable release (1.2.11) and through GitHub, and I spent days trying with no success until now. On stable release, if I start the "php artisan serve" on the directory, I get the error "PHP Fatal error:  Unknown: Failed opening required '/var/www/html/akaunting/server.php'", and if I start directly from APACHE2 on the directory of stable install, the server is redirected to 'http://localhost/akaunting/auth/login' and I get the error 404, the page not found.


This is very bad, I already developed for web before, and have some experience, but I could not make this run in a easy way. I'd like to contribute to this particular project, but I'm not able to make a basic setup of this... this is very... disapointing.


I don't know if the software is immature (and because of this we experience this kind of dificulties), or if I'm misunderstanding something. Im both cases, I found lack of information, documentation, or both.


If anyone can help me, it would very welcome.


Thanks in advance.


 

Mike   ( User )

Commented 6 years ago

$ php -S 127.0.0.1:8000


I you want to use "$ php artisan serve" you have to do more (ex.):


$ wget -O server.php https://raw.githubusercontent.com/laravel/laravel/5.4/server.php


$ wget -O public/index.php https://raw.githubusercontent.com/laravel/laravel/5.4/public/index.php


And some more code changes...

Mateen   ( User )

Commented 4 years ago

Thanks Mike!

Osahady   ( User )

Commented 2 years ago

I have installed akaunting from github and tried to run it on mysql using xammp but this error comes in:
Warning: require_once(...\public\index.php): Failed to open stream: No such file or directory in ...\vendor\laravel\framework\src\Illuminate\Foundation\resources\server.php
I have created an index.php file on public folder and it worked>>>
what should I do? I think there is something wrong?
same as Isaias Soares I think...

Please login or register to leave a response.

Showing 1 to 10 of 11 discussions