Forum

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

New Discussion

Stuck at requirements + missing apps

Daniel   ( User )

Commented 3 years ago

Hi Everyone,

I'm setting this software up for the boss to evaluate and struggling with it.

If I install using the zip file + browser method, it times out on the requirements page with internal server error, and in the background it seems to be launching many 'php artisan help' calls that flood and kill the server.

Working around that, I went on to do a command line install and the software is up and running with a few companies. But noticed that the "My Apps" does not display any apps, and when installing and App, the files seem to install to the modules directory, but still nothing is listed in "My Apps"

With debug turned on, there is an exception thrown on one of the two install steps, something about file_get_contents('.....//module.json') does not exist. (Don't recall the exact message, except that the function call had a null so the filename had 2 slashes before module.json)

If I run 'php artisan module:list' it lists the following:
+----------------------+---------+-------+------------------------------------------------------------------------------------------+
| Alias | Status | Order | Path |
+----------------------+---------+-------+------------------------------------------------------------------------------------------+
| offline-payments | Enabled | | /home/hwgroup/domains/akaunting.highwaygroup.net/public_html/modules/OfflinePayments |
| paypal-standard | Enabled | | /home/hwgroup/domains/akaunting.highwaygroup.net/public_html/modules/PaypalStandard |
| receivables-payables | Enabled | | /home/hwgroup/domains/akaunting.highwaygroup.net/public_html/modules/ReceivablesPayables |
+----------------------+---------+-------+------------------------------------------------------------------------------------------+

If I mess around with the command line caches and things, eventually the /apps/my page will also launch many "php artisan help" processes and crashes the machine.

Besides the now obvious step that I need to setup my daemons to monitor for runaway processes. I'm not sure what is causing akaunting to behave like that.
All processes seem to be running via php 7.3.17, my apache is running httpd.event mpm.

I can give more info or debug further if it helps.

Daniel   ( User )

Commented 3 years ago

ok, further searching the forum, I found:

php artisan module:install ReceivablesPayables 1

And now that app shows up in the "My Apps", I'm not sure if the app is actually functioning. Although I'm sure I shouldn't have to resort to the command line to install an app.

Denis Dulici   ( Admin )

Commented 3 years ago

Hello Daniel,

That error happens when the PHP CLI executable is not configured correctly on your server. You can set the executable path as PHP_BINARY="path/to/php" in .env file.

Regards

Daniel   ( User )

Commented 3 years ago

Thanks, i saw something like that might work while browsing the source. I'll give it a try when i get back to work.
In future, if i was doing a fresh install, i should create a .env file with just that line in it before starting the install script?

Denis Dulici   ( Admin )

Commented 3 years ago

Not exactly. You should make sure that the PHP CLI executable is configured correctly on your server.

Daniel   ( User )

Commented 3 years ago

Thanks, it works.

Further investigating, I'm not getting the feeling that it's a configuration error.

There's an assumption that symfony's phpexecutablefinder returns a php-cli compatible command, but on https://github.com/symfony/process/blob/14c0d48567aafd6b24001866de32ae45b0e3e1d1/PhpExecutableFinder.php#L55 it's returning a cgi-fcgi sapi command. (when the .env line is not in place)

I vaguely remember reading that you could assume the php-cli or siblings to be in the same directory. Maybe they could consider searching before returning the php-cgi command.

Please login or register to leave a response.

Showing 1 to 6 of 6 discussions