You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Hemant Chaudhary <he...@gmail.com> on 2018/06/08 09:11:52 UTC
[users@httpd] Rotate logs in apache-2.4.29
Hi All,
I am trying to use rotatelogs in my webserver, but unable to do that.
Please help me to know where I am going wrong.
httpd.conf:
CustomLog "|/bin/rotatelogs logs/httpd_log 60" combined
error_log:
(4002)No such file or directory: AH00104: unable to start piped log program
' /bin/rotatelogs /logs/httpd_log 60'
AH00015: Unable to open logs
I tired for access_log too. But getting the same error.
Thanks
Hemant
AW: [users@httpd] Rotate logs in apache-2.4.29 [wd-vc]
Posted by "Bremser, Kurt (Allianz Technology GmbH)" <Ku...@allianz.at>.
rotatelogs is not in the system's bin directory, but in the bin directory of your apache.
Kurt Bremser
Allianz Technology GmbH
Newton was wrong. There is no gravity. The Earth sucks.
________________________________________
Von: Hemant Chaudhary [hemantdude.chaudhary@gmail.com]
Gesendet: Freitag, 8. Juni 2018 11:11
An: users@httpd.apache.org
Betreff: [users@httpd] Rotate logs in apache-2.4.29 [wd-vc]
Hi All,
I am trying to use rotatelogs in my webserver, but unable to do that. Please help me to know where I am going wrong.
httpd.conf:
CustomLog "|/bin/rotatelogs logs/httpd_log 60" combined
error_log:
(4002)No such file or directory: AH00104: unable to start piped log program ' /bin/rotatelogs /logs/httpd_log 60'
AH00015: Unable to open logs
I tired for access_log too. But getting the same error.
Thanks
Hemant
Allianz Technology GmbH
1130 Wien, Hietzinger Kai 101-105
FN 365014k, Handelsgericht Wien
UID: ATU 66614737
http://www.allianz.at
********************************************************
Dieses E-Mail und allfaellig daran angeschlossene Anhaenge
enthalten Informationen, die vertraulich und
ausschliesslich fuer den (die) bezeichneten Adressaten
bestimmt sind.
Wenn Sie nicht der genannte Adressat sind, darf dieses
E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen
Personen zugaenglich gemacht noch in anderer Weise
verwertet werden.
Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten
wir Sie, dieses E-Mail und saemtliche angeschlossene
Anhaenge zu loeschen.
Please note: This email and any files transmitted with it is
intended only for the named recipients and may contain
confidential and/or privileged information. If you are not the
intended recipient, please do not read, copy, use or disclose
the contents of this communication to others and notify the
sender immediately. Then please delete the email and any
copies of it. Thank you.
********************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Rotate logs in apache-2.4.29
Posted by Hemant Chaudhary <he...@gmail.com>.
Now its working. Earlier rotatelogs directory was not proper.
Thanks
Hemant
On Fri, Jun 8, 2018 at 7:14 PM, Yehuda Katz <ye...@ymkatz.net> wrote:
> Is rotatelogs actually located in /bin/ ?
>
> On my REHL 7 system, it is located in /usr/sbin/
> On Ubuntu 16.04, it is located in /usr/bin/
>
> - Y
>
> On Fri, Jun 8, 2018 at 5:11 AM Hemant Chaudhary <
> hemantdude.chaudhary@gmail.com> wrote:
>
>> Hi All,
>>
>> I am trying to use rotatelogs in my webserver, but unable to do that.
>> Please help me to know where I am going wrong.
>>
>> httpd.conf:
>> CustomLog "|/bin/rotatelogs logs/httpd_log 60" combined
>>
>> error_log:
>> (4002)No such file or directory: AH00104: unable to start piped log
>> program ' /bin/rotatelogs /logs/httpd_log 60'
>> AH00015: Unable to open logs
>>
>>
>> I tired for access_log too. But getting the same error.
>>
>> Thanks
>> Hemant
>>
>
Re: [users@httpd] Rotate logs in apache-2.4.29
Posted by Yehuda Katz <ye...@ymkatz.net>.
Is rotatelogs actually located in /bin/ ?
On my REHL 7 system, it is located in /usr/sbin/
On Ubuntu 16.04, it is located in /usr/bin/
- Y
On Fri, Jun 8, 2018 at 5:11 AM Hemant Chaudhary <
hemantdude.chaudhary@gmail.com> wrote:
> Hi All,
>
> I am trying to use rotatelogs in my webserver, but unable to do that.
> Please help me to know where I am going wrong.
>
> httpd.conf:
> CustomLog "|/bin/rotatelogs logs/httpd_log 60" combined
>
> error_log:
> (4002)No such file or directory: AH00104: unable to start piped log
> program ' /bin/rotatelogs /logs/httpd_log 60'
> AH00015: Unable to open logs
>
>
> I tired for access_log too. But getting the same error.
>
> Thanks
> Hemant
>