Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm shell admin of http://bombshellnet.org and I'm in charge of the site. I was writing new code and testing it on the server when I encountered a unusual issue, mail() just cease to work without any useful explanation to as why. I've increase debug level in HTTPD, Postfix, and in PHP but no errors relating to this issue are logged. There's no indication in Postfix that PHP within Apache is making any attempts to send Mail. I've tested the Postfix with my E-Mail client, Telnet, and sendmail and all have passed. I test sample code on the cli with PHP and that has also passed. However, within Apache this test fails. I would include logs but there aren't any useful information. I read on another forum that this might be related to PHP misconfiguration of the send mail binary, but that's not the case as I double checked for accuracy. I'm not sure if anyone can provide helpful hints to this issue without much data to go on but I'm asking at anyrate. Anyone have any ideas?
Did you recently upgrade or update your PHP? It was a couple of months ago, but I recall something about mail getting broken in php5.3. It may have been Ubuntu related, but I am not certain. I recall the problem because I upgraded and could no longer send mail on the development/test PC I was using and I ended up downgrading the package.
Unfortunately, we currently using Fedora 14 and they only have the latest PHP 5.3.3 in the Repos. At this point, we don't have any other information to go on, I'm going to submit a bug. I'm not sure what I've done specifically for the function to cease working since it worked a couple of days ago :\
I removed PHP and reinstalled it with the default settings and still no go. It has to be something up with Apache... :/ I'm going to try one more thing and see....
Alright, I retrieve a script which I modified http://www.howtoforge.com/how-to-log...tect-form-spam and have it logged when it's called. PHP is not calling the script at all nor do I see sendmail errors in /var/log/maillog
Alright, this issue has been solved. Took me nearly 8 hours to fix but the issue was created by me in attempt to lock down bash. I prevented Apache from running shell commands. After scoring the web with helpful tips that guided me to this issue, I don't how know I could think google.com and linux questions. Hopefully this can be helpful for the next person =]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.