Discussion:
[PHP-INSTALL] php + sendmail
Illó Gábor
2010-08-20 13:06:16 UTC
Permalink
Hello

I have php-fpm in my freebsd jail. php-fpm chrooted to
/usr/local/www/. I install mini-sendmail and linked
/usr/local/bin/mini_sendmail to /usr/local/www/ and i put
php_admin_value[sendmail_path] = /sendmail -t -i in to php-fpm.conf

php mail() return false

Log is empty. strace not work in amd64

php-fpm.conf:

error_log = /var/log/php-fpm.log
log_level = debug
chroot = /usr/local/www/
php_admin_value[sendmail_path] = /sendmail -t -i

hosting# file /usr/local/bin/mini_sendmail
/usr/local/bin/mini_sendmail: ELF 64-bit LSB executable, x86-64,
version 1 (FreeBSD), statically linked, for FreeBSD 8.0 (800505),
stripped

hosting# file /usr/local/www/sendmail
/usr/local/www/sendmail: symbolic link to `/usr/local/bin/mini_sendmail'

any idea?

Thanks
--
Best Regards
Gábor Illó
Illó Gábor
2010-08-20 13:19:13 UTC
Permalink
Hello

I have php-fpm in my freebsd jail. php-fpm chrooted to
/usr/local/www/. I install mini-sendmail and linked
/usr/local/bin/mini_sendmail to /usr/local/www/ and i put
php_admin_value[sendmail_path] = /sendmail -t -i in to php-fpm.conf

php mail() return false

Log is empty. strace not work in amd64

php-fpm.conf:

error_log = /var/log/php-fpm.log
log_level = debug
chroot = /usr/local/www/
php_admin_value[sendmail_path] = /sendmail -t -i

hosting# file /usr/local/bin/mini_sendmail
/usr/local/bin/mini_sendmail: ELF 64-bit LSB executable, x86-64,
version 1 (FreeBSD), statically linked, for FreeBSD 8.0 (800505),
stripped

hosting# file /usr/local/www/sendmail
/usr/local/www/sendmail: symbolic link to `/usr/local/bin/mini_sendmail'

any idea?

Thanks
Gabor Illo
2010-08-20 13:31:32 UTC
Permalink
Hello

I have php-fpm in my freebsd jail. php-fpm chrooted to
/usr/local/www/. I install mini-sendmail and linked
/usr/local/bin/mini_sendmail to /usr/local/www/ and i put
php_admin_value[sendmail_path] = /sendmail -t -i in to php-fpm.conf

php mail() return false

Log is empty. strace not work in amd64

php-fpm.conf:

error_log = /var/log/php-fpm.log
log_level = debug
chroot = /usr/local/www/
php_admin_value[sendmail_path] = /sendmail -t -i

hosting# file /usr/local/bin/mini_sendmail
/usr/local/bin/mini_sendmail: ELF 64-bit LSB executable, x86-64,
version 1 (FreeBSD), statically linked, for FreeBSD 8.0 (800505),
stripped

hosting# file /usr/local/www/sendmail
/usr/local/www/sendmail: symbolic link to `/usr/local/bin/mini_sendmail'

any idea?

Thanks
Étienne Buira
2010-08-20 18:59:19 UTC
Permalink
Post by Illó Gábor
Hello
Hi
Post by Illó Gábor
I have php-fpm in my freebsd jail. php-fpm chrooted to
/usr/local/www/. I install mini-sendmail and linked
/usr/local/bin/mini_sendmail to /usr/local/www/ and i put
php_admin_value[sendmail_path] = /sendmail -t -i in to php-fpm.conf
Don't know about freebsd jails, I'll assume it looks like Linux's one.
Post by Illó Gábor
php mail() return false
Log is empty. strace not work in amd64
error_log = /var/log/php-fpm.log
log_level = debug
chroot = /usr/local/www/
php_admin_value[sendmail_path] = /sendmail -t -i
hosting# file /usr/local/bin/mini_sendmail
/usr/local/bin/mini_sendmail: ELF 64-bit LSB executable, x86-64,
version 1 (FreeBSD), statically linked, for FreeBSD 8.0 (800505),
stripped
hosting# file /usr/local/www/sendmail
/usr/local/www/sendmail: symbolic link to `/usr/local/bin/mini_sendmail'
If it is a symbolic link, think where should it end up when accessed
from inside the jail...
Your options I see are to use a hard link if your MTA is contained in a
limited set of files, or to install your MTA directly under the
/usr/local/www hierarchy.
Post by Illó Gábor
any idea?
Thanks
Continue reading on narkive:
Loading...