RSS PHP Scripts Not working on VPS

Discussion in 'Site & Server Administration' started by sbwent, Jun 7, 2013.

  1. #1
    I have a new VPS server running Centos 6.4 64 bit. I'm sure that something is not right with maybe the php configuration because RSS and formmail scripts don't work. I have the same rss scripts and formmail.php on a shared web hosting account and they work perfectly. If there was a problem with the scripts they wouldn't work on my other hosting account.

    Can someone please help me out with this? What info do you require?
     
    sbwent, Jun 7, 2013 IP
  2. sbwent

    sbwent Greenhorn

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    Ok, I've fixed my RSS feed problem. Now I need help with formmail. The emails are not being sent and I'm having trouble working out why.
     
    sbwent, Jun 8, 2013 IP
  3. onenetwork.net

    onenetwork.net Greenhorn

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    try yum install sendmail first and if still not work yum install postfix should probably work
     
    onenetwork.net, Jun 8, 2013 IP
    Arick unirow likes this.
  4. sbwent

    sbwent Greenhorn

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    Using Postfix. Webmail and outlook works fine just formmail doesn't send. Bit of a mystery.
     
    sbwent, Jun 8, 2013 IP
  5. sbwent

    sbwent Greenhorn

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    I've added a test line in my formmail.php.
    The page is redirecting which is a confirmation that the mail was sent. If the mail was not sent I should receive the error message.

    if (mail($recipient, $subject, $message, "FROM: $email") )
    {
    header("Location: sent.html");
    } else
    {
    echo "email could not be sent";
    }
     
    sbwent, Jun 8, 2013 IP