Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2006 09:50:20 -0700
From:      "Muhammad Omer Iqbal" <omer@omeriqbal.com>
To:        "'Muhammad Omer Iqbal'" <omer@omeriqbal.com>, "'Matthew Seaman'" <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: PHP5 and MySQL
Message-ID:  <000a01c6c9f8$e3aa77b0$0202a8c0@rakaposhi>

next in thread | raw e-mail | index | archive | help
And by the way, I already have MySQL 5.0 as a .tar in the mysql folder, so
probably all I need to do is let php5-mysql extension know how to access
that .tar file. 


-----Original Message-----
From: Muhammad Omer Iqbal [mailto:omer@omeriqbal.com] 
Sent: Sunday, August 27, 2006 9:48 AM
To: 'Matthew Seaman'
Cc: 'freebsd-questions@freebsd.org'
Subject: RE: PHP5 and MySQL

Thank you for the help!

It seems strange to have to install it again especially when I installed
php5-extensions with mysql and mysqli extensions.

When I tried to make, it tries to fetches MySQL 4.1 whereas I have 5.0
installed. How can I update the version?

I have updated Makefile.ext in PHP5 directory with DEFAULT_MYSQL_VER=50, but
to no avail.

-----Original Message-----
From: Matthew Seaman [mailto:m.seaman@infracaninophile.co.uk]
Sent: Sunday, August 27, 2006 7:13 AM
To: Muhammad Omer Iqbal
Cc: freebsd-questions@freebsd.org
Subject: Re: PHP5 and MySQL

>Muhammad Omer Iqbal wrote:

>> Looking through phpinfo, I do not find mysql or mysqli installed, 
>> even though I have enabled, remade and reinstalled both MySQL and 
>> PHP5. In fact, I think that my PHP5 is no longer remade, it just 
>> reconfigures it and reinstalls it because the build date shows as Aug
>> 22 even though I did it today and my server date shows as Aug 27. I 
>> installed both of these using the ports collection, but then I had to 
>> manually download MySQL because of versioning issues, and untar and 
>> install it

The PHP5 port has been divided into a fairly large number of modules.  To
add MySQL support within PHP5, simply install the databases/php5-mysql port.
(Or php5-mysqli, but only if you're running mysql-4.1.x)

Note that php5-mysql will cause one of the mysql-client ports to be
installed as a dependency -- unless you install one of the other versions
before hand, that will get you the mysql 5.0.x client.  You will still need
to install one of the mysql server ports, unless your DB is physically
hosted on a different machine.

Oh -- and the other trap for newbies is that you need to 'make config'
in the lang/php5 port and make sure the 'Apache' box is checked before
you'll get the Apache PHP5 module built and installed.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                      Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000a01c6c9f8$e3aa77b0$0202a8c0>