can't use mail() in php 4.3.11

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ben Xia

    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





  • Alvaro G Vicario

    #2
    Re: can't use mail() in php 4.3.11

    *** Ben Xia wrote/escribió (Mon, 29 Aug 2005 00:32:01 -0400):[color=blue]
    > 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.[/color]

    Do you have SELinux activated?





    --
    -- Á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
    --

    Comment

    • Ben Xia

      #3
      Re: can't use mail() in php 4.3.11

      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@telecomp uter.com> wrote in message
      news:wks1wgsboi 6z$.tneg4wq5r1s 7$.dlg@40tude.n et...[color=blue]
      > *** Ben Xia wrote/escribió (Mon, 29 Aug 2005 00:32:01 -0400):[color=green]
      >> 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.[/color]
      >
      > 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
      > --[/color]


      Comment

      • Alvaro G Vicario

        #4
        Re: can't use mail() in php 4.3.11

        *** Ben Xia wrote/escribió (Mon, 29 Aug 2005 12:27:13 -0400):[color=blue]
        > 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.[/color]

        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
        --

        Comment

        Working...