openldap, sasl, apache chicken and egg problem (Was: Re: More problems with apache)

2004-06-24 Thread Thomas Lotterer
On Wed, Jun 23, 2004, Alexander Belck wrote:

Alex, I'm lazy.

 2) openldap - sasl - apache  chicken-and-egg problem
 
Please browse or search the mailing list (i.e. MARC), this was discussed
before. Hint: http://marc.theaimsgroup.com/?l=openpkg-usersm=107091431817004

--
[EMAIL PROTECTED], Cable  Wireless
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


apache suphp=yes problem (Was: Re: More from apache)

2004-06-24 Thread Thomas Lotterer
On Wed, Jun 23, 2004, Alexander Belck wrote:

Alex,

 [apache build problems with_suphp yes]
 at the end apache was build and a rpm -qip apache-...rpm includes:
   apache::with_suphp = yes
 
 Does I miss some prerequisit again ?
 Is mod_suphp build eaven with the above  messages ?
 
The rpm -qi shows the options you fed into the build process. This is
no warrant that everything worked as expected. In this case the ultimate
answer is what the apache binary lists as it's contents:

$ $PREFIX/sbin/apache -l | grep su
  mod_suphp.c
  suexec: enabled; valid wrapper $PREFIX/sbin/suexec

In case mod_suphp is missing please try the latest CURRENT package. We
always fix that first. We might already have. Otherwise we have to. If
the problem vanished in CURRENT we can merge the fix into the release
and provide a update package. Please tell me about your findings.

--
[EMAIL PROTECTED], Cable  Wireless
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Apache and PHP

2004-06-24 Thread Thomas Lotterer
On Wed, Jun 23, 2004, Alexander Belck wrote:

Alex,

 To build apache with php it requires php, so I build and installed php first.
 
only the with_suphp requires the php package. Even mod_php uses the php
that is embedded into the apache package and does not require the php
package.

  openpkg rpm -Uhv /opkg/RPM/PKG/apache-1.3.29-2.0.3.ix86-rhl7.3-opk.rpm
 Preparing...### [100%]
 file /opkg/bin/php from install of apache-1.3.29-2.0.3 conflicts with
 file from package php-4.3.4-2.0.0
 
 What am I doing wrong ?
 
I tried to reproduce the problem but failed. Building
apache-1.3.29-2.0.3 with_suphp, with_mod_php or both does not produce a
$PREFIX/bin/php file. Which options are you using? Please send me the
full command line.

--
[EMAIL PROTECTED], Cable  Wireless
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: openldap, sasl, apache chicken and egg problem (Was: Re: More problems with apache)

2004-06-24 Thread alexb
I agree with the discution in the mailing list, but what isnĀ“t discused is the
requirements of apache --with_php_ldap.

I will have my credential in OpenLDAP and will uses sasl to allow postfix check
authentications against the LDAP, so just for this I build
OpenLDAP --without_sasl
sasl --with_ldap

But when I try to build apache with php_ldap (where I presume this module will
allow php to access ldap records), it requires that OpenLDAP should be build
with_sasl (as if necessarily to access openldap thru php it needs to
authenticate the access using sasl) ??

Thanks,

Alex

Citando Thomas Lotterer [EMAIL PROTECTED]:

 On Wed, Jun 23, 2004, Alexander Belck wrote:

 Alex, I'm lazy.

  2) openldap - sasl - apache  chicken-and-egg problem
 
 Please browse or search the mailing list (i.e. MARC), this was discussed
 before. Hint: http://marc.theaimsgroup.com/?l=openpkg-usersm=107091431817004

 --
 [EMAIL PROTECTED], Cable  Wireless
 __
 The OpenPKG Projectwww.openpkg.org
 User Communication List  [EMAIL PROTECTED]






This message was sent using IMP, the Internet Messaging Program.
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Apache and PHP

2004-06-24 Thread Alexander Belck
As I thought I need to enable all php options from apache and it gots a to long
line to type, I changed the options in apache.spec. Runing
openpkg rpm -qip apache-1.3.29-2.0.3.ix86-rhl7.3-opk.rpm it shows:

