Main Apache Error log not logging certain logs/commands

SYSTEM INFORMATION
OS type and version AlmaLinux 8.9
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.8.2
Theme version 21.09.5
Package updates All installed packages are up to date

Hello everyone,

I recently went from CentOS7 to AlmaLinux8.9. All has been going good so far, except for a couple of things here and there.

One of the main things I’ve noticed is, the apache error log does not log any output from any PHP exec commands. For example, when running the imagemagick convert command via a PHP script, if there is an error with the command, the apache error log is suppose to log it.

Also, for the ffmpeg command, the apache error log is suppose to log the output regardless of error or not as well.

On my previous server, it was all logged to the apache error log.

On the new server, I have looked at all the logs for the above mentioned commands, and could not find anything. I checked the virtualhost’s error log, access, log, php error log, and of course the main apache access and error log. The main apache error log is where it’s suppose to be logged to.

Without the outputs from the above commands, there is no way for me to debug any errors, etc. Any help on this would be greatly appreciate it!

Thank you!

Look in Logs and Reports->PHP Error Log.

Presumably you switched to PHP-FPM execution mode from one of the other modes (this is good, PHP-FPM is the recommended mode for almost everyone), and it logs differently.

Hi @Joe,

Thank you for writing.

Looked into the PHP Error Log, only PHP errors are showing up there; no other kind of outputs.

Yes switched to PHP-FPM. With this new server, it’s currently the only option as well. I’m glad to have this option because like you mentioned, it’s recommended.

Anymore suggestions would greatly be appreciated.

Thank you!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.