By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,087 Members | 1,948 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,087 IT Pros & Developers. It's quick & easy.

can't use mail() in php 4.3.11

P: n/a
I am programming a website with php+linix+mysql+apache, I used 2 days to
fighting with the php's mail() function.

This is a new linux Fedora 3 system, clean install.
Apache/2.0.53 (Fedora)
PHP 4.3.11

Sendmail works fine from the linux system, I mean in linux, I can send mail
out.

But when I try to use mail() in php, I will get the error message in
maillog.
SYSERR(APACHE), Can't write, ... Pedrmission denied.

I have changed the /spool/mqueue to even 755, still same problem.

Please help.

Ben

Aug 29 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
*** Ben Xia wrote/escribió (Mon, 29 Aug 2005 00:32:01 -0400):
Apache/2.0.53 (Fedora)
PHP 4.3.11

Sendmail works fine from the linux system, I mean in linux, I can send mail
out.

But when I try to use mail() in php, I will get the error message in
maillog.
SYSERR(APACHE), Can't write, ... Pedrmission denied.


Do you have SELinux activated?

http://fedora.redhat.com/docs/selinux-faq-fc3/
http://www.crypt.gen.nz/selinux/faq.html
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Aug 29 '05 #2

P: n/a
Thank you Alvaro, after disable the SELinux, everything is ok, I searched so
many times on google about this problem, and tried so many solutions, no any
luck.

Your one word solution saves me maybe another 2 days' work. thank you again.

I will read more about SELinux and try to tune the settings, not only
disable it.

Have a good day!

Ben

"Alvaro G Vicario" <al******************@telecomputer.com> wrote in message
news:wk*****************************@40tude.net...
*** Ben Xia wrote/escribió (Mon, 29 Aug 2005 00:32:01 -0400):
Apache/2.0.53 (Fedora)
PHP 4.3.11

Sendmail works fine from the linux system, I mean in linux, I can send
mail
out.

But when I try to use mail() in php, I will get the error message in
maillog.
SYSERR(APACHE), Can't write, ... Pedrmission denied.


Do you have SELinux activated?

http://fedora.redhat.com/docs/selinux-faq-fc3/
http://www.crypt.gen.nz/selinux/faq.html
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--

Aug 29 '05 #3

P: n/a
*** Ben Xia wrote/escribió (Mon, 29 Aug 2005 12:27:13 -0400):
Thank you Alvaro, after disable the SELinux, everything is ok, I searched so
many times on google about this problem, and tried so many solutions, no any
luck.

Your one word solution saves me maybe another 2 days' work. thank you again.

I will read more about SELinux and try to tune the settings, not only
disable it.


If you find the right solution feel free to post a summary here. It's
becoming a common issue. I haven't been able to test it myself, my distro
is pretty old.
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Aug 30 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.