Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Some PHP does not execute [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
svancouw
n00b
n00b


Joined: 05 Feb 2006
Posts: 57
Location: California

PostPosted: Sat Nov 25, 2006 7:34 pm    Post subject: Some PHP does not execute [SOLVED] Reply with quote

I just finished getting PHP working on my system, evidenced by postfixadmin (index.php) running. On the other hand, I have a PHP script (a file called by html on a web page) that is supposed to e-mail a completed form. This process works on another unix server (RedHat 7.6, Apache 1.3.33 and PHP 4.4.2.) that I do not manage. On my system it looks as if it does complete (the if-else function seems to work, as the finishing echo thank you message appears), but the e-mail is never sent. The files are under /home/username/public_html/ for a secondary website of mine.

Is there possibly a tie-in to my mail server that I'm not familiar with, or do I not have my php set up correctly? Postfix is started on boot.

I am running dev-lang/php-5.1.6-r4, mod_php for apache-2.0.58-r2, and postfix-2.2.10 (if it makes a difference). I see no error messages related to this. The only Add-Type I have listed in 70_mod_php5.conf is applicaton/x-httpd-php, but from what I can tell this is all that's required.

If you need any other info from me please let me know, and I'll provide it quickly.

Thank you very much for your assistance.

Sean


Last edited by svancouw on Sun Nov 26, 2006 4:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Sun Nov 26, 2006 1:17 pm    Post subject: Reply with quote

By default php will use `sendmail -t -i` to send mail.
Can you send an email using that command from your system?

Code:
$ cat | sendmail -t -i
To: your@email.com
Subject: Test

Hit ^D to close the pipe and send the mail (control d)

If that doesn't work you'll need to fix your email system.
Also makes sure postfix doesn't trash your emails (check the logs).
Back to top
View user's profile Send private message
svancouw
n00b
n00b


Joined: 05 Feb 2006
Posts: 57
Location: California

PostPosted: Sun Nov 26, 2006 4:48 pm    Post subject: Reply with quote

I am a little embarrassed to admit this, but it turned out to be a firewall problem with my ISP. They block port 25, and in /var/log/messages I was getting a delay and timeout error for sending the e-mail.

I called them and they turned it off for me, and now I am able to receive the e-mail generated by the PHP script.

Thank you for your help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum