Forum

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

New Discussion

Unable to install, too many opened files in Apache

Abdulrahman Hassoun   ( User )

Commented 3 years ago

Hello,

When I open the link in the browser, Apache starts to open too many files/processes of this:
/opt/cpanel/ea-php73/root/usr/bin/php-cgi artisan help

This number keeps increasing forever until it reaches a point that freezes the whole server. (100,000+ processes of the same file)

And the only way out of this is to restart Apache.

Nothing appears on the browser, nor in the Apache log, it doesn't time out or throws an error, it just keeps opening new process for that file.

Sometimes, the server manages to go to the next step of the installation, but mostly not.

I am trying with 2 versions:

Akaunting_2.0.13-Stable
Akaunting_2.0.15-Stable

Any help?

Regards.

Denis Dulici   ( Admin )

Commented 3 years ago

Hello,

Have you setup the PHP_BINARY value manually?

Regards

Abdulrahman Hassoun   ( User )

Commented 3 years ago

Hello, Denis,

No, I didn't touch that value, and I don't know where it is

Denis Dulici   ( Admin )

Commented 3 years ago

Enter the following line at the end of the .env available in the root folder of Akaunting installation and try again:

PHP_BINARY="php"

Abdulrahman Hassoun   ( User )

Commented 3 years ago

This solved this particular problem but introduced another one.

I had .evn.example and .env.testing

I copied .env.example to .env and added that line.

The page loaded fast - no (infinite) number of files are being opened.

Instead, I got runtime exception:

RuntimeException
RuntimeException:
No application encryption key has been specified.

Am I supposed to rename .env and fill in the variables manually? Or is this done through the installation wizard?

Please login or register to leave a response.

Showing 1 to 5 of 5 discussions