note 92993 added to function.mail

From: Date: Tue, 18 Aug 2009 19:38:35 +0000
Subject: note 92993 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-159611@lists.php.net to get a copy of this message
I recently had an issue where the mail() function would work fine from the php cli but not from apache. I eventually traced this down to the fact that I was using apparmor Specifically, I configured apparmor to deny the apache user the ability to use /bin/dash After changing apparmor to /bin/dash rix and reloading the apparmor profile, mail worked In other words, mail requires the account/program executing the script to be able to use /bin/dash I hope this helps someone ---- Server IP: 209.41.74.194 Probable Submitter: 173.11.50.90 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/92993 Del: integrated -- https://master.php.net/note/delete/92993/integrated Del: useless -- https://master.php.net/note/delete/92993/useless Del: bad code -- https://master.php.net/note/delete/92993/bad+code Del: spam -- https://master.php.net/note/delete/92993/spam Del: non-english -- https://master.php.net/note/delete/92993/non-english Del: in docs -- https://master.php.net/note/delete/92993/in+docs Del: other reasons-- https://master.php.net/note/delete/92993 Reject -- https://master.php.net/note/reject/92993 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159611) next »