apache::with_suexec = yes
apache::with_suexec_caller = opkg-n
apache::with_suexec_userdir = public_html
apache::with_suphp = yes
apache::with_suphp_caller = opkg-n
apache::with_suphp_phpcgi = /opkg/cgi/php
apache::with_mod_ssl = yes
apache::with_mod_perl = yes
apache::with_mod_php = yes
apache::with_mod_dav = yes
apache::with_mod_layout = yes
apache::with_mod_macro = yes
apache::with_mod_auth_ldap = yes
apache::with_mod_auth_mysql = yes
apache::with_mod_auth_pam = yes
apache::with_mod_gzip = yes
apache::with_mod_fastcgi = yes
apache::with_mod_throttle = yes
apache::with_mod_access_referer = yes
apache::with_mod_roaming = no
apache::with_mod_relocate = no
apache::with_mod_security = no
apache::with_mod_dosevasive = no
apache::with_mod_php_calendar = yes
apache::with_mod_php_mysql = yes
apache::with_mod_php_pgsql = yes
apache::with_mod_php_gd = yes
apache::with_mod_php_bdb = yes
apache::with_mod_php_debug = yes
apache::with_mod_php_pdflib = yes
apache::with_mod_php_zlib = yes
apache::with_mod_php_bzip2 = yes
apache::with_mod_php_ssl = yes
apache::with_mod_php_openldap = no
apache::with_mod_php_openldapsasl = yes
apache::with_mod_php_mm = yes
apache::with_mod_php_pcre = yes
apache::with_mod_php_ftp = yes
apache::with_mod_php_java = no
apache::with_mod_php_oci7 = no
apache::with_mod_php_oci8 = no
apache::with_mod_php_freetype = yes
apache::with_mod_php_gettext = yes
apache::with_mod_php_imap = yes
apache::with_mod_php_xml = yes
apache::with_mod_php_dom = yes
apache::with_mod_php_bc = yes
apache::with_mod_php_transsid = yes
apache::with_mod_php_curl = yes
apache::with_mod_php_mhash = yes
apache::with_mod_php_wddx = yes
apache::with_mod_php_gdbm = yes
apache::with_mod_php_versioning = yes
apache::with_mod_php_snmp = yes
apache::with_mod_php_odbc = yes
apache::with_mod_php_mbregex = yes
apache::with_mod_php_mbstring = yes
apache::with_mod_php_pear = yes
apache::with_mod_php_exif = yes
apache::with_mod_php_iconv = yes
apache::with_mod_php_sendmail = yes
apache::with_gdbm_ndbm = yes
apache::with_shared_core = no
apache::with_shared_chain = no
apache::with_debug = no
apache = 1.3.29-2.0.3

