Hi,
I want to use
mysqli extensions in php5.
I am running;
Apache/1.3.34, Debian Unstable, PHP/5.1.4-0.1, Mysql 4.1.
They all function well: installed with apt-get.
My phpinfo() page does not have a box for mysqli.
I tried the following solutions as SU.
apt-get install php5-mysqli
dpkg -i /home/janus/Desktop/php5.0-mysqli_5.0.5-0.8_i386.deb
Quote:
skynet:/home/janus# apt-get install php5-mysqli
Reading package lists... Done
Building dependency tree... Done
Note, selecting php5.0-mysqli for regex php5-mysqli
Package php5.0-mysqli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package php5.0-mysqli has no installation candidate
|
Then tried dpkg but did not work out either.
Quote:
skynet:/home/janus# dpkg -i /home/janus/Desktop/php5.0-mysqli_5.0.5-0.8_i386.deb
Selecting previously deselected package php5.0-mysqli.
(Reading database ... 130747 files and directories currently installed.)
Unpacking php5.0-mysqli (from .../php5.0-mysqli_5.0.5-0.8_i386.deb) ...
dpkg: dependency problems prevent configuration of php5.0-mysqli:
php5.0-mysqli depends on php5.0-common (= 5.0.5-0.8); however:
Package php5.0-common is not installed.
php5.0-mysqli depends on phpapi-20041030; however:
Package phpapi-20041030 is not installed.
php5.0-mysqli depends on libmysqlclient14; however:
Package libmysqlclient14 is not installed.
dpkg: error processing php5.0-mysqli (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php5.0-mysqli
|
Couldn't installed these packages manually either.
Meanwhile my php.ini file, mysqli section, is as follows;
cat /etc/php5/apache/php.ini
Quote:
; Maximum number of links. -1 means no limit.
mysqli.max_links = -1
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysqli.default_port = 3306
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysqli.default_socket =
; Default host for mysql_connect() (doesn't apply in safe mode).
mysqli.default_host =
; Default user for mysql_connect() (doesn't apply in safe mode).
mysqli.default_user =
; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysqli.default_pw =
; Allow or prevent reconnect
mysqli.reconnect = Off
|