[php-maint] Bug#322436: php4-mysql: 'extension=mysql.so' not added to /etc/php4/apache2/php.ini

Kevin Zembower kzembowe at jhuccp.org
Wed Aug 10 16:03:19 UTC 2005

Package: php4-mysql
Version: 4:4.3.10-15
Severity: important

I noticed that the file /etc/php4/apache2/php.ini does not contain the
line 'extension=mysql.so'. Other php.ini files, such as
/etc/php4/cli/php.ini, do. This was confusing to me, as running a php
file from the command line worked properly, but from the web server, it
said "can't find mysql_connect". Adding the line manually to the file
fixed the problem.

Not sure if this is a bug in php4-mysql, libapache2-mod-php4, or even if
it's a bug at all.

Thank you, Adam, for all your work with Apache and PHP.

-Kevin Zembower

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages php4-mysql depends on:
ii  debconf [debconf-2.0]    Debian configuration management sy
ii  libapache-mod-php4 [phpapi- 4:4.3.10-15  server-side, HTML-embedded scripti
ii  libapache2-mod-php4 [phpapi 4:4.3.10-15  server-side, HTML-embedded scripti
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libmysqlclient12            4.0.24-10    mysql database client library
ii  php4-cgi [phpapi-20020918]  4:4.3.10-15  server-side, HTML-embedded scripti
ii  php4-cli [phpapi-20020918]  4:4.3.10-15  command-line interpreter for the p
ii  php4-common                 4:4.3.10-15  Common files for packages built fr

-- debconf information:
  php4/extension_mysql_apache: true
  php4/extension_mysql_cli: true
  php4/add_extension: true
  php4/extension_mysql_cgi: true
  php4/remove_extension: true

More information about the pkg-php-maint mailing list