Re: MySQL 4.0.16 + PHP 4.3.4

2003-12-16 Thread The Bean
Thank you Jez! This was still a bit of a battle . . . until I grasped
that mod_php was expecting Apache to have been build from a port! Or,
at least it was expecting Apache's files to be located thus. So I killed
my existing Apache, installed a new one from a port, and that's that.
I hate the GNU layout but it's nothing some symbolic links can't handle.

Thanks again,
The Bean


--- Jez Hancock [EMAIL PROTECTED] wrote:
 On Mon, Dec 15, 2003 at 01:38:21PM -0800, Chris wrote:
  You know, it never occured to me that there were individual 
  Apache modules in the ports. Thanks Josh! Doesn't look like 
  it would help in this case, though, as the mod_php port is
  for Apache 1.3, and I need 2.0.
 I believe you can force the mod_php4 port to install for apache2 using
 'WITH_APACHE2'.  Having said this though last time I looked the mod_php4
 port automatically detects what version of apache you're running so you
 don't even need to use WITH_APACHE2.
 
 Here it is - in /usr/ports/lang/php4/Makefile (which the mod_php4 make
 process uses):
 
 .if exists(${LOCALBASE}/include/apache2/apr.h)
 WITH_APACHE2= yes
 .endif
 
 
 -- 
 Jez Hancock
  - System Administrator / PHP Developer
 
 http://munk.nu/
 http://jez.hancock-family.com/  - personal weblog
 http://ipfwstats.sf.net/- ipfw peruser traffic logging


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: MySQL 4.0.16 + PHP 4.3.4

2003-12-15 Thread Josh Paetzel
On Mon, Dec 15, 2003 at 10:35:54AM -0800, Chris wrote:
 Hello all, 
 
 I decided to upgrade to little test server to a more recent PHP  MySQL (as well as 
 Apache
 2.0.48). Everything is working, but I still have a problem. I installed mysql from 
 the port. I
 installed PHP from source, but no matter what I tried giving ./configure for the 
 --with-mysql
 value, I got complaints. When I tried the actual mysql install dir, I got complaints 
 that
 ./configure couldn't find a header file. When I tried the actual work subdir for the 
 mysql port
 itself, I got an error that it couldn't find the mysqlclient library.
 
 As a result I'm going with PHPs builtin mysql support -- unfortunately, the built-in 
 version is
 3.23.xx, and I really want 4.0.
 
 Google got me a suggestion that I need to download something called mysql-devel for 
 my version of
 mysql. However, I've only found this as an RPM, and I'm wondering if what I read 
 before was just a
 Linux answer.
 
 Does anyone know what to do?
 
 Thanks,
 The Bean
 

Just for kicks I tried installing /usr/ports/www/mod_php4 out of the ports on 
a cleanly installed 5.2-CURRENT box with a ports cvsup from about 3 days ago.  
It immediately installed apache 1.3.29, then did this: 

===   Returning to build of mod_php4-4.3.4_2,1
===   mod_php4-4.3.4_2,1 depends on executable: bison - found
===   mod_php4-4.3.4_2,1 depends on shared library: expat.4 - found
===   mod_php4-4.3.4_2,1 depends on shared library: mysqlclient.12 - not found
===Verifying install for mysqlclient.12 in 
/usr/ports/databases/mysql40-client
 mysql-4.0.16.tar.gz doesn't seem to exist in /usr/ports/distfiles/.

Isn't that the 4.x support that you're looking for?

Josh Paetzel

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: MySQL 4.0.16 + PHP 4.3.4

2003-12-15 Thread Chris
You know, it never occured to me that there were individual 
Apache modules in the ports. Thanks Josh! Doesn't look like 
it would help in this case, though, as the mod_php port is
for Apache 1.3, and I need 2.0.

I noticed that a dependency of the port is mysql_client,
not mysql_server (which makes perfect sense now that I think
about it). Is it possible that I need to do

./configure --with-mysql=/usr/ports/mysql4-client/work

to get it to work? Or, download the mysql 4.0.16 client 
source code, untar it, and point ./configure there? Seems wasteful.
I'd happily do something more efficient and preferred.

Any thoughts,
T.B.

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: MySQL 4.0.16 + PHP 4.3.4

2003-12-15 Thread Jez Hancock
On Mon, Dec 15, 2003 at 01:38:21PM -0800, Chris wrote:
 You know, it never occured to me that there were individual 
 Apache modules in the ports. Thanks Josh! Doesn't look like 
 it would help in this case, though, as the mod_php port is
 for Apache 1.3, and I need 2.0.
I believe you can force the mod_php4 port to install for apache2 using
'WITH_APACHE2'.  Having said this though last time I looked the mod_php4
port automatically detects what version of apache you're running so you
don't even need to use WITH_APACHE2.

Here it is - in /usr/ports/lang/php4/Makefile (which the mod_php4 make
process uses):

.if exists(${LOCALBASE}/include/apache2/apr.h)
WITH_APACHE2=   yes
.endif


-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
http://jez.hancock-family.com/  - personal weblog
http://ipfwstats.sf.net/- ipfw peruser traffic logging
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]