Help - Search - Members - Calendar
Full Version: Cpanel 7 stable release buggy?
The Planet Forums > Control Panels > cPanel/WHM
d3nnis
I upgraded yesterday and after upgrade, all my php mail() function failed icon_sad.gif

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
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
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-
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
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
Good points to both, thanks
d3nnis
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
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. icon_sad.gif

will try yours and update.
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)
d3nnis
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
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 icon_sad.gif my mail function down for a day already!
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.
oanielsen
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
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. icon_sad.gif
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.
d3nnis
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 icon_sad.gif
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.
d3nnis
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
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
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
okies i recompile manually, everything back to normal now!

*dennis is a happy man now! icon_biggrin.gif

thanks for everyone's attention and guidance especially Mahmoud icon_smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.