[php-maint] Problems with PHP5 Apache2 module on Lenny

David Gethings dgethings at juniper.net
Fri Aug 28 19:10:44 UTC 2009


Hi,

Various searches have found a duplicate problem nor an answer. Simply  
put I cannot get apache2 to start when the php5 module is loaded:

orion:/etc/apache2# /etc/init.d/apache2 start
Starting web server: apache2apache2: Syntax error on line 185 of /etc/ 
apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods- 
enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so  
into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol:  
xmlTextReaderReadInnerXml
  failed!

I've tried reinstalling libapache2-mod-php5 and libxml2. Neither  
action has made any difference. Are you able to provide any advice as  
to how to resolve this problem?

Below are details about my setup and the actions I've taken to try and  
resolve the problem. If you need any further information please don't  
hesitate to ask.

orion:/usr/lib/apache2# uname -a
Linux orion 2.6.26-2-686 #1 SMP Sun Jul 26 21:25:33 UTC 2009 i686 GNU/ 
Linux
orion:/etc/apache2# apt-get remove --purge libapache2-mod-php5Reading  
package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
   libapache2-mod-php5*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 5562kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 39095 files and directories currently installed.)
Removing libapache2-mod-php5 ...
Module php5 disabled.
Run '/etc/init.d/apache2 restart' to activate new configuration!
Purging configuration files for libapache2-mod-php5 ...
dpkg - warning: while removing libapache2-mod-php5, directory `/etc/ 
php5/apache2' not empty so not removed.
orion:/etc/apache2# ls /etc/php5/apache2/
orion:/etc/apache2# ls -la /etc/php5/apache2/
total 8
drwxr-xr-x 2 root root 4096 2009-08-28 20:32 .
drwxr-xr-x 6 root root 4096 2009-08-28 17:24 ..
-rw-r--r-- 1 root root    0 2009-08-28 20:32 .start
orion:/etc/apache2# rm -rf /etc/php5/apache2/
orion:/etc/apache2# apt-get clean
orion:/etc/apache2# apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
   php-pear
The following NEW packages will be installed:
   libapache2-mod-php5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2484kB of archives.
After this operation, 5562kB of additional disk space will be used.
Get:1 http://ftp.nl.debian.org stable/main libapache2-mod-php5  
5.2.6.dfsg.1-1+lenny3 [2484kB]
Fetched 2484kB in 0s (2853kB/s)
Selecting previously deselected package libapache2-mod-php5.
(Reading database ... 39088 files and directories currently installed.)
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.2.6.dfsg. 
1-1+lenny3_i386.deb) ...
Setting up libapache2-mod-php5 (5.2.6.dfsg.1-1+lenny3) ...

Creating config file /etc/php5/apache2/php.ini with new version
Your apache2 configuration is broken, so we're not restarting it for  
you.
orion:/etc/apache2# /etc/init.d/apache2 start
Starting web server: apache2apache2: Syntax error on line 185 of /etc/ 
apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods- 
enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so  
into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol:  
xmlTextReaderReadInnerXml
  failed!
orion:/etc/apache2# apache2ctl configtest
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax  
error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load / 
usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/ 
modules/libphp5.so: undefined symbol: xmlTextReaderReadInnerXml
orion:/etc/apache2# less +185 /etc/apache2/apache2.conf
orion:/etc/apache2# less /etc/apache2/mods-enabled/php5.load
orion:/etc/apache2# dpkg -s libapache2-mod-php5
Package: libapache2-mod-php5
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 5432
Maintainer: Debian PHP Maintainers <pkg-php-maint at lists.alioth.debian.org 
 >
Architecture: i386
Source: php5
Version: 5.2.6.dfsg.1-1+lenny3
Provides: phpapi-20060613+lfs
Depends: libbz2-1.0, libc6 (>= 2.7-1), libcomerr2 (>= 1.01), libdb4.6,  
libkrb53 (>= 1.6.dfsg.2), libpcre3 (>= 7.4), libssl0.9.8 (>=  
0.9.8f-5), libxml2 (>= 2.6.28), zlib1g (>= 1:1.1.4), mime-support,  
apache2-mpm-prefork (>> 2.0.52) | apache2-mpm-itk, apache2.2-common,  
php5-common (= 5.2.6.dfsg.1-1+lenny3), libmagic1, ucf, tzdata
Suggests: php-pear
Conflicts: libapache2-mod-php4, libapache2-mod-php5filter
Conffiles:
  /etc/apache2/mods-available/php5.load b9feb531674e956201af17f3d83ca123
  /etc/apache2/mods-available/php5.conf cd87e76b23ceecabf859edeb1353479a
Description: server-side, HTML-embedded scripting language (Apache 2  
module)
  This package provides the PHP5 module for the Apache 2 webserver (as
  found in the apache2-mpm-prefork package).  Please note that this  
package
  ONLY works with Apache's prefork MPM, as it is not compiled thread- 
safe.
  .
  The following extensions are built in: bcmath bz2 calendar ctype  
date dba
  dom exif filter ftp gettext hash iconv json libxml mbstring mime_magic
  openssl pcre posix Reflection session shmop SimpleXML soap sockets SPL
  standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader  
xmlwriter zip
  zlib.
  .
  PHP5 is an HTML-embedded scripting language. Much of its syntax is  
borrowed
  from C, Java and Perl with a couple of unique PHP-specific features  
thrown
  in. The goal of the language is to allow web developers to write  
dynamically
  generated pages quickly. This version of PHP5 was built with the  
Suhosin patch.
Homepage: http://www.php.net/
orion:/etc/apache2# apt-get --dry-run install libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
orion:/etc/apache2# apache2ctl -t
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax  
error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load / 
usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/ 
modules/libphp5.so: undefined symbol: xmlTextReaderReadInnerXml
orion:/etc/apache2# apt-get remove --purge libxml2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer  
required:
   libts-0.0-0 libxcb-render-util0 libpixman-1-0 libserf-0-0 libcairo2
   libpango1.0-common libxcb-render0 libdatrie0 libdirectfb-1.0-0  
fontconfig
   libxfont1 libpango1.0-0 libxft2 ca-certificates libthai0 libglib2.0- 
data
   libxrender1 libfontenc1 xfonts-utils libthai-data libglib2.0-0
   xfonts-encodings x-ttcidfont-conf
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
   libapache2-mod-php5* libneon27-gnutls* librrd4* librrds-perl*  
libsvn1*
   libxml2* libxml2-dbg* libxml2-dev* libxml2-utils* libxslt1.1*  
nfdump* php5*
   php5-cgi* php5-cli* php5-gmp* php5-xmlrpc* php5-xsl* python- 
subversion*
   subversion*
0 upgraded, 0 newly installed, 19 to remove and 0 not upgraded.
After this operation, 40.6MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 39095 files and directories currently installed.)
Removing php5 ...
Removing libapache2-mod-php5 ...
Module php5 disabled.
Run '/etc/init.d/apache2 restart' to activate new configuration!
Purging configuration files for libapache2-mod-php5 ...
dpkg - warning: while removing libapache2-mod-php5, directory `/etc/ 
php5/apache2' not empty so not removed.
Removing python-subversion ...
Purging configuration files for python-subversion ...
Removing subversion ...
Purging configuration files for subversion ...
Removing libsvn1 ...
Purging configuration files for libsvn1 ...
Removing libneon27-gnutls ...
Purging configuration files for libneon27-gnutls ...
Removing nfdump ...
Purging configuration files for nfdump ...
dpkg - warning: while removing nfdump, directory `/var/cache/nfdump'  
not empty so not removed.
Removing librrds-perl ...
Removing librrd4 ...
Purging configuration files for librrd4 ...
Removing libxml2-utils ...
Removing libxml2-dev ...
Removing libxml2-dbg ...
Removing php5-xsl ...
Purging configuration files for php5-xsl ...
Removing php5-xmlrpc ...
Purging configuration files for php5-xmlrpc ...
Removing php5-cli ...
Purging configuration files for php5-cli ...
Removing php5-gmp ...
Purging configuration files for php5-gmp ...
Removing php5-cgi ...
Purging configuration files for php5-cgi ...
Removing libxslt1.1 ...
Purging configuration files for libxslt1.1 ...
Removing libxml2 ...
Purging configuration files for libxml2 ...
Processing triggers for python-support ...
Processing triggers for man-db ...
orion:/etc/apache2# apt-get install libapache2-mod-php5 libneon27- 
gnutls librrd4 librrds-perl libsvn1 libxml2 libxml2-dbg libxml2-dev  
libxml2-utils libxslt1.1 nfdump php5 php5-cgi php5-cli php5-gmp php5- 
xmlrpc php5-xsl python-subversion subversion
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
   php-pear subversion-tools db4.6-util
The following NEW packages will be installed:
   libapache2-mod-php5 libneon27-gnutls librrd4 librrds-perl libsvn1  
libxml2
   libxml2-dbg libxml2-dev libxml2-utils libxslt1.1 nfdump php5 php5-cgi
   php5-cli php5-gmp php5-xmlrpc php5-xsl python-subversion subversion
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.0MB/16.5MB of archives.
After this operation, 40.6MB of additional disk space will be used.
Get:1 http://ftp.nl.debian.org stable/main libneon27-gnutls 0.28.2-6.1  
[115kB]
Get:2 http://ftp.nl.debian.org stable/main librrd4 1.3.1-4 [238kB]
Get:3 http://ftp.nl.debian.org stable/main librrds-perl 1.3.1-4 [77.6kB]
Get:4 http://ftp.nl.debian.org stable/main libxslt1.1 1.1.24-2 [227kB]
Get:5 http://ftp.nl.debian.org stable/main nfdump 1.5.7-5+b1 [313kB]
Get:6 http://ftp.nl.debian.org stable/main php5-cgi 5.2.6.dfsg. 
1-1+lenny3 [4910kB]
Get:7 http://security.debian.org lenny/updates/main libxml2  
2.6.32.dfsg-5+lenny1 [815kB]
Get:8 http://ftp.nl.debian.org stable/main php5 5.2.6.dfsg.1-1+lenny3  
[1078B]
Get:9 http://ftp.nl.debian.org stable/main php5-cli 5.2.6.dfsg. 
1-1+lenny3 [2475kB]
Get:10 http://ftp.nl.debian.org stable/main php5-gmp 5.2.6.dfsg. 
1-1+lenny3 [14.2kB]
Get:11 http://ftp.nl.debian.org stable/main php5-xmlrpc 5.2.6.dfsg. 
1-1+lenny3 [37.7kB]
Get:12 http://ftp.nl.debian.org stable/main php5-xsl 5.2.6.dfsg. 
1-1+lenny3 [12.8kB]
Get:13 http://security.debian.org lenny/updates/main libsvn1  
1.5.1dfsg1-4 [794kB]
Get:14 http://security.debian.org lenny/updates/main libxml2-dev  
2.6.32.dfsg-5+lenny1 [699kB]
Get:15 http://security.debian.org lenny/updates/main libxml2-utils  
2.6.32.dfsg-5+lenny1 [33.8kB]
Get:16 http://security.debian.org lenny/updates/main subversion  
1.5.1dfsg1-4 [1271kB]
Get:17 http://security.debian.org lenny/updates/main python-subversion  
1.5.1dfsg1-4 [1022kB]
Get:18 http://security.debian.org lenny/updates/main libxml2-dbg  
2.6.32.dfsg-5+lenny1 [944kB]
Fetched 14.0MB in 7s (1847kB/s)
Selecting previously deselected package libxml2.
(Reading database ... 38766 files and directories currently installed.)
Unpacking libxml2 (from .../libxml2_2.6.32.dfsg-5+lenny1_i386.deb) ...
Selecting previously deselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.2.6.dfsg. 
1-1+lenny3_i386.deb) ...
Selecting previously deselected package libneon27-gnutls.
Unpacking libneon27-gnutls (from .../libneon27- 
gnutls_0.28.2-6.1_i386.deb) ...
Selecting previously deselected package librrd4.
Unpacking librrd4 (from .../librrd4_1.3.1-4_i386.deb) ...
Selecting previously deselected package librrds-perl.
Unpacking librrds-perl (from .../librrds-perl_1.3.1-4_i386.deb) ...
Selecting previously deselected package libsvn1.
Unpacking libsvn1 (from .../libsvn1_1.5.1dfsg1-4_i386.deb) ...
Selecting previously deselected package libxml2-dev.
Unpacking libxml2-dev (from .../libxml2- 
dev_2.6.32.dfsg-5+lenny1_i386.deb) ...
Selecting previously deselected package libxml2-utils.
Unpacking libxml2-utils (from .../libxml2- 
utils_2.6.32.dfsg-5+lenny1_i386.deb) ...
Selecting previously deselected package libxslt1.1.
Unpacking libxslt1.1 (from .../libxslt1.1_1.1.24-2_i386.deb) ...
Selecting previously deselected package nfdump.
Unpacking nfdump (from .../nfdump_1.5.7-5+b1_i386.deb) ...
Selecting previously deselected package php5-cgi.
Unpacking php5-cgi (from .../php5-cgi_5.2.6.dfsg. 
1-1+lenny3_i386.deb) ...
Selecting previously deselected package php5.
Unpacking php5 (from .../php5_5.2.6.dfsg.1-1+lenny3_all.deb) ...
Selecting previously deselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.2.6.dfsg. 
1-1+lenny3_i386.deb) ...
Selecting previously deselected package php5-gmp.
Unpacking php5-gmp (from .../php5-gmp_5.2.6.dfsg. 
1-1+lenny3_i386.deb) ...
Selecting previously deselected package php5-xmlrpc.
Unpacking php5-xmlrpc (from .../php5-xmlrpc_5.2.6.dfsg. 
1-1+lenny3_i386.deb) ...
Selecting previously deselected package php5-xsl.
Unpacking php5-xsl (from .../php5-xsl_5.2.6.dfsg. 
1-1+lenny3_i386.deb) ...
Selecting previously deselected package subversion.
Unpacking subversion (from .../subversion_1.5.1dfsg1-4_i386.deb) ...
Selecting previously deselected package python-subversion.
Unpacking python-subversion (from .../python- 
subversion_1.5.1dfsg1-4_i386.deb) ...
Selecting previously deselected package libxml2-dbg.
Unpacking libxml2-dbg (from .../libxml2- 
dbg_2.6.32.dfsg-5+lenny1_i386.deb) ...
Processing triggers for man-db ...
Setting up libxml2 (2.6.32.dfsg-5+lenny1) ...
Setting up libapache2-mod-php5 (5.2.6.dfsg.1-1+lenny3) ...

Creating config file /etc/php5/apache2/php.ini with new version
Your apache2 configuration is broken, so we're not restarting it for  
you.
Setting up libneon27-gnutls (0.28.2-6.1) ...
Setting up librrd4 (1.3.1-4) ...
Setting up librrds-perl (1.3.1-4) ...
Setting up libsvn1 (1.5.1dfsg1-4) ...
Setting up libxml2-dev (2.6.32.dfsg-5+lenny1) ...
Setting up libxml2-utils (2.6.32.dfsg-5+lenny1) ...
Setting up libxslt1.1 (1.1.24-2) ...
Setting up nfdump (1.5.7-5+b1) ...
Setting up php5-cgi (5.2.6.dfsg.1-1+lenny3) ...

Creating config file /etc/php5/cgi/php.ini with new version
Setting up php5 (5.2.6.dfsg.1-1+lenny3) ...
Setting up php5-cli (5.2.6.dfsg.1-1+lenny3) ...

Creating config file /etc/php5/cli/php.ini with new version
Setting up php5-gmp (5.2.6.dfsg.1-1+lenny3) ...
Setting up php5-xmlrpc (5.2.6.dfsg.1-1+lenny3) ...
Setting up php5-xsl (5.2.6.dfsg.1-1+lenny3) ...
Setting up subversion (1.5.1dfsg1-4) ...
Setting up python-subversion (1.5.1dfsg1-4) ...
Setting up libxml2-dbg (2.6.32.dfsg-5+lenny1) ...
Processing triggers for python-support ...
orion:/etc/apache2# /etc/init.d/apache2 start
Starting web server: apache2apache2: Syntax error on line 185 of /etc/ 
apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods- 
enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so  
into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol:  
xmlTextReaderReadInnerXml
  failed!


-- 
Cheers

Dg




More information about the pkg-php-maint mailing list