RE: [Linux-programlama] PHP&sendmail sorunu

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Mehmet Duran (mehmetd@kablonet.com.tr)
Date: Sat 10 Jun 2006 - 18:37:26 GMT


http://www.php.net/manual/en/ref.mail.php
 
Requirements
 
For the Mail functions to be available, PHP must have access to the sendmail
binary on your system during compile time. If you use another mail program,
such as qmail or postfix, be sure to use the appropriate sendmail wrappers
that come with them. PHP will first look for sendmail in your PATH, and then
in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib.
It's highly recommended to have sendmail available from your PATH. Also, the
user that compiled PHP must have permission to access the sendmail binary.
 
Sanirim yeniden build etmeniz gerekiyor.
 
-----Original Message-----
From: linux-programlama-bounces@liste.linux.org.tr
[mailto:linux-programlama-bounces@liste.linux.org.tr] On Behalf Of Emre
Aladağ
Sent: Saturday, June 10, 2006 9:27 PM
To: linux-programlama@liste.linux.org.tr
Subject: [Linux-programlama] PHP&sendmail sorunu
 
Merhaba,
 
Pardus kullanıyorum ve apache2, php5,mysql4.1 paketlerini svn'den inşa
ederek
kurdum. Sonra, e-posta göndermek isterken(php.netten alınmış örnek bir kod
ile) aşağıdaki sorunla karşılaştım:
 
Fatal error: Call to undefined function mail()
in /var/www/localhost/htdocs/mail.php on line 9
 
 
phpinfo(); da ise aşağıdaki bilgiler gözüküyordu.
sendmail_from no value no value
sendmail_path -t -i -t -i
 
postfix'i inşa edip kurdum, fakat sorunun düzelmediğini gördüm.
/etc/php/mod_php5/php.ini dosyasının sendmail_path kısmını
sendmail_path=/usr/sbin/sendmail
sendmail_path="/usr/sbin/sendmail"
sendmail_path=/usr/sbin
sendmail_path="/usr/sbin"
 
şeklinde teker teker değiştirdim fakat hiçbirinde phpinfo daki -t -i
değerlerini değiştiremedi ve hata da giderilmedi. Araştırdığıma göre
kimileri
sendmail_path=/usr/sbin/sendmail yazmak yeterli diyor, kimileri php'yi
yeniden derlemen gerek diyor. php'yi sildim ve tekrar inşa ederek kurdum,
sonuç değişmedi. Apache'yi yeniden başlatmayı denedim birçok sefer, yine
sonuç yok. Acaba ne yapmam gerek? tar.gz pakedinden make clean &&
./configure
&& make && make install ile fazladan parametreler kullanarak mı derlemem
gerek?
 
Teşekkürler...

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.