d3nnis
Jul 21 2003, 07:27 PM
I upgraded yesterday and after upgrade, all my php mail() function failed
anybody can help me?
Try this :
http://forums.keeptouch.net/mailtest.php (try to send yourself a mail)
http://hostings.keeptouch.net/mailhosting.htm (try to sign up)
HELP!
d3nnis
Jul 21 2003, 08:46 PM
ok for those who have same problem with me, can try this :
/scripts/updatenow
/scripts/updatephpconf
i found this solution in cpanel forum, haven try yet as I am in the office now.
barryj
Jul 22 2003, 05:33 AM
Thanks for bringing this to light I just checked one of my forms and the mail doesn't get sent.
Does anybody know what is missing from the php configuration in the upgrade to cPanel 7 that disables the mail() function in php. Unlike d3nnis's example, I don't get an error on the page, but the email just doesn't send, and I I know the page processed it because the content is in the correct db for capturing the content.
What does the scripts/updatephpconf change? if it's a simple edit in php.ini I'd rather do it manually.
So any thoughts.
:confused:
-ToXiC-
Jul 22 2003, 05:51 AM
just a thought, but do you have
"Prevent the user 'nobody' from sending out mail to remote addresses (php and cgi scripts generally run as nobody if you are not using phpsuexec and suexec respectively.)"
enabled in the "Tweak Settings" section of WHM?
Mahmoud
Jul 22 2003, 06:09 AM
QUOTE
Originally posted by barryj
Thanks for bringing this to light I just checked one of my forms and the mail doesn't get sent.
Does anybody know what is missing from the php configuration in the upgrade to cPanel 7 that disables the mail() function in php. Unlike d3nnis's example, I don't get an error on the page, but the email just doesn't send, and I I know the page processed it because the content is in the correct db for capturing the content.
What does the scripts/updatephpconf change? if it's a simple edit in php.ini I'd rather do it manually.
So any thoughts.
:confused:
updatephpconf edits the php.ini sendmail and smtp settings. May be others.
You should run it. A better solution might be: set the update option to Stable Release (either Automatic or Manual as you like) and run the following from the Shell:
/scripts/upcp
This will upgrade the latest stable version. Also it will do any modifications required.
barryj
Jul 22 2003, 06:15 AM
Good points to both, thanks
d3nnis
Jul 22 2003, 07:24 AM
QUOTE
Originally posted by -ToXiC-
just a thought, but do you have
"[b]Prevent the user 'nobody' from sending out mail to remote addresses (php and cgi scripts generally run as nobody if you are not using phpsuexec and suexec respectively.)"
enabled in the "Tweak Settings" section of WHM? [/B]
no.
d3nnis
Jul 22 2003, 07:26 AM
QUOTE
Originally posted by Mahmoud
updatephpconf edits the php.ini sendmail and smtp settings. May be others.
You should run it. A better solution might be: set the update option to Stable Release (either Automatic or Manual as you like) and run the following from the Shell:
/scripts/upcp
This will upgrade the latest stable version. Also it will do any modifications required.
my earlier method fails... I still see that error msg.
will try yours and update.
Mahmoud
Jul 22 2003, 07:48 AM
If the problem is still there:
1. Can you give us a link to your phpinfo.php file ?
text file : phpinfo.php
content :
2. If you enabled php openbasedir under Tweak Security then re-enable it.
3. Open Ticket in Cpanel Support (Cpanel.net)
d3nnis
Jul 22 2003, 08:09 AM
QUOTE
Originally posted by Mahmoud
If the problem is still there:
1. Can you give us a link to your phpinfo.php file ?
text file : phpinfo.php
content :
2. If you enabled php openbasedir under Tweak Security then re-enable it.
3. Open Ticket in Cpanel Support (Cpanel.net)
http://forums.keeptouch.net/phpinfo.php
didn't work even after trying your method. Cpanel earlier told me to do this :
/scripts/updatenow
/scripts/updatephpconf
but it didn't work either.
d3nnis
Jul 22 2003, 08:12 AM
Mahmoud i did step 2, still didn't work... ARGGHHH! I am beginning to hate cpanel! If I know this would happen, I will rather stay put at cpanel 6

my mail function down for a day already!
Mahmoud
Jul 22 2003, 09:17 AM
in /usr/local/lib/php.ini
put a ";" before sendmail_from
and restart apache
Might also be a problem from your end ..I think you compiled php yourself? away from easyapache.
oanielsen
Jul 22 2003, 09:19 AM
I upgraded from 6.4.2 to the new stable release of 7 last night. All went well and is functioning properly. The only config I had to do was to set up the RBL in exim.conf, which is a little different then Exim3. All my forwarders, autoresponders, etc. seem to be working properly.
d3nnis
Jul 22 2003, 09:36 AM
QUOTE
Originally posted by Mahmoud
in /usr/local/lib/php.ini
put a ";" before sendmail_from
and restart apache
Might also be a problem from your end ..I think you compiled php yourself? away from easyapache.
yup i recompile apache myself... cos i dun want to use php built mysql client libraries...
i added the ; before the sendmail_from... but still having problem.
barryj
Jul 22 2003, 09:38 AM
Re my earlier post about not sending email, Wrong, I was checking the wrong email accounts!!!! How dumb is that. The plus side is that the upgrade I did on Sunday frm 6.4 to 7.2 was therefore all OK no problems at all. Mind you got to do the new Apache fix now as I upgraded about 2 hours before the notification about Apache came out.
d3nnis
Jul 22 2003, 09:53 AM
QUOTE
Originally posted by barryj
Re my earlier post about not sending email, Wrong, I was checking the wrong email accounts!!!! How dumb is that. The plus side is that the upgrade I did on Sunday frm 6.4 to 7.2 was therefore all OK no problems at all. Mind you got to do the new Apache fix now as I upgraded about 2 hours before the notification about Apache came out.
so u have the problem? And yeah.. I upgraded to Apache 1.3.28
Mahmoud
Jul 22 2003, 10:17 AM
Try to recompile apache using easyapache
then try the mail function
if mail() worked : So Cpanel package has mail() working.
Try to recompile php yourself and check again.
d3nnis
Jul 22 2003, 10:23 AM
QUOTE
Originally posted by Mahmoud
Try to recompile apache using easyapache
then try the mail function
if mail() worked : So Cpanel package has mail() working.
Try to recompile php yourself and check again.
okies i try the Update Apache in WHM and configure and see... using the default ticked options, adding GD and IMAP as well for my case.
Will revert here after I finish.
d3nnis
Jul 22 2003, 10:38 AM
QUOTE
Originally posted by d3nnis
okies i try the Update Apache in WHM and configure and see... using the default ticked options, adding GD and IMAP as well for my case.
Will revert here after I finish.
ok, I got it working now. Let me try recompiling manually instead.
daveman692
Jul 22 2003, 11:13 AM
I'm having no problems. Running Cpanel-7.2.1-STABLE_78. Recompiled Apache via WHM last night after the upgrade to this version of CPanel.
d3nnis
Jul 22 2003, 11:20 AM
okies i recompile manually, everything back to normal now!
*dennis is a happy man now!
thanks for everyone's attention and guidance especially Mahmoud
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.