FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » configuration problem rsyslog with php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
configuration problem rsyslog with php [message #183000] Wed, 02 October 2013 07:26 Go to next message
Avnesh Shakya is currently offline  Avnesh Shakya
Messages: 2
Registered: September 2013
Karma: 0
Junior Member
Hi,
I have a problem, when I am installing sysklogd, then errors are going in var/log/syslog file perfectly, when I am installing rsyslog, then errors are not going in syslog file, even I configured php/cli/php.ini file(by adding error_log= syslog), but still errors are not going in that file, please help me... What I have to do..., i know it's a silly question, but I am unable to configure it.....

Thanks,
Avnesh
Re: configuration problem rsyslog with php [message #183001 is a reply to message #183000] Wed, 02 October 2013 07:58 Go to previous messageGo to next message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma: 0
Senior Member
On Wed, 2 Oct 2013, Avnesh Shakya wrote:

> I have a problem, when I am installing sysklogd, then errors are going
> in var/log/syslog file perfectly, when I am installing rsyslog, then
> errors are not going in syslog file, even I configured php/cli/php.ini
> file(by adding error_log= syslog), but still errors are not going in that
> file, please help me... What I have to do..., i know it's a silly
> question, but I am unable to configure it.....

Your distribution has different configuration files depending on how php is
used, the /etc/php/cli/php.ini is used only when you use php in command line
and will not affect php which is used on web pages, for that you have
another config, change the one which is relevant for your system setup,
don't forget to restart the service which handles the php for the web server
8in most cases it's the web server itself).

If you still have issues that the logging do not end up in the system log
/var/log/messages or /var/log/syslog or what ever you expect it to end up
in), then it's a rsyslog issue and then this usergroup is the wron one to
ask, look for a more relevant usergroup or find a support medium that is
correct for rsyslog.

--
//Aho
Re: configuration problem rsyslog with php [message #183002 is a reply to message #183001] Wed, 02 October 2013 08:48 Go to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 02/10/13 08:58, J.O. Aho wrote:
> On Wed, 2 Oct 2013, Avnesh Shakya wrote:
>
>> I have a problem, when I am installing sysklogd, then errors are
>> going in var/log/syslog file perfectly, when I am installing rsyslog,
>> then errors are not going in syslog file, even I configured
>> php/cli/php.ini file(by adding error_log= syslog), but still errors
>> are not going in that file, please help me... What I have to do..., i
>> know it's a silly question, but I am unable to configure it.....
>
> Your distribution has different configuration files depending on how php
> is used, the /etc/php/cli/php.ini is used only when you use php in
> command line and will not affect php which is used on web pages, for
> that you have another config, change the one which is relevant for your
> system setup, don't forget to restart the service which handles the php
> for the web server 8in most cases it's the web server itself).
>
> If you still have issues that the logging do not end up in the system
> log /var/log/messages or /var/log/syslog or what ever you expect it to
> end up in), then it's a rsyslog issue and then this usergroup is the
> wron one to ask, look for a more relevant usergroup or find a support
> medium that is correct for rsyslog.
>
From the manual

Error_log:
Name of the file where script errors should be logged. The file should
be writable by the web server's user. *If the special value syslog is
used, the errors are sent to the system logger instead.*


Rsyslog on my debian distribution doesnt use /etc/syslog.conf by
default, it uses /etc/rsyslog.conf

In short rysylog uses different log files with probably a different
configuration. Your errors are ending up somewhere, just not where you
expect them.



--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Shuffle problem
Next Topic: multiple visitors at the same time
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 07:33:42 GMT 2024

Total time taken to generate the page: 0.02613 seconds