Enable PHP logger in Mageia 3 64 bits

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Enable PHP logger in Mageia 3 64 bits

Postby jemartins » Sep 6th, '13, 19:59

Hi,

I am trying enable PHP logger. I made some changes in /etc/php.ini following all I could found in google.

That is what I changed in /etc/php.ini:

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
track_errors = Off
html_errors = Off
error_log = "/var/log/httpd/php_errors.log"


It don't works and /var/log/httpd/php_errors.log is empty using
Code: Select all
tail -f /var/log/httpd/php_errors.log


Have someone the solution for this problem?

---
Eduardo
Last edited by doktor5000 on Sep 6th, '13, 20:27, edited 1 time in total.
Reason: added code tags, to improve on clarity
jemartins
 
Posts: 9
Joined: Oct 19th, '12, 02:44

Re: Enable PHP logger in Mageia 3 64 bits

Postby djennings » Sep 6th, '13, 21:16

Is the log file writable by apache?
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Enable PHP logger in Mageia 3 64 bits

Postby jemartins » Sep 6th, '13, 21:21

Yes, it is.

$ ls -l /var/log/httpd/php_errors.log
-rw-r--r-- 1 apache apache 256 Set 6 13:38 /var/log/httpd/php_errors.log
jemartins
 
Posts: 9
Joined: Oct 19th, '12, 02:44


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest