apache2, php4 als cgi und bin_fmt - 40MB pro Aufruf?
Posted: 2003-07-05 00:39
Hallo,
ich habe jetzt apache 2.0.46 und php 4.3.2 als cgi installiert. Ein einfaches
braucht knapp 40 MB bei der Ausführung! Ist das richtig?
apache habe ich mit
und php mit
installiert.
In der httpd.conf steht für php nur
drin.
php per bin_fmt habe ich mit
aktiviert.
Hat jemand eine Idee?
ich habe jetzt apache 2.0.46 und php 4.3.2 als cgi installiert. Ein einfaches
Code: Select all
<?php
print "OK";
?>Code: Select all
root 19871 0.1 2.9 6360 1796 ? S 17:25 0:00 /usr/local/apache2/bin/httpd -k start
wwwrun 12551 0.2 2.7 6152 1660 ? S 17:25 0:01 _ [httpd]
wwwrun 28602 0.0 30.7 39420 18720 ? R 17:34 0:00 | _ /usr/bin/php test.php
wwwrun 22349 0.0 5.3 62884 3228 ? S 17:25 0:00 _ [httpd]
wwwrun 12084 0.0 5.3 62884 3228 ? S 17:25 0:00 | _ [httpd]
wwwrun 29407 0.0 5.3 62884 3228 ? S 17:25 0:00 | _ [httpd]Code: Select all
./configure
--prefix=/usr/local/apache2
--sysconfdir=/etc/httpd
--enable-auth-anon
--enable-ext-filter
--enable-logio
--enable-mime-magic
--enable-cern-meta
--enable-expires
--enable-headers
--enable-usertrack
--enable-unique-id
--enable-ssl
--enable-dav
--enable-info
--enable-cgi
--enable-dav-fs
--enable-speling
--enable-rewrite
--enable-proxy
--enable-proxy-connect
--enable-proxy-ftp
--enable-proxy-http
--enable-cache
--enable-disk-cache
--enable-mem-cache
--enable-suexec
--with-suexec-caller=wwwrun
--with-suexec-userdir=/home
--with-mpm=workerCode: Select all
./configure
--prefix=/usr
--sysconfdir=/etc
--enable-discard-path
--enable-fastcgi
--with-openssl
--with-zlib
--enable-bcmath
--with-bz2
--enable-calendar
--enable-dba
--with-gdbm
--enable-dio
--enable-ftp
--with-gd
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-zlib-dir=/usr
--with-freetype-dir=/usr
--enable-gd-native-ttf
--with-gettext
--enable-mbstring
--enable-mbregex
--with-mime-magic
--with-mysql
--disable-overload
--with-readline
--with-mm
--enable-sysvmsg
--enable-sysvsem
--enable-sysvshm
--with-expat-dir=/usr
--disable-debug
--enable-versioning
--enable-memory-limitIn der httpd.conf steht für php nur
Code: Select all
AddHandler cgi-script .cgi .php .php3 .php4php per bin_fmt habe ich mit
Code: Select all
cd /proc/sys/fs/binfmt_misc
echo ':PHP:E::php::/usr/bin/php:' > register
echo ':PHP3:E::php3::/usr/bin/php:' > register
echo ':PHP4:E::php4::/usr/bin/php:' > registerHat jemand eine Idee?