I hope this helps you to help me ;-(

Alex


Citando Thomas Lotterer [EMAIL PROTECTED]:

 On Wed, Jun 23, 2004, Alexander Belck wrote:

 Alex,

  To build apache with php it requires php, so I build and installed php
 first.
 
 only the with_suphp requires the php package. Even mod_php uses the php
 that is embedded into the apache package and does not require the php
 package.

   openpkg rpm -Uhv /opkg/RPM/PKG/apache-1.3.29-2.0.3.ix86-rhl7.3-opk.rpm
  Preparing...###
 [100%]
  file /opkg/bin/php from install of apache-1.3.29-2.0.3 conflicts
 with
  file from package php-4.3.4-2.0.0
 
  What am I doing wrong ?
 
 I tried to reproduce the problem but failed. Building
 apache-1.3.29-2.0.3 with_suphp, with_mod_php or both does not produce a
 $PREFIX/bin/php file. Which options are you using? Please send me the
 full command line.

 --
 [EMAIL PROTECTED], Cable  Wireless
 __
 The OpenPKG Projectwww.openpkg.org
 User Communication List  [EMAIL PROTECTED]



--
ATIX Tecnologia e Com Ltda
Tel.: +55-(11) 4667-5900


This message was sent using IMP, the Internet Messaging Program.
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: openldap, sasl, apache chicken and egg problem (Was: Re: More problems with apache)

2004-06-24 Thread Thomas Lotterer
On Thu, Jun 24, 2004, [EMAIL PROTECTED] wrote:

Re Alex,
 
  On Wed, Jun 23, 2004, Alexander Belck wrote:

 I will have my credential in OpenLDAP and will uses sasl to allow
 postfix check authentications against the LDAP, so just for this I
 build OpenLDAP --without_sasl sasl --with_ldap
 
I know a project that does exactly this, using apache/mod_auth_ldap to
login to a webinterface where mod_php_openldap changes user information
stored in openldap and postfix looking them up. Excerpts from the setup:

openldap-2.2.5-2.0.0 #no options
sasl-2.1.17-2.0.0 --with=ldap --with=login
postfix-2.0.18-2.0.0 --with=ldap --with=sasl --with=ssl
apache-1.3.29-2.0.0 \
--with=mod_auth_ldap \
--with=mod_php \
--with=mod_php_openldap \
--with=mod_ssl

Complete setup see ftp://ftp.zfos.org/brew/kolab/CFG/kolab-20040217-2.0.0/obmtool.conf

--
[EMAIL PROTECTED], Cable  Wireless
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: openldap, sasl, apache chicken and egg problem (Was: Re: More problems with apache)

2004-06-24 Thread Michael van Elst
On Thu, Jun 24, 2004 at 08:40:47AM -0300, [EMAIL PROTECTED] wrote:

 But when I try to build apache with php_ldap (where I presume this module will
 allow php to access ldap records), it requires that OpenLDAP should be build
 with_sasl (as if necessarily to access openldap thru php it needs to
 authenticate the access using sasl) ??

Building OpenLDAP with SASL is rarely required. It creates
a hen-and-egg problem with the usage of SASL with an LDAP
backend.

 openpkg build -Dwith_mod_php -Dwith_mod_php_openldap apache

should do the right thing regarding apache, php and ldap.
In particular it should require openldap without SASL support.


Greetings,
-- 
Michael van Elst
Internet: [EMAIL PROTECTED]
A potential Snark may lurk in every tree.
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Apache and PHP

2004-06-24 Thread Alexander Belck
Finaly I know how to reproduce the conflict between apache and php reporting:

/opkg/RPM/PKG/apache-1.3.29-2.0.3.ix86-rhl7.3-opk.rpm
Preparing...### [100%]
file /opkg/bin/php from install of apache-1.3.29-2.0.3 conflicts with
file from package php-4.3.4-2.0.0

This come up after building apache --with=mod_php_pear


I realy don't know how to proceed. I need to (at least) be able to install
HORDE, so I presum I need the php_modules allowing database access (mysql,
pgsql), imap access, , and specificaly I know that HORDE checks for some
modules of pear (So far I know, pear is growing fast and have his own module
instalation process).

I realy don't know witch pear_modules are build when compiling apache
--with=mod_php_pear and if I will be able to install new modules from pear when
they become avaible/needed.

For now I just whant to be able to have an apache+php capable tu run HORDE.

Thanks,

Alex



Citando Alexander Belck [EMAIL PROTECTED]

 As I thought I need to enable all php options from apache and it gots a to
 long
 line to type, I changed the options in apache.spec. Runing
 openpkg rpm -qip apache-1.3.29-2.0.3.ix86-rhl7.3-opk.rpm it shows:

 apache::with_suexec = yes
 apache::with_suexec_caller = opkg-n
 apache::with_suexec_userdir = public_html
 apache::with_suphp = yes
 apache::with_suphp_caller = opkg-n
 apache::with_suphp_phpcgi = /opkg/cgi/php
 apache::with_mod_ssl = yes
 apache::with_mod_perl = yes
 apache::with_mod_php = yes
 apache::with_mod_dav = yes
 apache::with_mod_layout = yes
 apache::with_mod_macro = yes
 apache::with_mod_auth_ldap = yes
 apache::with_mod_auth_mysql = yes
 apache::with_mod_auth_pam = yes
 apache::with_mod_gzip = yes
 apache::with_mod_fastcgi = yes
 apache::with_mod_throttle = yes
 apache::with_mod_access_referer = yes
 apache::with_mod_roaming = no
 apache::with_mod_relocate = no
 apache::with_mod_security = no
 apache::with_mod_dosevasive = no
 apache::with_mod_php_calendar = yes
 apache::with_mod_php_mysql = yes
 apache::with_mod_php_pgsql = yes
 apache::with_mod_php_gd = yes
 apache::with_mod_php_bdb = yes
 apache::with_mod_php_debug = yes
 apache::with_mod_php_pdflib = yes
 apache::with_mod_php_zlib = yes
 apache::with_mod_php_bzip2 = yes
 apache::with_mod_php_ssl = yes
 apache::with_mod_php_openldap = no
 apache::with_mod_php_openldapsasl = yes
 apache::with_mod_php_mm = yes
 apache::with_mod_php_pcre = yes
 apache::with_mod_php_ftp = yes
 apache::with_mod_php_java = no
 apache::with_mod_php_oci7 = no
 apache::with_mod_php_oci8 = no
 apache::with_mod_php_freetype = yes
 apache::with_mod_php_gettext = yes
 apache::with_mod_php_imap = yes
 apache::with_mod_php_xml = yes
 apache::with_mod_php_dom = yes
 apache::with_mod_php_bc = yes
 apache::with_mod_php_transsid = yes
 apache::with_mod_php_curl = yes
 apache::with_mod_php_mhash = yes
 apache::with_mod_php_wddx = yes
 apache::with_mod_php_gdbm = yes
 apache::with_mod_php_versioning = yes
 apache::with_mod_php_snmp = yes
 apache::with_mod_php_odbc = yes
 apache::with_mod_php_mbregex = yes
 apache::with_mod_php_mbstring = yes
 apache::with_mod_php_pear = yes
 apache::with_mod_php_exif = yes
 apache::with_mod_php_iconv = yes
 apache::with_mod_php_sendmail = yes
 apache::with_gdbm_ndbm = yes
 apache::with_shared_core = no
 apache::with_shared_chain = no
 apache::with_debug = no
 apache = 1.3.29-2.0.3

 I hope this helps you to help me ;-(

 Alex


 Citando Thomas Lotterer [EMAIL PROTECTED]:

  On Wed, Jun 23, 2004, Alexander Belck wrote:
 
  Alex,
 
   To build apache with php it requires php, so I build and installed php
  first.
  
  only the with_suphp requires the php package. Even mod_php uses the php
  that is embedded into the apache package and does not require the php
  package.
 
openpkg rpm -Uhv /opkg/RPM/PKG/apache-1.3.29-2.0.3.ix86-rhl7.3-opk.rpm
   Preparing...###
  [100%]
   file /opkg/bin/php from install of apache-1.3.29-2.0.3 conflicts
  with
   file from package php-4.3.4-2.0.0
  
   What am I doing wrong ?
  
  I tried to reproduce the problem but failed. Building
  apache-1.3.29-2.0.3 with_suphp, with_mod_php or both does not produce a
  $PREFIX/bin/php file. Which options are you using? Please send me the
  full command line.
 
  --
  [EMAIL PROTECTED], Cable  Wireless
  __
  The OpenPKG Projectwww.openpkg.org
  User Communication List  [EMAIL PROTECTED]
 


 --
 ATIX Tecnologia e Com Ltda
 Tel.: +55-(11) 4667-5900

 
 

static apache + mem question

2004-06-24 Thread Alexander Belck
Now that I'm geting near to have apache build, I did some comparision with
previus instalations (using distros modular apache).

There is realy a huge difference in size. The modular apche is about 300K, while
the one I build in OpenPkg is about 6M. Normaly I see several instances of
apache running (about 10 as setup in httpd.conf).
I was wundering if using OpenPkg static version of apache will consume about 60M
of my ram, or will it be smart enouth to share the common code and consume
juste a bit more than 1 copy of apache ?

I'm afraid that OpenPkg static aproch isn't a good aproach for an (eaven small)
ISP, where several instances of apache with lots of possible modules will be
needed.

I apreciate any comments.

Thanks,

Alex


This message was sent using IMP, the Internet Messaging Program.
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: static apache + mem question

2004-06-24 Thread Michael van Elst
On Thu, Jun 24, 2004 at 07:29:30PM -0300, Alexander Belck wrote:

 There is realy a huge difference in size. The modular apche is about 300K, while
 the one I build in OpenPkg is about 6M. Normaly I see several instances of
 apache running (about 10 as setup in httpd.conf).
 I was wundering if using OpenPkg static version of apache will consume about 60M
 of my ram, or will it be smart enouth to share the common code and consume
 juste a bit more than 1 copy of apache ?

It will share the common code but it won't share the data which
also grows with the number of modules.


 I'm afraid that OpenPkg static aproch isn't a good aproach for an (eaven small)
 ISP, where several instances of apache with lots of possible modules will be
 needed.

Two observations:

If your modular apache is about 300K then it doesn't load or use
all the modules. So why build them into the static binary ?

Building apache with all modules is a bad idea anyway. Most things
served will be static pages, but the process serving static
pages has to carry the weight of all the modules. You should think
about a more flexible approach and use several apache instances
together, each tailored for a specific purpose. With OpenPKG you
can do this easily by creating several OpenPKG instances.

N.B. Yes, this approach wastes disk space, but it helps a lot
maintaining such an installation which is more important even
for a small ISP.

Greetings,
-- 
Michael van Elst
Internet: [EMAIL PROTECTED]
A potential Snark may lurk in every tree.
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]