PHP Error Logging with Litespeed
Hello,
We recently installed LSWS and noticed the PHP Error Logs on all our accounts stopped working/recording as soon as we activated LSWS. We've reached out to LSWS' support and went round and round with them and they keep referring us back to CPanel support. They keep explaining that CPanel handles the PHP error logging when LSWS is enabled. I've explained to them though that the PHP Error Logging works fine when you disable LSWS. But they keep sending me to CPanel. So I wanted to reach out and see if there is anything that you can think of as to why the PHP Error Logging stops as soon as we activate LSWS.
Just to clarify, this is the PHP error logging that can be found inside each user account's home directory.
Thank you
Chris
-
Hey there! I don't have a good explanation for this one as I wouldn't expect that behavior to change. Could you create a ticket so we can take a look?
0 -
Absolutely. Thank you!
0 -
Hey cPRex,
So... I tried to create a ticket and I guess since I bought the CPanel license from GoDaddy, it wants me to put the request in to GoDaddy. Well, I just got off the phone with GoDaddy and they don't support Litespeed at all and they won't even open up a ticket for me. So I'm in a bind here. Do you have any type of solution?
Thanks,Chris
0 -
Where did you purchase your Litespeed license from?
0 -
From Litespeed directly.
0 -
GoDaddy should absolutely be willing to help with the cPanel side of things - if they aren't able to solve the issue they should escalate the ticket to us. From what you've described though, it does sound like something with Litespeed so I'm surprised they directed you to us when neither license was purchased through cPanel.
With the new license structure I don't have much I can offer on my end.
0 -
Alright - I figured it out. I feel really stupid but the logs used to be stored in /home/$user/logs when I was running it with PHP-FPM. Well, I guess when you switch over to Litespeed, the log files are then stored inside the /home/$user/public_html folder, which is where the php.ini file is located. I didn't know that PHP-FPM kind of had a "special folder" for the logs that overrides the php.ini location that's set.
With that being said, just out of curiosity, is there any way that you know of to set the log location back to the /home/$user/logs in the php.ini file? You can't use variables in there can you?
0 -
You sure can - options both with and without PHP-FPM can be found here:
https://support.cpanel.net/hc/en-us/articles/360050860534-How-do-I-set-the-PHP-error-log-location
0
Please sign in to leave a comment.
Comments
8 comments