LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-25-2006, 11:28 AM   #1
janus_tr
Member
 
Registered: Sep 2004
Posts: 30

Rep: Reputation: 15
mysqli installation error for php5 @unstable


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
 
Old 08-25-2006, 05:30 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
did you make sure PHP loaded mysqli.so
 
Old 08-25-2006, 05:31 PM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Also could you post your whole php.ini file. and the output of your phpinfo()
 
Old 08-25-2006, 05:52 PM   #4
janus_tr
Member
 
Registered: Sep 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Cannot post them here
The text that you have entered is too long (39749 characters). Please shorten it to 25000 characters long.

http://oguz.homelinux.com/~janus/
http://oguz.homelinux.com/~janus/php.ini

Last edited by janus_tr; 05-14-2007 at 01:45 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Performing Basic Tasks with MySQL 4.1 and Above, using mysqli with ... LXer Syndicated Linux News 0 07-02-2006 09:33 PM
how to enable php5 for mysql after installation irfanhab Programming 1 02-01-2006 10:03 AM
php5 installation hadiseh Linux - Software 4 12-13-2005 06:01 AM
Weird:there is no Makefile for php5 installation backpacker Linux - Software 2 11-03-2005 01:43 AM
PHP5 installation error jackster Linux - Software 2 02-01-2005 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration