[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get install php4-mysql



On Wed, Dec 19, 2007 at 12:50:49PM -0800, Jeppe wrote:
> Hi there,
> 
> First of all, I´m new to Debian and especially the apt-thing.

hi welcome, etc. DOn't worry, you'll soon be fully indoctrinated ;)

> I was going to try to enable apache2 with mysql. I already have a
> Postgres-DB but now for different reasons, I also wanted MySQL. I did
> not enable MySQL during the apache installation the first time. PHP
> (4.-something) is/was enabled and worked towards Postgres without any
> problems.
> 
> So, after having done a "apt-cache search mysql" and grep:ed for
> something containg php I found the package:
> 
> php4-mysql
> 
> I thought this must be the right thing for me, I mean, I want to be
> able to connect to MySQL with PHP4.
> 
> Well, I did "apt-get install php4-mysql" (I have included some of the
> output between ---- )
> 
> -------------------------------
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following extra packages will be installed:
>   apache-common libapache-mod-php4 libkrb53 libpq4 php4-common php4-
> pgsql

these package are being install because php4-mysql requires them. But
you're catching yourself here with a minor, important thing: there are
two apache structures in debian. apache and apache2. They are
diferent, mutually exclusive things. You need to decide if you want to
go apache or apache2 (probably the second) and then pay attention to
the deps of your packages so that you get the right ones. 

I'm not fully up on apache/php in debian, and what I suggest is just
based on a little searching of packages.debian.org. It appears that
php4 and apache are being migrated out and php5 and apache2 are coming
in. So spend a little time review the dependencies, grepping package
lists, or get to know the aptitude interface so you can see the
results of different actions. You'll be up to speed in no time. 

hth a little

A

Attachment: signature.asc
Description: Digital signature


Reply to: