Hi,
I'm running Debian Etch, with php 5.2.0-8+etch4, Apache/1.3.34
(Debian) mod_tsunami/3.0 mod_throttle/3.1.2 PHP/5.2.0-8+etch4 mod_fastcgi/2.4.2
mod_perl/1.29 mod_choke/0.06 mod_scgi/1.11.
Every time I change /etc/apache/modules.conf from
LoadModule php5_module /usr/lib/apache/1.3/libphp5.so
#Loadmodule suphp_module /usr/lib/apache/1.3/mod_suphp.so
to
#LoadModule php5_module /usr/lib/apache/1.3/libphp5.so
Loadmodule suphp_module /usr/lib/apache/1.3/mod_suphp.so
Apache will start up fine but as soon as I run a php script the apache
error log gives:
[Thu Jun 21 13:45:15 2007] [notice] Apache/1.3.34 (Debian) mod_tsunami/3.0
mod_throttle/3.1.2 mod_fastcgi/2.4.2 mod_perl/1.29 mod_choke/0.06 mod_scgi/1.11
con
figured -- resuming normal operations
[Thu Jun 21 13:45:18 2007] [error] [client 213.84.24.229] Premature end of
script headers: /home/sites/site19/web/phpini.php
/usr/bin/php-cgi: error while loading shared libraries: libc.so.6: failed to
map segment from shared object: Cannot allocate memory
The suphp.log gives
[Thu Jun 21 13:45:18 2007] [info] Executing "/home/sites/site19/web/phpini.php"
as UID 1028, GID 1021
and phpini.php looks like:
<?
phpinfo();
?>
When I run
php-cgi /home/sites/site19/web/phpini.php
on the command line the output displays fine.
When only the php5 module is loaded phpini.php works fine too.
/etc/suphp/suphp.conf
---------------
[global]
;Path to logfile
logfile=/var/log/suphp/suphp.log
;Loglevel
loglevel=info
;User Apache is running as
webserver_user=www-data
;Path all scripts have to be in
docroot=/home/sites
;Path to chroot() to before executing script
;chroot=/mychroot
; Security options
allow_file_group_writeable=true
allow_file_others_writeable=true
allow_directory_group_writeable=true
allow_directory_others_writeable=true
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true
;Send minor error messages to browser
errors_to_browser=true
;PATH environment variable
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0077
; Minimum UID
min_uid=100
; Minimum GID
min_gid=100
[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/bin/php-cgi
;Handler for CGI-scripts
x-suphp-cgi=execute:!self
-----------------
/etc/apache/conf.d/suphp.conf
----------------
<IfModule mod_suphp.c>
AddHandler x-httpd-php .php .php3 .php4 .php5 .phtml
suPHP_AddHandler x-httpd-php
suPHP_Engine on
# # Use a specific php config file (a dir which contains a php.ini file)
# suPHP_ConfigPath /etc/php4/cgi/suphp/
# # Tells mod_suphp NOT to handle requests with the type <mime-type>.
# suPHP_RemoveHandler <mime-type>
</IfModule>
---------------
/etc/apache/conf.d/php5.conf
------------------
<IfModule mod_php5.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>
------------------
If I load both modules I also get the out of memory error.
Anyone any ideas?
Cheers!
Robin
_______________________________________________
suPHP mailing list
[email protected]
http://lists.marsching.biz/mailman/listinfo/suphp