Call to undefined function: mail()

Support/Development for PHP
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Chicken.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Chicken?
kilgore
Forum User
Forum User
Posts: 53
Joined: Sat Dec 04, 2004 4:37 am

Unread post by kilgore »

Chicken or not, I've just upgraded a psa754/FC3 test box with PHP 4.4.0 and mail() isn't available :roll:
Jason Lee
Forum User
Forum User
Posts: 87
Joined: Mon Dec 06, 2004 1:39 pm
Location: Winnipeg, Canada

Unread post by Jason Lee »

I replaced my php.ini file with php.ini.rpmsave and everything is working fine with 4.4.0. First I just replaced the the sendmail_path line with:

sendmail_path = /usr/sbin/sendmail -t -i

But then I was also having some mysql problems so I just replaced php.ini with php.ini.rpmsave
kilgore
Forum User
Forum User
Posts: 53
Joined: Sat Dec 04, 2004 4:37 am

Unread post by kilgore »

Jason Lee wrote:I replaced my php.ini file with php.ini.rpmsave and everything is working fine with 4.4.0. First I just replaced the the sendmail_path line with:

sendmail_path = /usr/sbin/sendmail -t -i

But then I was also having some mysql problems so I just replaced php.ini with php.ini.rpmsave
My sendmail path is ok and replacing the php.ini didn't solve my problem...
kilgore
Forum User
Forum User
Posts: 53
Joined: Sat Dec 04, 2004 4:37 am

Unread post by kilgore »

Problem fixed for me after upgrade to 4.4.0-3.

Thanks scott !

Kilgore
MrTeck
Forum User
Forum User
Posts: 16
Joined: Fri Dec 17, 2004 11:05 am

Unread post by MrTeck »

Having same problem that all. RH9 + Plesk 7.5.3
And installed packages:
[root@server tmp]# rpm -qa |grep php-
php-pgsql-4.4.0-3.rh90.art
php-imap-4.4.0-3.rh90.art
php-ldap-4.4.0-3.rh90.art
php-mbstring-4.4.0-3.rh90.art
php-pear-4.4.0-3.rh90.art
php-4.4.0-3.rh90.art
php-xslt-1.0-0
php-odbc-4.4.0-3.rh90.art
php-mysql-4.4.0-3.rh90.art
php-devel-4.4.0-3.rh90.art
The problem still when replace php.ini by php.ini.rpmnew or php.ini.saved_by_psa
MrTeck
Forum User
Forum User
Posts: 16
Joined: Fri Dec 17, 2004 11:05 am

Unread post by MrTeck »

Hmmm... I need help.
With 4.4.0-3 mail() still no working and I try with all php.ini....

How I can downgrate to 4.3.10 ?

I'm a bit noob with that, but I want learn. Anyone know how downgrade? Is a test server, but I want resolve this issue.

Tnx in advantage :)
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Which OS are you running? Did you restart httpd?
MrTeck
Forum User
Forum User
Posts: 16
Joined: Fri Dec 17, 2004 11:05 am

Unread post by MrTeck »

breun wrote:Which OS are you running? Did you restart httpd?
Rh9. And yes, restart apache when switch ini's.
MrTeck
Forum User
Forum User
Posts: 16
Joined: Fri Dec 17, 2004 11:05 am

Unread post by MrTeck »

I found this errors in /usr/local/psa/var/log/maillog
Oct 6 09:55:25 server qmail-queue: dwlib[9375]: files: cannot open tmpfile /var/drweb/spool/drweb.tmp.epFuzj - (13) Permission denied
Oct 6 09:55:25 server qmail-queue: cannot create temporary file - (13) Permission denied
Oct 6 09:55:25 server qmail-queue: drweb-qmail[9375]: cannot read message from stdin
Maybe can help to find a solution... happend always I try use mail() function.
MrTeck
Forum User
Forum User
Posts: 16
Joined: Fri Dec 17, 2004 11:05 am

Unread post by MrTeck »

MrTeck wrote:I found this errors in /usr/local/psa/var/log/maillog
Oct 6 09:55:25 server qmail-queue: dwlib[9375]: files: cannot open tmpfile /var/drweb/spool/drweb.tmp.epFuzj - (13) Permission denied
Oct 6 09:55:25 server qmail-queue: cannot create temporary file - (13) Permission denied
Oct 6 09:55:25 server qmail-queue: drweb-qmail[9375]: cannot read message from stdin
Maybe can help to find a solution... happend always I try use mail() function.
Well, finally I decide remove DrWeb:
yum remove drweb

Finally mail() function start work like a charm! :roll:
Post Reply