Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Php server takes way too much CPU on Raspberry Pi #1846

Closed
NerosTie opened this issue Apr 4, 2016 · 6 comments
Closed

Php server takes way too much CPU on Raspberry Pi #1846

NerosTie opened this issue Apr 4, 2016 · 6 comments

Comments

@NerosTie
Copy link

NerosTie commented Apr 4, 2016

Issue details

Fresh install of Wallabag 2.0.0 on a Raspberry Pi. Even if I'm doing nothing on Wallabag, php bin/console server: run --env=prod takes a minimum of 24% of the CPU and I think it's way too much for a service which is not used.

Environment

  • wallabag version (or git revision) that exhibits the issue: 2.0.0
  • How did you install wallabag? Via the official doc: http://doc.wallabag.org/en/v2/user/installation.html
  • Last wallabag version that did not exhibit the issue (if applicable): 1.x
  • php version: php 5.x
  • OS: Raspbian
  • type of hosting (shared or dedicated): dedicated
  • which storage system you choose at install (SQLite, MySQL/MariaDB or PostgreSQL): SQLite

Steps to reproduce/test case

Just install Wallabag 2.0.0 and run it.

@NerosTie NerosTie changed the title Php server take way too much CPU on Raspberry Pi Php server takes way too much CPU on Raspberry Pi Apr 4, 2016
@tcitworld
Copy link
Member

Because it is not planned to be used like this, that's the php build-in server whose performances are aweful ! Install it with Apache or Nginx to have normal performances.

@NerosTie
Copy link
Author

NerosTie commented Apr 4, 2016

So, I can avoid the steps with composer? Downloading the .zip file is enough (like before)?

@tcitworld
Copy link
Member

That's nothing to do with it. Instead of launching with php bin/console server: run --env=prod, just configure your webserver to point to web/app.php like the configuration files from my links above show.

@NerosTie
Copy link
Author

NerosTie commented Apr 4, 2016

Assuming you install wallabag in the /var/www/wallabag folder

What is supposed to mean?

Is this part necessary if I want to install with nginx? :

SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
php bin/console wallabag:install --env=prod

@tcitworld
Copy link
Member

It's an example of where you want to install wallabag.
Totally.

@NerosTie
Copy link
Author

NerosTie commented Apr 4, 2016

You are right! It works. Thanks.

But IMHO, the doc should be more clear around here. Because I thought it was like Ghost which needs to run in background.

@NerosTie NerosTie closed this as completed Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants