Re: [OT] qmail php

2001-06-07 Thread shashi joshi

do a phpinfo() from your browser, and see what is sendmail_path configured to

if it is sendmail -t -i

that is your problem.

the sendmail wrapper of qmail does not take all options that sendmail takes.
remove all options and then it should work.

shashi joshi

--- Joel Uckelman [EMAIL PROTECTED] wrote:
 Quoth Bill Andersen:
  OK, I hate to go back on list with this, but since I got about
  30 replies, it's easier to go back to the list then to reply to each
  of you.  THANKS for all the replies though.
  
  Almost all the replies were did you set up links to qmail's sendmail
  wrapper... Yes!  I've had qmail running for 6 months without any
  problems.  Followed LWQ to the letter and have since re-verified the
  links are in place...
  
  [bill@mail bill]$ cd /usr/lib
  [bill@mail lib]$ ls -l sendmail
  lrwxrwxrwx1 root root   23 Jun  3 11:25 sendmail -
  /var/qmail/b
  in/sendmail
  [bill@mail lib]$ cd /usr/sbin
  [bill@mail sbin]$ ls -l sendmail
  lrwxrwxrwx1 root root   23 Jun  3 11:25 sendmail -
  /var/qmail/b
  in/sendmail
  
  I even did the following:
  
  1) Stopped qmail and removed the symlinks
  2) Installed sendmail (from RPM)
  3) Did a complete install (./configure blah blah, make, make install) for
 both PHP and Apache (per their instructions)
  4) Uninstalled sendmail using RPM
  5) Re-create the symlinks to qmail's sendmail
  6) Restarted qmail (actually restared the machine, qmail's working)
  
  STILL, get the error: mail() is not supported in the PHP build
  
  The only thing I haven't tried is the suggestion from Michael Geier below.
  Nothing personal Michael, but Hell, I don't want to have to start from
  scratch... surely I don't need to re-install Linux!
  
  Anybody else?
  
  Bill
  
  (OK, back to off list mode!)
 
 Hi, I've been using a PHP build from the source RPM on my box for a while 
 without any problems, though admittedly I haven't been doing anything that 
 would use the mail() function, so I might actually have the same problem 
 you do, I just don't know.
 
 Of course, my telling you that helps you not at all, so here's my 
 suggestion:
 
 (1) Test to see if the mail() function works with sendmail installed. I 
 know that involves some work, but maybe it's just broken in the version of 
 PHP you have.
 
 (2) If you've done (1) and found that mail() works, leave sendmail 
 installed, but just delete all of the sendmail binaries (so nothing can be 
 run) and put the symlinks back, etc. That way, all of the sendmail 
 libraries are still there and hopefully PHP will stop complaining.
 
 Admittedly, this is an ugly solution, but it *might* work if you can't fix 
 it any other way.
 
 -- 
 J.
 
 
 
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



[OT] qmail php

2001-06-06 Thread Bill Andersen

When I installed qmail, I obviously removed sendmail.  Now
when I build php(4) and try to use the the mail() function,
I get mail() not supported in this PHP build because
sendmail was not found during the configure (I assume).

The only reference I could find in the php archives was to
put sendmail_path=path to qmail-inject, but it didn't
work.

Has anyone had any luck using php with qmail?

Please reply off-list as I realize this is really a php issue.
The php mailing list is down per their web site, but I
figure someone on this list is bound to be running php...

 (Sorry!)

./bill

BTW: RH7, php4-apache



Re: [OT] qmail php

2001-06-06 Thread Gordon McDowall

I have a machine with php and qmail on it, but I can't remember which I
installed first ;o(
I will put a php form script on if you like to test it

- Original Message -
From: Bill Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 3:28 PM
Subject: [OT] qmail  php


 When I installed qmail, I obviously removed sendmail.  Now
 when I build php(4) and try to use the the mail() function,
 I get mail() not supported in this PHP build because
 sendmail was not found during the configure (I assume).

 The only reference I could find in the php archives was to
 put sendmail_path=path to qmail-inject, but it didn't
 work.

 Has anyone had any luck using php with qmail?

 Please reply off-list as I realize this is really a php issue.
 The php mailing list is down per their web site, but I
 figure someone on this list is bound to be running php...

  (Sorry!)

 ./bill

 BTW: RH7, php4-apache





RE: [OT] qmail php

2001-06-06 Thread Hank Wethington

Did you setup the symbolic link to the qmail-sendmail wrapper? qmail has a
sendmail wrapper so other programs will think sendmail is installed: (from
life with qmail)


ln -s /var/qmail/bin/sendmail /usr/lib
ln -s /var/qmail/bin/sendmail /usr/sbin

or wherever your sendmail is supposed to reside, but these are common
defaults.

Should make php think sendmail is installed. It worked for me.

Hank

-Original Message-
From: Gordon McDowall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 8:50 AM
To: Bill Andersen; [EMAIL PROTECTED]
Subject: Re: [OT] qmail  php


I have a machine with php and qmail on it, but I can't remember which I
installed first ;o(
I will put a php form script on if you like to test it

- Original Message -
From: Bill Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 3:28 PM
Subject: [OT] qmail  php


 When I installed qmail, I obviously removed sendmail.  Now
 when I build php(4) and try to use the the mail() function,
 I get mail() not supported in this PHP build because
 sendmail was not found during the configure (I assume).

 The only reference I could find in the php archives was to
 put sendmail_path=path to qmail-inject, but it didn't
 work.

 Has anyone had any luck using php with qmail?

 Please reply off-list as I realize this is really a php issue.
 The php mailing list is down per their web site, but I
 figure someone on this list is bound to be running php...

  (Sorry!)

 ./bill

 BTW: RH7, php4-apache





RE: [OT] qmail php

2001-06-06 Thread Michael Geier

you must install php pre-qmail.

PHP compiles with the sendmail executables and libraries.
so:
install os (w/sendmail)
install php
install qmail
follow the qmail faq for linking to qmail executables
change sendmail_path to /var/qmail/bin/qmail-inject in php.ini

This is how I did it and it works great on a machine with big.concurrency
patch and 400 remote processes.

-Original Message-
From: Gordon McDowall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:50 AM
To: Bill Andersen; [EMAIL PROTECTED]
Subject: Re: [OT] qmail  php


I have a machine with php and qmail on it, but I can't remember which I
installed first ;o(
I will put a php form script on if you like to test it

- Original Message -
From: Bill Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 3:28 PM
Subject: [OT] qmail  php


 When I installed qmail, I obviously removed sendmail.  Now
 when I build php(4) and try to use the the mail() function,
 I get mail() not supported in this PHP build because
 sendmail was not found during the configure (I assume).

 The only reference I could find in the php archives was to
 put sendmail_path=path to qmail-inject, but it didn't
 work.

 Has anyone had any luck using php with qmail?

 Please reply off-list as I realize this is really a php issue.
 The php mailing list is down per their web site, but I
 figure someone on this list is bound to be running php...

  (Sorry!)

 ./bill

 BTW: RH7, php4-apache





RE: [OT] qmail php

2001-06-06 Thread Jeremy Suo-Anttila

I have a machine with apache_mod_ssl+php4+mod_jk and the MTA is qmail and i
have yet to have any problems using php scripts on it. I am using a FreeBSD
4.1.1 Box and for the sendmail mailwrapper i used this

If the system undergoes a 'make world', its going to replace the sendmail
link to /var/qmail/bin/sendmail, qmail and break the package. Dj-vapor
kindly pointed out that linking to the qmail's sendmail binary
at/var/qmail/bin/sendmail is a not the best solution, there's an even more
fun way of doing it. He suggests using mailwrapper to link to qmail's
sendmail binary. First we'll link the old sendmail binary to mailwrapper.
Lastly, we'll edit /etc/mail/mailer.conf and replace the old sendmail binary
locations with qmail's sendmail binary.


# ln -s /usr/sbin/sendmail /usr/sbin/mailwrapper

# pico -w /etc/mail/mailer.conf

Replace the following lines:

   sendmail /usr/libexec/sendmail/sendmail
   send-mail /usr/libexec/sendmail/sendmail
   mailq /usr/libexec/sendmail/sendmail
   newaliases /usr/libexec/sendmail/sendmail

With:

   sendmail /var/qmail/bin/sendmail
   # send-mail /var/qmail/bin/sendmail -bp
   # mailq /var/qmail/bin/sendmail
   # newaliases /var/qmail/bin/newaliases

If you want more information on mailwrapper, then type the line below on
your FreeBSD machine.:

# man mailwrapper

If you don't want to use mailwrapper, then you can simply link the old
sendmail binary to qmail's sendmail binary using one of the methods below

Good Luck

Jps





-Original Message-
From: Gordon McDowall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:50 AM
To: Bill Andersen; [EMAIL PROTECTED]
Subject: Re: [OT] qmail  php


I have a machine with php and qmail on it, but I can't remember which I
installed first ;o(
I will put a php form script on if you like to test it

- Original Message -
From: Bill Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 3:28 PM
Subject: [OT] qmail  php


 When I installed qmail, I obviously removed sendmail.  Now
 when I build php(4) and try to use the the mail() function,
 I get mail() not supported in this PHP build because
 sendmail was not found during the configure (I assume).

 The only reference I could find in the php archives was to
 put sendmail_path=path to qmail-inject, but it didn't
 work.

 Has anyone had any luck using php with qmail?

 Please reply off-list as I realize this is really a php issue.
 The php mailing list is down per their web site, but I
 figure someone on this list is bound to be running php...

  (Sorry!)

 ./bill

 BTW: RH7, php4-apache






Re: [OT] qmail php

2001-06-06 Thread Balazs Nagy

On Wed, Jun 06 2001, Bill Andersen [EMAIL PROTECTED] wrote:

 When I installed qmail, I obviously removed sendmail.  Now
 when I build php(4) and try to use the the mail() function,
 I get mail() not supported in this PHP build because
 sendmail was not found during the configure (I assume).

'ts not just a PHP issue but a sendmail-compatibility issue either. It's
safe to link /var/qmail/bin/sendmail to /var/lib/sendmail and
/usr/sbin/sendmail (other crack-brained place could be /etc/sendmail) which
helps sendmail-aware software (like php and mailx) to run.
---jul



RE: [OT] qmail php

2001-06-06 Thread Bill Andersen

OK, I hate to go back on list with this, but since I got about
30 replies, it's easier to go back to the list then to reply to each
of you.  THANKS for all the replies though.

Almost all the replies were did you set up links to qmail's sendmail
wrapper... Yes!  I've had qmail running for 6 months without any
problems.  Followed LWQ to the letter and have since re-verified the
links are in place...

[bill@mail bill]$ cd /usr/lib
[bill@mail lib]$ ls -l sendmail
lrwxrwxrwx1 root root   23 Jun  3 11:25 sendmail -
/var/qmail/b
in/sendmail
[bill@mail lib]$ cd /usr/sbin
[bill@mail sbin]$ ls -l sendmail
lrwxrwxrwx1 root root   23 Jun  3 11:25 sendmail -
/var/qmail/b
in/sendmail

I even did the following:

1) Stopped qmail and removed the symlinks
2) Installed sendmail (from RPM)
3) Did a complete install (./configure blah blah, make, make install) for
   both PHP and Apache (per their instructions)
4) Uninstalled sendmail using RPM
5) Re-create the symlinks to qmail's sendmail
6) Restarted qmail (actually restared the machine, qmail's working)

STILL, get the error: mail() is not supported in the PHP build

The only thing I haven't tried is the suggestion from Michael Geier below.
Nothing personal Michael, but Hell, I don't want to have to start from
scratch... surely I don't need to re-install Linux!

Anybody else?

Bill

(OK, back to off list mode!)

-Original Message-
From: Michael Geier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 1:47 PM
To: Gordon McDowall; Bill Andersen; [EMAIL PROTECTED]
Subject: RE: [OT] qmail  php


you must install php pre-qmail.

PHP compiles with the sendmail executables and libraries.
so:
   install os (w/sendmail)
   install php
   install qmail
   follow the qmail faq for linking to qmail executables
   change sendmail_path to /var/qmail/bin/qmail-inject in php.ini

This is how I did it and it works great on a machine with big.concurrency
patch and 400 remote processes.





RE: [OT] qmail php

2001-06-06 Thread Bill Andersen

Jeremy,

  I got this two or three times, so I don't know if the list
  sent it more than once, or whether you just thought you hadn't
  sent it and decided to send it again.

  In any event, I'm not ignoring your reply, just thinking it
  through.  I'm not using FreeBSD, so I've got to find time to
  look into mailwrapper (if it's even available on RH Linux).
  I'm not at my Linux machine right now...

  Don't worry, I did get it... :)  Thanks.

Bill


-Original Message-
From: Jeremy Suo-Anttila [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 2:49 PM
To: Gordon McDowall; Bill Andersen; [EMAIL PROTECTED]
Subject: RE: [OT] qmail  php


I have a machine with apache_mod_ssl+php4+mod_jk and the MTA is qmail and i
have yet to have any problems using php scripts on it. I am using a FreeBSD
4.1.1 Box and for the sendmail mailwrapper i used this

If the system undergoes a 'make world', its going to replace the sendmail
link to /var/qmail/bin/sendmail, qmail and break the package. Dj-vapor
kindly pointed out that linking to the qmail's sendmail binary
at/var/qmail/bin/sendmail is a not the best solution, there's an even more
fun way of doing it. He suggests using mailwrapper to link to qmail's
sendmail binary. First we'll link the old sendmail binary to mailwrapper.
Lastly, we'll edit /etc/mail/mailer.conf and replace the old sendmail binary
locations with qmail's sendmail binary.


# ln -s /usr/sbin/sendmail /usr/sbin/mailwrapper

# pico -w /etc/mail/mailer.conf

Replace the following lines:

   sendmail /usr/libexec/sendmail/sendmail
   send-mail /usr/libexec/sendmail/sendmail
   mailq /usr/libexec/sendmail/sendmail
   newaliases /usr/libexec/sendmail/sendmail

With:

   sendmail /var/qmail/bin/sendmail
   # send-mail /var/qmail/bin/sendmail -bp
   # mailq /var/qmail/bin/sendmail
   # newaliases /var/qmail/bin/newaliases

If you want more information on mailwrapper, then type the line below on
your FreeBSD machine.:

# man mailwrapper

If you don't want to use mailwrapper, then you can simply link the old
sendmail binary to qmail's sendmail binary using one of the methods below

Good Luck

Jps





-Original Message-
From: Gordon McDowall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:50 AM
To: Bill Andersen; [EMAIL PROTECTED]
Subject: Re: [OT] qmail  php


I have a machine with php and qmail on it, but I can't remember which I
installed first ;o(
I will put a php form script on if you like to test it

- Original Message -
From: Bill Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 3:28 PM
Subject: [OT] qmail  php


 When I installed qmail, I obviously removed sendmail.  Now
 when I build php(4) and try to use the the mail() function,
 I get mail() not supported in this PHP build because
 sendmail was not found during the configure (I assume).

 The only reference I could find in the php archives was to
 put sendmail_path=path to qmail-inject, but it didn't
 work.

 Has anyone had any luck using php with qmail?

 Please reply off-list as I realize this is really a php issue.
 The php mailing list is down per their web site, but I
 figure someone on this list is bound to be running php...

  (Sorry!)

 ./bill

 BTW: RH7, php4-apache







Re: [OT] qmail php

2001-06-06 Thread Joel Uckelman

Quoth Bill Andersen:
 OK, I hate to go back on list with this, but since I got about
 30 replies, it's easier to go back to the list then to reply to each
 of you.  THANKS for all the replies though.
 
 Almost all the replies were did you set up links to qmail's sendmail
 wrapper... Yes!  I've had qmail running for 6 months without any
 problems.  Followed LWQ to the letter and have since re-verified the
 links are in place...
 
 [bill@mail bill]$ cd /usr/lib
 [bill@mail lib]$ ls -l sendmail
 lrwxrwxrwx1 root root   23 Jun  3 11:25 sendmail -
 /var/qmail/b
 in/sendmail
 [bill@mail lib]$ cd /usr/sbin
 [bill@mail sbin]$ ls -l sendmail
 lrwxrwxrwx1 root root   23 Jun  3 11:25 sendmail -
 /var/qmail/b
 in/sendmail
 
 I even did the following:
 
 1) Stopped qmail and removed the symlinks
 2) Installed sendmail (from RPM)
 3) Did a complete install (./configure blah blah, make, make install) for
both PHP and Apache (per their instructions)
 4) Uninstalled sendmail using RPM
 5) Re-create the symlinks to qmail's sendmail
 6) Restarted qmail (actually restared the machine, qmail's working)
 
 STILL, get the error: mail() is not supported in the PHP build
 
 The only thing I haven't tried is the suggestion from Michael Geier below.
 Nothing personal Michael, but Hell, I don't want to have to start from
 scratch... surely I don't need to re-install Linux!
 
 Anybody else?
 
 Bill
 
 (OK, back to off list mode!)

Hi, I've been using a PHP build from the source RPM on my box for a while 
without any problems, though admittedly I haven't been doing anything that 
would use the mail() function, so I might actually have the same problem 
you do, I just don't know.

Of course, my telling you that helps you not at all, so here's my 
suggestion:

(1) Test to see if the mail() function works with sendmail installed. I 
know that involves some work, but maybe it's just broken in the version of 
PHP you have.

(2) If you've done (1) and found that mail() works, leave sendmail 
installed, but just delete all of the sendmail binaries (so nothing can be 
run) and put the symlinks back, etc. That way, all of the sendmail 
libraries are still there and hopefully PHP will stop complaining.

Admittedly, this is an ugly solution, but it *might* work if you can't fix 
it any other way.

-- 
J.





Re: [OT] qmail php

2001-06-06 Thread cfm

On Wed, Jun 06, 2001 at 06:43:03PM -0500, Joel Uckelman wrote:
 Quoth Bill Andersen:
  OK, I hate to go back on list with this, but since I got about
  30 replies, it's easier to go back to the list then to reply to each
  of you.  THANKS for all the replies though.
  
  Almost all the replies were did you set up links to qmail's sendmail
  wrapper... Yes!  I've had qmail running for 6 months without any
  problems.  Followed LWQ to the letter and have since re-verified the
  links are in place...
...
  
  1) Stopped qmail and removed the symlinks
  2) Installed sendmail (from RPM)
  3) Did a complete install (./configure blah blah, make, make install) for
 both PHP and Apache (per their instructions)
  4) Uninstalled sendmail using RPM
  5) Re-create the symlinks to qmail's sendmail
  6) Restarted qmail (actually restared the machine, qmail's working)
  
  STILL, get the error: mail() is not supported in the PHP build
  
  The only thing I haven't tried is the suggestion from Michael Geier below.
  Nothing personal Michael, but Hell, I don't want to have to start from
  scratch... surely I don't need to re-install Linux!
  
  Anybody else?

Yeah, look at the source.  yeesh.


-- 

Christopher F. Miller, Publisher [EMAIL PROTECTED]
MaineStreet Communications, Inc 208 Portland Road, Gray, ME  04039
1.207.657.5078   http://www.maine.com/
Content management, electronic commerce, internet integration, Debian linux