Topic: log path

Hi,

I've installed PHP 7.1 SCL:
https://blog.remirepo.net/post/2016/06/ … Collection

It creates log files under path: /var/opt/remi/php71/log/php-fpm

Tried to change them to usual path:

[www]
slowlog = /var/log/php-fpm/ww-slow.log
php_admin_value[error_log] = /var/log/php-fpm/ww-error.log

but it simply ignores those entries.

Please advise.

Re: log path

Same changes works for me

slowlog = /var/log/php-fpm/www71-slow.log
php_admin_value[error_log] = /var/log/php-fpm/www71-error.log

and

# ll /var/log/php-fpm/*71*
-rw-r--r--. 1 apache apache 62 21 juin  09:19 /var/log/php-fpm/www71-error.log
-rw-------. 1 root   root    0 21 juin  09:17 /var/log/php-fpm/www71-slow.log

BTW, if you want a single version.... use "remi-php71" repository
See wizard instructions (top right link)

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

Re: log path

Thanks for your prompt reply Remi.

I am using two config files in /etc/opt/remi/php71/php-fpm.d folder: original ww.conf and ww_k.conf having local changes.

In ww_k.conf I have:

[www]
slowlog = /var/log/php-fpm/ww-slow.log
php_admin_value[error_log] = /var/log/php-fpm/ww-error.log

It didn't work until I've commented out the same entries in ww.conf.
All other changes in ww_k.conf were applied fine.
Just wanted to keep ww.conf intact for clean yum upgrades.

Need php71 running in paraller, there are lot of things to migrate, cannot replace complete php right away.

Anyway your package is a life saver, huge thanks for building it smile

Re: log path

smile

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70