Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
12-21-2010, 12:08 PM
|
#1
|
LQ Newbie
Registered: Dec 2010
Distribution: Fedora 14, Ubuntu 10.10, OpenSUSE 11.3
Posts: 13
Rep:
|
PHP mail() cease to work
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?
|
|
|
12-21-2010, 12:37 PM
|
#2
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
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.
|
|
|
12-21-2010, 01:47 PM
|
#3
|
LQ Newbie
Registered: Dec 2010
Distribution: Fedora 14, Ubuntu 10.10, OpenSUSE 11.3
Posts: 13
Original Poster
Rep:
|
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 :\
|
|
|
12-21-2010, 01:55 PM
|
#4
|
Member
Registered: Dec 2010
Distribution: Debian testing
Posts: 148
Rep:
|
Are the setting in php.ini correct ???
I had the same problem once, everything just worked and then after a upgrade it suddenly stopped working and I had to correct my php.ini
|
|
|
12-21-2010, 02:33 PM
|
#5
|
LQ Newbie
Registered: Dec 2010
Distribution: Fedora 14, Ubuntu 10.10, OpenSUSE 11.3
Posts: 13
Original Poster
Rep:
|
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....
|
|
|
12-21-2010, 02:36 PM
|
#6
|
LQ Newbie
Registered: Dec 2010
Distribution: Fedora 14, Ubuntu 10.10, OpenSUSE 11.3
Posts: 13
Original Poster
Rep:
|
Here is a bug report that I submitted to fedora: https://bugzilla.redhat.com/show_bug.cgi?id=664825 .... I even upgraded to testing PHP 5.3.4 and still no go =]
|
|
|
12-21-2010, 02:56 PM
|
#7
|
LQ Newbie
Registered: Dec 2010
Distribution: Fedora 14, Ubuntu 10.10, OpenSUSE 11.3
Posts: 13
Original Poster
Rep:
|
After screwing around, I found out that php has a mail.log feature. I enabled it and got this:
|
|
|
12-21-2010, 03:26 PM
|
#8
|
LQ Newbie
Registered: Dec 2010
Distribution: Fedora 14, Ubuntu 10.10, OpenSUSE 11.3
Posts: 13
Original Poster
Rep:
|
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
|
|
|
12-21-2010, 04:11 PM
|
#9
|
LQ Newbie
Registered: Dec 2010
Distribution: Fedora 14, Ubuntu 10.10, OpenSUSE 11.3
Posts: 13
Original Poster
Rep:
|
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 =]
|
|
|
All times are GMT -5. The time now is 07:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|