Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2007
    Posts
    195

    PHP mail() function issue

    Hi all,

    I have a dedicated that suddenly stop php mail() function to work.

    Very strange because if I run php script with mail() function as root on command line all working fine.

    But If I run php script with mail() function in my browser so not work. Seems that only ROOT can run mail() function.

    I need some sugestion to fix this issue, because I have some websites on my dedicated that is using php scripts that needs mail() function working.

    Thanks for all

  2. #2
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    If you are running cpanel, you might have had nobody mails disabled.
    Sam
    Supportlobby.com - Expertise in Windows/Linux server support, IaaS and PaaS Management
    Spiralbean.com - Custom Software Development
    Email: exec @ activelobby.net | Skype: unni_active

  3. #3
    Join Date
    Sep 2007
    Posts
    195
    Fixed.

    I had change /bin/bash permission to 0700. So now I return chmod 0755 /bin/bash and all working fine.

    thanks

  4. #4
    Join Date
    May 2008
    Posts
    31
    mind posting the script, and php.ini file?

    EDIT: Just read that you said fixed, sorry for pointless post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •