Error Logs on cPanel

Status
Not open for further replies.

ronturon

New Member
Messages
14
Reaction score
0
Points
1
I'd like to request, if possible, to access Error Logs on the cPanel.

I saw my Resource Usage stats and it maxes sometimes. I'd like to know what errors could occur when it happens. I am running a Wordpress site with only one plugin activated, the W3 Total Cache plugin (with only Page and Browser cache activated; and Object and DB cache disabled (I read somewhere that those two uses a lot of resource)). I am trying to build a site and monitor stats and usage as I build on it bit by bit.

Thank you.
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
cPanel > Select PHP Version > Switch to PHP settings
Make it look like something like this...
sTssvmi.jpg

Of course, press the save button after.
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
The error_log file will be located where a script would get a PHP error.
So, if a script from /index.php gets an error, it would be located in /error_log (document root-wise). And if one gets an error in /directory/file.php then the error_log file would be at /directory/error_log
 

ronturon

New Member
Messages
14
Reaction score
0
Points
1
@caftpx10, I was thinking more of an Error Log like this one:
0cBS39i.jpg


I know very little PHP and was hoping I could teach myself to solve errors when I see them popup.

Also, Should I set my PHP settings back from when it used to?
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
That error log is for Apache errors, not PHP.

Fun fact: By default, display_errors and error_log are disabled in PHP. In a comment in php.ini, it says not to enable display_errors in a production environment, only development.
 
Last edited:

ronturon

New Member
Messages
14
Reaction score
0
Points
1
I learn new things everyday. Thank you for the replies. I changed it back to these settings. I noted them before I copied yours.

EJGJQpm.png



Now if I could ask an Admin or Tech if they could enable Apache Error Logs.
 
Status
Not open for further replies.
Top