Hi,
I have a linux 9 box with apache 2.0, mysql 4.0.15 and php 4.3.4 on
it. I installed sendmail after php. I then re-configured php as root,
but the mail() funtion still does not work. Here's what I did to
re-configure php:
#tar zxvf /usr/local/php-4.3.4.tar.gz
#cp /usr/local/php-4.3.4/php.ini-recommended /usr/local/lib/php.ini
modifed /usr/local/lib/php.ini: sendmail_path = /usr/sbin/sendmail
#rm -rf /usr/local/php
#cd /usr/local/php-4.3.4
#./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache/bin/apxs
#make
#make install
Then I tested mail() with /usr/local/apache/htdocs/mail.php file:
<?php
mail("lsun91125 @yahoo.com", "php emai", "test");
?>
My apache error_log showed segmentation fault:
[Fri Mar 05 16:51:11 2004] [notice] child pid 30452 exit signal
Segmentation fault (11)
Can anyone tell me what did I do wrong?
Thanks a lot!
Lu
I have a linux 9 box with apache 2.0, mysql 4.0.15 and php 4.3.4 on
it. I installed sendmail after php. I then re-configured php as root,
but the mail() funtion still does not work. Here's what I did to
re-configure php:
#tar zxvf /usr/local/php-4.3.4.tar.gz
#cp /usr/local/php-4.3.4/php.ini-recommended /usr/local/lib/php.ini
modifed /usr/local/lib/php.ini: sendmail_path = /usr/sbin/sendmail
#rm -rf /usr/local/php
#cd /usr/local/php-4.3.4
#./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache/bin/apxs
#make
#make install
Then I tested mail() with /usr/local/apache/htdocs/mail.php file:
<?php
mail("lsun91125 @yahoo.com", "php emai", "test");
?>
My apache error_log showed segmentation fault:
[Fri Mar 05 16:51:11 2004] [notice] child pid 30452 exit signal
Segmentation fault (11)
Can anyone tell me what did I do wrong?
Thanks a lot!
Lu