Home > Archive > PHP Programming > August 2005 > can't use mail() in php 4.3.11
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
can't use mail() in php 4.3.11
|
|
| Ben Xia 2005-08-29, 3:55 am |
| 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
| |
| Alvaro G Vicario 2005-08-29, 3:55 am |
| *** 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
--
| |
| Ben Xia 2005-08-29, 6:56 pm |
| 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" <alvaro_QUITAR_REMOVE@telecomputer.com> wrote in message
news:wks1wgsboi6z$.tneg4wq5r1s7$.dlg@40tude.net...
> *** Ben Xia wrote/escribió (Mon, 29 Aug 2005 00:32:01 -0400):
>
> 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
> --
| |
| Alvaro G Vicario 2005-08-30, 3:55 am |
| *** 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
--
|
|
|
|
|