Results 1 to 10 of 10
Hi
I have installed Apache version 1.3.33 with php and I am getting this error on a page
Fatal error: Call to undefined function: mail() in /usr/local/apache/htdocs/includes/config.inc.php on line 88
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-09-2005 #1Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
Apache - Fatal error:... [Sloved]
Hi
I have installed Apache version 1.3.33 with php and I am getting this error on a page
Fatal error: Call to undefined function: mail() in /usr/local/apache/htdocs/includes/config.inc.php on line 88
can any one help me fix it?
Thanks
PayableOnDeath
- 02-09-2005 #2
- 02-09-2005 #3Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
am using php 4
with config
ThanksCode:./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --disable-debug \ --enable-ftp \ --enable-inline-optimization \ --enable-magic-quotes \ --enable-mbstring \ --enable-mm=shared \ --enable-safe-mode \ --enable-track-vars \ --enable-trans-sid \ --enable-wddx=shared \ --enable-xml \ --enable-sockets \ --with-dom \ --with-gd \ --with-gettext \ --with-mysql=/usr/local/mysql \ --with-regex=system \ --with-xml \ --with-zlib-dir=/usr/lib
PayableOnDeath
- 02-09-2005 #4
- 02-09-2005 #5Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
Cant find an enable mail in the ./configure --help
- 02-10-2005 #6
buggerrr, Alright, I'm gonna go sift through the php docs, and see what I can't dig up, can you also check to see what your mod_php was configured with?
I know this is a little 'Chicken or Egg"ish, but if you could get a copy of squirrelmail or phpBB, they both have nice configuration checkers in squirrelmail its /apacheroot/squirrelmail/configtest.ph p and the install script in phpBB i think test for mail functionality. Might give us a little better idea of where to look.
- 02-10-2005 #7Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
hi
Dont have mod_php have a mod_php4 thou am guessing its the same
and was do with the following config
Code:./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --disable-debug \ --enable-ftp \ --enable-inline-optimization \ --enable-magic-quotes \ --enable-mbstring \ --enable-mm=shared \ --enable-safe-mode \ --enable-track-vars \ --enable-trans-sid \ --enable-wddx=shared \ --enable-xml \ --enable-sockets \ --with-dom \ --with-gd \ --with-gettext \ --with-mysql=/usr/local/mysql \ --with-regex=system \ --with-xml \ --with-zlib-dir=/usr/lib
I was talking to someone and they said to install sendmail and recompile php I have done that and have re started apache but still not working
Thanks
PayableOnDeath
- 02-10-2005 #8Linux User
- Join Date
- Oct 2004
- Location
- /dev/random
- Posts
- 404
Maybe, this link would help

http://in.php.net/manual/en/ref.mail.php
This is the documentation of the mail() function from php.
Also, there is one more thing that you could check - is the mail() function disabled in your php.ini?
There is a directive in php.ini - disable_functions - which takes a comma-separated list of function names.
This is what my php.ini says:
As you can see, there is disable_classes too, if you plan to use some SMTP-related classes (like those from PEAR) and they've been disabled; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions =
; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_classes =
The Unforgiven
Registered Linux User #358564
- 02-10-2005 #9Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
hi
will have a look at that link
my php.ini is the same as your with nothing disabled
I just did a phpinfo file and it showed up
so it must be picking up something to do with the mailCode:sendmail_from no value sendmail_path /usr/sbin/sendmail serialize_precision 100 SMTP localhost smtp_port 25
could it have something to do with zend Optimizer? I have it installed aswell should have said about in the first post but just remembered about it
Thanks
PayableOnDeath
- 02-10-2005 #10Just Joined!
- Join Date
- Feb 2005
- Posts
- 33
I have fixed it now all working

Thanks all for your help


Reply With Quote
