Skip to content

LAMP & LAPP (and all LAMP/LAPP based apps) use other_vhosts_access.log by default instead of access.log #1902

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

Open
JedMeister opened this issue Feb 15, 2024 · 0 comments

Comments

@JedMeister
Copy link
Member

This is more of a nice to have rather than a significant issue. And FWIW I recall seeing this before, but never noted it as an issue.

On our LAMP/LAPP (and LAMP/LAPP based) appliances, by default Apache logs all access events to other_vhosts_access.log (/var/log/apache2/other_vhosts_access.log) and the access.log remains empty.

It would be much better if the main site instead logged access events to access.log (/var/log/apache2/access.log). Then any secondary sites could log to the other_vhosts_access.log - as I assume is intended.

As something of an aside, systemd (i.e. the journal) only picks up the Apache error events (so only events from the error log show up there). TBH I'm not necessarily sure if it's a good idea, but perhaps we could consider also logging access events to the journal?

I mention that as often PHP app related issues show up as an access event, rather than an Apache error.

Having said that, I guess that would be resolved assuming we implement #1889. I assume then the PHP related issues would show up in the journal related to php-fpm? That would need to be double checked but it seems like a logical thing (to me at least 😁).

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

1 participant