473,320 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

can't use mail() in php 4.3.11

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
3 1679
*** 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
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
*** 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wolfgang Uhr | last post by:
Hello I have a small Problem by using the mail() command from php. To surround the problem, I do the following: 1. I go to the server and send me a mail using the linux-mail-Command. In...
0
by: Merijn Boom | last post by:
Hi there, I'm trying to create an html mail with embedded pictures in it. I run perl on Windows and Red Hat but I cannot get your module (Mail::Sender) to work. I'm just trying to run the...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
3
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
2
by: clevrmnkey | last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
2
by: Ruud | last post by:
Just before leaving for a holiday my collegue modified this script. Now it won't send any body text (The data filled in on the form) and in an error condition it won't send any attachments either....
14
by: Jeff | last post by:
I'm writing my php "form mail" script. Does mail do any checking for header injection in the "to" and "subject" parameters? CR and/or LF? It seems to me it easily could and should, but does it?...
2
mikek12004
by: mikek12004 | last post by:
Before posting here I google it and saw ablut 30 pages for a solution so I pretty much excluded the obvious things. The code is <?php //now to send the mails to seller...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.