Seems that the function apache_request_headers is not compiled in with the ebuild of PHP 5.0, the problem doesnt appear when using PHP4 ou PHP 5.1, just 5.0 The error: Fatal error: Call to undefined function apache_response_headers() Everything else works fine... Thanks # cat /etc/portage/package.use net-www/apache mpm-prefork dev-lang/php mysql mysqli freetds dba gd session cli ctype pear xml2 pcre iconv truetype ftp cgi force-cgi-redirect cli xml xmlreader xmlrpc xmlwriter -gd-external simplexml sqllite # emerge --info Portage 2.0.54 (hardened/x86/2.6, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.14-hardened-r5 i686) ================================================================= System uname: 2.6.14-hardened-r5 i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-pipe -fomit-frame-pointer -O2 -march=athlon-xp" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-pipe -fomit-frame-pointer -O2 -march=athlon-xp" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo http://www.las.ic.unicamp.br/pub/gentoo" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage" USE="apache2 berkdb bzip2 crypt dlloader expat freetds gdbm gpm hardened idn imap jpeg mysql ncurses nls pam pcre perl php pic png postgres python readline samba sqlite ssl tcpd truetype udev usb userlocales x86 xml xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY phpinfo() PHP Version => 5.0.5-pl5-gentoo System => Linux joker 2.6.14-hardened-r5 #1 Wed Mar 22 19:05:38 GMT 2006 i686 Build Date => Apr 7 2006 12:08:35 Configure Command => './configure' '--prefix=/usr/lib/php5' '--sysconfdir=/etc' '--cache-file=./config.cache' '--enable-cli' '--disable-cgi' '--with-config-file-path=/etc/php/cli-php5' '--with-config-file-scan-dir=/etc/php/cli-php5/ext-active' '--without-pear' '--disable-bcmath' '--with-bz2' '--disable-calendar' '--without-curl' '--without-curlwrappers' '--disable-dbase' '--disable-exif' '--without-fbsql' '--without-fdftk' '--disable-filepro' '--enable-ftp' '--with-gettext' '--without-gmp' '--without-hwapi' '--without-informix' '--disable-ipv6' '--without-kerberos' '--enable-mbstring' '--with-mcrypt' '--disable-memory-limit' '--without-mhash' '--without-ming' '--without-mnogosearch' '--without-msql' '--without-mssql' '--with-ncurses' '--without-oci8' '--without-oci8-instant-client' '--without-oracle' '--with-openssl' '--with-openssl-dir=/usr' '--without-ovrimos' '--disable-pcntl' '--without-pfpro' '--with-pgsql' '--disable-posix' '--without-pspell' '--without-recode' '--disable-shmop' '--without-snmp' '--disable-soap' '--disable-sockets' '--disable-spl' '--without-sybase' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-tokenizer' '--disable-wddx' '--with-xmlrpc' '--without-xsl' '--with-zlib' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4' '--without-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir' '--with-gd' '--with-imap' '--with-imap-ssl' '--with-mysql=/usr/lib/mysql' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-readline' '--without-libedit' '--without-mm' '--enable-sqlite-utf8' '--with-pic' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /etc/php/cli-php5/php.ini Scan this dir for additional .ini files => /etc/php/cli-php5/ext-active PHP API => 20031224 PHP Extension => 20041030 Zend Extension => 220040412 Debug Build => no Thread Safety => disabled Zend Memory Manager => enabled IPv6 Support => disabled Registered PHP Streams => php, file, http, ftp, compress.bzip2, compress.zlib, https, ftps Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls This program makes use of the Zend Scripting Language Engine: Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies _______________________________________________________________________ Configuration PHP Core Directive => Local Value => Master Value allow_call_time_pass_reference => On => On allow_url_fopen => Off => Off always_populate_raw_post_data => Off => Off arg_separator.input => & => & arg_separator.output => & => & asp_tags => Off => Off auto_append_file => no value => no value auto_globals_jit => On => On auto_prepend_file => no value => no value browscap => no value => no value default_charset => no value => no value default_mimetype => text/html => text/html define_syslog_variables => Off => Off disable_classes => no value => no value disable_functions => no value => no value display_errors => On => On display_startup_errors => Off => Off doc_root => no value => no value docref_ext => no value => no value docref_root => no value => no value enable_dl => On => On error_append_string => no value => no value error_log => no value => no value error_prepend_string => no value => no value error_reporting => 2039 => 2039 expose_php => On => On extension_dir => /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030 => /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030 file_uploads => On => On highlight.bg => #FFFFFF => #FFFFFF highlight.comment => #FF8000 => #FF8000 highlight.default => #0000BB => #0000BB highlight.html => #000000 => #000000 highlight.keyword => #007700 => #007700 highlight.string => #DD0000 => #DD0000 html_errors => Off => On ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => Off include_path => .:/usr/share/php5:/usr/share/php => .:/usr/share/php5:/usr/share/php log_errors => Off => Off log_errors_max_len => 1024 => 1024 magic_quotes_gpc => On => On magic_quotes_runtime => Off => Off magic_quotes_sybase => Off => Off mail.force_extra_parameters => no value => no value max_execution_time => 0 => 30 max_input_time => 60 => 60 open_basedir => no value => no value output_buffering => 0 => no value output_handler => no value => no value post_max_size => 8M => 8M precision => 12 => 12 register_argc_argv => On => On register_globals => Off => Off register_long_arrays => On => On report_memleaks => On => On report_zend_debug => Off => Off safe_mode => Off => Off safe_mode_exec_dir => no value => no value safe_mode_gid => Off => Off safe_mode_include_dir => no value => no value sendmail_from => no value => no value sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i serialize_precision => 100 => 100 short_open_tag => On => On SMTP => localhost => localhost smtp_port => 25 => 25 sql.safe_mode => Off => Off track_errors => Off => Off unserialize_callback_func => no value => no value upload_max_filesize => 2M => 2M upload_tmp_dir => no value => no value user_dir => no value => no value variables_order => EGPCS => EGPCS xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off y2k_compliance => On => On zend.ze1_compatibility_mode => Off => Off bz2 BZip2 Support => Enabled BZip2 Version => 1.0.3, 15-Feb-2005 ctype ctype functions => enabled dba DBA support => enabled Supported handlers => gdbm cdb cdb_make db4 dom DOM/XML => enabled DOM/XML API Version => 20031129 libxml Version => 2.6.23 HTML Support => enabled XPath Support => enabled XPointer Support => enabled Schema Support => enabled RelaxNG Support => enabled ftp FTP support => enabled gd GD Support => enabled GD Version => bundled (2.0.28 compatible) FreeType Support => enabled FreeType Linkage => with freetype FreeType Version => 2.1.9 T1Lib Support => enabled GIF Read Support => enabled GIF Create Support => enabled JPG Support => enabled PNG Support => enabled WBMP Support => enabled XBM Support => enabled gettext GetText Support => enabled iconv iconv support => enabled iconv implementation => glibc iconv library version => 2.3.4 Directive => Local Value => Master Value iconv.input_encoding => ISO-8859-1 => ISO-8859-1 iconv.internal_encoding => ISO-8859-1 => ISO-8859-1 iconv.output_encoding => ISO-8859-1 => ISO-8859-1 imap IMAP c-Client Version => 2004 SSL Support => enabled libxml libXML support => active libXML Version => 2.6.23 libXML streams => enabled mbstring Multibyte Support => enabled Multibyte string engine => libmbfl Multibyte (japanese) regex support => enabled Multibyte regex (oniguruma) version => 3.7.0 mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Directive => Local Value => Master Value mbstring.detect_order => no value => no value mbstring.encoding_translation => Off => Off mbstring.func_overload => 0 => 0 mbstring.http_input => pass => pass mbstring.http_output => pass => pass mbstring.internal_encoding => ISO-8859-1 => no value mbstring.language => neutral => neutral mbstring.substitute_character => no value => no value mcrypt mcrypt support => enabled Version => 2.5.7 Api No => 20021217 Supported ciphers => cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream Directive => Local Value => Master Value mcrypt.algorithms_dir => no value => no value mcrypt.modes_dir => no value => no value mysql MySQL Support => enabled Active Persistent Links => 0 Active Links => 0 Client API version => 5.0.19 MYSQL_MODULE_TYPE => external MYSQL_SOCKET => /var/run/mysqld/mysqld.sock MYSQL_INCLUDE => -I/usr/include/mysql MYSQL_LIBS => -L/usr/lib -lmysqlclient Directive => Local Value => Master Value mysql.allow_persistent => On => On mysql.connect_timeout => 60 => 60 mysql.default_host => no value => no value mysql.default_password => no value => no value mysql.default_port => no value => no value mysql.default_socket => no value => no value mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => Off => Off mysqli MysqlI Support => enabled Client API version => 5.0.19 MYSQLI_SOCKET => /var/run/mysqld/mysqld.sock Directive => Local Value => Master Value mysqli.default_host => no value => no value mysqli.default_port => 3306 => 3306 mysqli.default_pw => no value => no value mysqli.default_socket => no value => no value mysqli.default_user => no value => no value mysqli.max_links => Unlimited => Unlimited mysqli.reconnect => Off => Off ncurses ncurses support => enabled ncurses library version => 5.4 color support => yes openssl OpenSSL support => enabled OpenSSL Version => OpenSSL 0.9.7e 25 Oct 2004 pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 6.2 01-Aug-2005 pgsql PostgreSQL Support => enabled PostgreSQL(libpq) Version => 8.1.3 Multibyte character support => enabled SSL support => enabled Active Persistent Links => 0 Active Links => 0 Directive => Local Value => Master Value pgsql.allow_persistent => On => On pgsql.auto_reset_persistent => Off => Off pgsql.ignore_notice => Off => Off pgsql.log_notice => Off => Off pgsql.max_links => Unlimited => Unlimited pgsql.max_persistent => Unlimited => Unlimited session Session Support => enabled Registered save handlers => files user sqlite Registered serializer handlers => php php_binary Directive => Local Value => Master Value session.auto_start => Off => Off session.bug_compat_42 => On => On session.bug_compat_warn => On => On session.cache_expire => 180 => 180 session.cache_limiter => nocache => nocache session.cookie_domain => no value => no value session.cookie_lifetime => 0 => 0 session.cookie_path => / => / session.cookie_secure => Off => Off session.entropy_file => no value => no value session.entropy_length => 0 => 0 session.gc_divisor => 100 => 100 session.gc_maxlifetime => 1440 => 1440 session.gc_probability => 1 => 1 session.hash_bits_per_character => 4 => 4 session.hash_function => 0 => 0 session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => no value => no value session.serialize_handler => php => php session.use_cookies => On => On session.use_only_cookies => Off => Off session.use_trans_sid => 0 => 0 SimpleXML Simplexml support => enabled Revision => $Revision: 1.139.2.4 $ Schema support => enabled SQLite SQLite support => enabled PECL Module version => 2.0-dev $Id: sqlite.c,v 1.146.2.7 2005/06/07 15:38:37 dmitry Exp $ SQLite Library => 2.8.14 SQLite Encoding => UTF-8 Directive => Local Value => Master Value sqlite.assoc_case => 0 => 0 standard Regex Library => Bundled library enabled Dynamic Library Support => enabled Path to sendmail => /usr/sbin/sendmail -t -i Directive => Local Value => Master Value assert.active => 1 => 1 assert.bail => 0 => 0 assert.callback => no value => no value assert.quiet_eval => 0 => 0 assert.warning => 1 => 1 auto_detect_line_endings => 0 => 0 date.default_latitude => 31.7667 => 31.7667 date.default_longitude => 35.2333 => 35.2333 date.sunrise_zenith => 90.83 => 90.83 date.sunset_zenith => 90.83 => 90.83 default_socket_timeout => 60 => 60 safe_mode_allowed_env_vars => PHP_ => PHP_ safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH url_rewriter.tags => a=href,area=href,frame=src,input=src,form=,fieldset= => a=href,area=href,frame=src,input=src,form=,fieldset= user_agent => no value => no value xml XML Support => active XML Namespace Support => active libxml2 Version => 2.6.23 xmlrpc core library version => xmlrpc-epi v. 0.51 php extension version => 0.51 author => Dan Libby homepage => http://xmlrpc-epi.sourceforge.net open sourced by => Epinions.com zlib ZLib Support => enabled Compiled Version => 1.2.3 Linked Version => 1.2.3 Directive => Local Value => Master Value zlib.output_compression => Off => Off zlib.output_compression_level => -1 => -1 zlib.output_handler => no value => no value Additional Modules Module Name readline Environment Variable => Value MANPATH => /usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/man HOSTNAME => joker TERM => xterm SHELL => /bin/bash SSH_CLIENT => ::ffff:200.193.46.188 52096 2278 OLDPWD => /var/www/sagu2.redix.com.br/sql SSH_TTY => /dev/pts/2 USER => root PAGER => /usr/bin/less CONFIG_PROTECT_MASK => /etc/terminfo MAIL => /var/mail/root PATH => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130 DISTCC_LOG => PWD => /var/www/sagu2.redix.com.br EDITOR => /bin/nano DISTCC_VERBOSE => 0 DCCC_PATH => /usr/lib/distcc/bin SHLVL => 1 HOME => /root LESS => -R PYTHONPATH => /usr/lib/portage/pym LOGNAME => root CVS_RSH => ssh GCC_SPECS => SSH_CONNECTION => ::ffff:200.193.46.188 52096 ::ffff:90.0.0.205 2278 PGDATA => /var/lib/postgresql/ LESSOPEN => |lesspipe.sh %s INFOPATH => /usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/info _ => /usr/lib/php5/bin/php PHP Variables Variable => Value _SERVER["MANPATH"] => /usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/man _SERVER["HOSTNAME"] => joker _SERVER["TERM"] => xterm _SERVER["SHELL"] => /bin/bash _SERVER["SSH_CLIENT"] => ::ffff:200.193.46.188 52096 2278 _SERVER["OLDPWD"] => /var/www/sagu2.redix.com.br/sql _SERVER["SSH_TTY"] => /dev/pts/2 _SERVER["USER"] => root _SERVER["PAGER"] => /usr/bin/less _SERVER["CONFIG_PROTECT_MASK"] => /etc/terminfo _SERVER["MAIL"] => /var/mail/root _SERVER["PATH"] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130 _SERVER["DISTCC_LOG"] => _SERVER["PWD"] => /var/www/sagu2.redix.com.br _SERVER["EDITOR"] => /bin/nano _SERVER["DISTCC_VERBOSE"] => 0 _SERVER["DCCC_PATH"] => /usr/lib/distcc/bin _SERVER["SHLVL"] => 1 _SERVER["HOME"] => /root _SERVER["LESS"] => -R _SERVER["PYTHONPATH"] => /usr/lib/portage/pym _SERVER["LOGNAME"] => root _SERVER["CVS_RSH"] => ssh _SERVER["GCC_SPECS"] => _SERVER["SSH_CONNECTION"] => ::ffff:200.193.46.188 52096 ::ffff:90.0.0.205 2278 _SERVER["PGDATA"] => /var/lib/postgresql/ _SERVER["LESSOPEN"] => |lesspipe.sh %s _SERVER["INFOPATH"] => /usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/info _SERVER["_"] => /usr/lib/php5/bin/php _SERVER["PHP_SELF"] => - _SERVER["SCRIPT_NAME"] => - _SERVER["SCRIPT_FILENAME"] => _SERVER["PATH_TRANSLATED"] => _SERVER["DOCUMENT_ROOT"] => _SERVER["argv"] => Array ( [0] => - ) _SERVER["argc"] => 1 _ENV["MANPATH"] => /usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/man _ENV["HOSTNAME"] => joker _ENV["TERM"] => xterm _ENV["SHELL"] => /bin/bash _ENV["SSH_CLIENT"] => ::ffff:200.193.46.188 52096 2278 _ENV["OLDPWD"] => /var/www/sagu2.redix.com.br/sql _ENV["SSH_TTY"] => /dev/pts/2 _ENV["USER"] => root _ENV["PAGER"] => /usr/bin/less _ENV["CONFIG_PROTECT_MASK"] => /etc/terminfo _ENV["MAIL"] => /var/mail/root _ENV["PATH"] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130 _ENV["DISTCC_LOG"] => _ENV["PWD"] => /var/www/sagu2.redix.com.br _ENV["EDITOR"] => /bin/nano _ENV["DISTCC_VERBOSE"] => 0 _ENV["DCCC_PATH"] => /usr/lib/distcc/bin _ENV["SHLVL"] => 1 _ENV["HOME"] => /root _ENV["LESS"] => -R _ENV["PYTHONPATH"] => /usr/lib/portage/pym _ENV["LOGNAME"] => root _ENV["CVS_RSH"] => ssh _ENV["GCC_SPECS"] => _ENV["SSH_CONNECTION"] => ::ffff:200.193.46.188 52096 ::ffff:90.0.0.205 2278 _ENV["PGDATA"] => /var/lib/postgresql/ _ENV["LESSOPEN"] => |lesspipe.sh %s _ENV["INFOPATH"] => /usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/info _ENV["_"] => /usr/lib/php5/bin/php PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
This has nothing in common with portage...
Closing.