Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572002 - dev-lang/php-5.6.17 - php-fpm defaults to non-existent log directory
Summary: dev-lang/php-5.6.17 - php-fpm defaults to non-existent log directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-15 16:17 UTC by David Flogeras
Modified: 2016-01-23 03:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Flogeras 2016-01-15 16:17:49 UTC
When upgrading to php-5.6.17[fpm] from 5.6.14[fpm], I just took the new defaults in fpm-php.ini.  When I started up the server it failed because the new log dir /var/lib/log/php-fpm.log

This seems like a bit of a weird place to put a log in the first place, but if this is indeed the proper place, then either the ebuild should make the dir, or elog warn the user to do so.

Reproducible: Always
Comment 1 Michael Orlitzky gentoo-dev 2016-01-18 20:39:07 UTC
I think the correct way to fix this is to specify --localstatedir="${EPREFIX}/var" in src_configure(). The default is to use "${EPREFIX}/var/lib" as explained here:

https://archives.gentoo.org/gentoo-dev/message/6d5ece07355d2edd1240bde0c5d7ed03

After we fix that, the default will be /var/log/php-fpm.log. We just need to make sure that change doesn't break anything else.
Comment 2 Michael Orlitzky gentoo-dev 2016-01-23 03:31:01 UTC
This seems to work -- famous last words. I revisioned both the 5.6 and 7.0 series:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=824097f4c1c36cc4afea4b45f052d1788204dde9

Both versions of php-fpm start out of the box for me now.