PHP script unable to email on OpenBSD Apache

Posted by MattC on Server Fault See other posts from Server Fault or by MattC
Published on 2011-01-04T21:00:16Z Indexed on 2011/01/04 22:55 UTC
Read the original article Hit count: 204

Filed under:
|
|

I have a webserver running OpenBSD 4.7 and PHP 5.2.12 out of the ports tree. There is a small contact page that is supposed to send an email to a specific address. When I fill in the form using a web browser, it sends the AJAX request to the PHP page which claims it worked successfully but there is no email. The maillog is empty as well. I created a small php script that replicates this functionality and when I run it by hand using the "php -f" command, it sends an email without a problem. I think this has to do with being chrooted but I can't seem to get it to work. Furthermore, I can't seem to get PHP to log. I told it to log to /var/www/logs/php_errors.log and restarted but can't get it to send anything to the file. Does anyone have any tips for debugging these sort of things in OpenBSD?

© Server Fault or respective owner

Related posts about apache

Related posts about php