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 via Apache loggt nicht mehr ins Apache error.log #923

Closed
christianTF opened this issue Apr 21, 2019 · 7 comments
Closed

PHP via Apache loggt nicht mehr ins Apache error.log #923

christianTF opened this issue Apr 21, 2019 · 7 comments

Comments

@christianTF
Copy link
Collaborator

Wenn ich in PHP mit

error_log("loxberry_web: pagestart function called -->");

ins Errorlog schreiben möchte, kommt das nicht mehr im Apache-Log an.

Ich kann das PHP-SDK nicht mehr debuggen.

@svethi
Copy link
Collaborator

svethi commented Apr 22, 2019

Ähm, ja, das kommt nicht mehr im Apachelog an, seit das Apachelog verschoben wurde ins tmpfs.
Es müsste error_log = ${LBSTMPFSLOG}/apache2/error.log in die php Config

@christianTF
Copy link
Collaborator Author

Das gehört noch genauer erhoben.
Ich hab 6 php.ini's auf dem LoxBerry:

root@loxberry-dev:/etc/php/7.0/cgi# locate php.ini
/etc/php/7.0/apache2/php.ini
/etc/php/7.0/cgi/php.ini
/etc/php/7.0/cli/php.ini
/opt/loxberry/system/php/7.0/apache2/php.ini
/opt/loxberry/system/php/7.0/cgi/php.ini
/opt/loxberry/system/php/7.0/cli/php.ini

@mschlenstedt
Copy link
Owner

mschlenstedt commented Apr 23, 2019 via email

@christianTF
Copy link
Collaborator Author

Nach meinen Tests mit /etc/php/7.0/apache2/php.ini:

  • error_log Eintrag ist erforderlich
  • error.log muss Owner loxberry:loxberry sein (Standard ist root:root)

Evt. sind auch nur die Rechte Schuld, aber ohne den error_log Eintrag hab ich nicht hinbekommen.

@svethi
Copy link
Collaborator

svethi commented May 26, 2019

So,

  • system/php ist bereinigt
  • system/php/20-loxberry.ini wurde angelegt
  • wegen schreibrechteprobleme logt php ins apache2/php.log

ToDo:

  • Update-Script muss system/php aufräumen und 20-loxberry.ini ausliefern
  • Update-Script muss /etc/php/7.0/.../conf.d/20-loxberry.ini durch Link auf system/php/20-loxberry.ini ersetzen
  • Apache2 muss nach den Änderungen neu gestartet werden
  • Änderungen müssen für‘s nächste Image gemerkt werden.

@christianTF
Copy link
Collaborator Author

@christianTF
Copy link
Collaborator Author

Gefixt im Update-Script 1.4.2:
https://github.com/mschlenstedt/Loxberry/blob/master/sbin/loxberryupdate/update_v1.4.2.pl

Follow-Up ist #957 (für setenvironments bzw. Image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants