Apache + mod_{php,perl,ssl} + MM: shared memory sizing

Apache + mod_{php,perl,ssl} + MM: shared memory sizing

Post by Thomas Ander » Wed, 26 Jul 2000 04:00:00



Unlike other people asking for help in this group I successfully
compiled Apache 1.3.12 with mod_ssl 2.6.5 (DSO), mod_php 3.0.16,
mod_perl 1.24, mod_fastcgi 2.2.4 and mod_auth_ora8 (DSO) on
Solaris 7. I also instructed Apache to use the shared memory library
MM 1.1.3 (EAPI_MM=SYSTEM for Apache; --with-mm for mod_php).

Unfortunately this doesn't work on my production box with default
shared memory settings, but runs fine on a test box which has non-default
shared memory settings in /etc/system.

Since these changes require a reboot, they should be chosen carefully.
Can anyone give proper shared memory sizing guidelines for Apache with
the given configuration?

Kind regards,
Thomas

--

Hahn-Meitner-Institut Berlin, Germany

 
 
 

Apache + mod_{php,perl,ssl} + MM: shared memory sizing

Post by Mads Toftu » Thu, 27 Jul 2000 04:00:00



Quote:>Unlike other people asking for help in this group I successfully
>compiled Apache 1.3.12 with mod_ssl 2.6.5 (DSO), mod_php 3.0.16,
>mod_perl 1.24, mod_fastcgi 2.2.4 and mod_auth_ora8 (DSO) on
>Solaris 7. I also instructed Apache to use the shared memory library
>MM 1.1.3 (EAPI_MM=SYSTEM for Apache; --with-mm for mod_php).

>Unfortunately this doesn't work on my production box with default
>shared memory settings, but runs fine on a test box which has non-default
>shared memory settings in /etc/system.

The trouble is that the mm test suite tries to figure out how much
memory it can get away with allocating on the system you're testing it
on. IIRC a standard max size on solaris 7 (ultra5) was about 1MB. But
having Oracle on the same server might get you in trouble - it is
usually a big user of shared memory.

vh

Mads Toftum, QDPH
som p? USENET repr?senterer sig selv og ingen andre.

 
 
 

1. Apache w/ PHP and SSL: w/ PHP OK - w/out PHP NOK

Hi,

        I've been assigned the task of building an Apache server with
support for Sybase, PHP4, OpenSSL 0.9.6/mod_ssl ?, and apache 1.3.14.

I followed Israel Denis Jr/Eugene Otto's "The Soothingly Seamless
Setup of Apache, SSL, MySQL, and PHP" at DevShed, but compilation of
apache fails if I add PHP.  The same procedure w/out PHP works OK
(either port 80 or port 443.) As a non-developper, I'm totally in the
dark.

[/home/samba/temp/Apache/apache_1.3.14]# SSL_BASE=../openssl-0.9.6
/configure --enable-module=ssl
--activate-module=src/modules/php4/libphp4.a --enable-module=php4
--prefix=/usr/local/apache

Configuring for Apache, Version 1.3.14
(snip)
-L/home/samba/temp/Apache/openssl-0.9.6  -o helpers/dummy
helpers/dummy.c   -rdynamic -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam  -ldl -lresolv -lm -ldl -lcrypt
-lnsl  -lresolv   -lm -lcrypt  -lssl -lcrypto
/usr/bin/ld: cannot find -lmodphp4
collect2: ld returned 1 exit status
make: *** [dummy] Error 1

Any idea?

Thx
FF.

2. ph and mosaic

3. Apache + mod-ssl + PHP or Perl script

4. Mouse problem

5. Apache Port - and SSL, PHP, Perl, FP

6. Anyone have porting plans for the BeBox?

7. How to compile Apache & Modules PHP PERL SSL Solution

8. ST-506 and IDE drives on the same machine ?

9. php, MySQL, SSL, & Perl

10. Apache configure shmget error - Unable to determine maximum shared memory segment size

11. error: MM:mm starting apache 1.3.9

12. Help with Apache SSL && Apache servers sharing content

13. Apache + SSL + PHP + IE 5.x, 6.0 Bug ?!?