Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2001 19:31:57 +0200
From:      "Vahe Khachikyan" <vahe@fh-konstanz.de>
To:        "William Wong" <willwong@samurai.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: PHP4 and mySQL
Message-ID:  <00c301c0d4c0$1f0a4530$7c45fea9@vvl10>
References:  <005701c0d4a6$6f47a5c0$0300a8c0@anime.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
The best way to go is to get the source code for the latest
PHP release, latest Apache, and if you need also the latest mod_ssl.
accordingly
http://www.php.net
http://www.apache.org
http://www.modssl.org

Don't try to compile the mysql server unless you need something special
by default everything is OK just try to install the mysql-server package
3.23.x
(don't install the 3.22.x branch cause it missing some interesting futures)
this will recursively install the client part as well.
I have had some problems with running mysql compiled with optimization
it was crushing in some special cases....

First compile the apache with shared objects (See README.configure in apache
distribution)
the configure's coomand line should look something like this
--with-prefix=/usr/local/apache --enable-shared=max enable-modules=most
Reffer to README.configure in apache distribution. There will be two more
additional steps if you're
going to use mod_ssl.

After making and installing apache try to see if it's working ok.
The next step is to configure the PHP. This has a large ammount of
varations.
Depending on what you're going to use in PHP you'll may need to install some
additional software before compiling PHP. Try to look through the functions
documentation on PHP site to find out which software for which functions is
required.
In minimal case you'll need to have the following in your configure's
commmand line
--with-prefix=/path/to/PHP --with-apxs=/usr/local/apache/bin/apxs --with-mys
ql=/usr/local
This may differ depending on configuration you've used for apache. Mysql
should have it's libs
and headers under the /usr/local/ root-tree.
This will compile the PHP module for apache and install it
Don't forget to look in httpd.conf for any modifications concerning the
mime-type-handlers.

I'm not sure whether or not I've forgot something important.
I think this is the most flexible way of configuring the PHP with mysql and
Apache.

If you have any oter questions just drop me a mail.

--
Vahe
---

----- Original Message -----
From: "William Wong" <willwong@samurai.com>
To: <freebsd-questions@FreeBSD.ORG>
Sent: Friday, May 04, 2001 4:28 PM
Subject: PHP4 and mySQL


> Hi there,
>
> I purchased a book on PHP4 and mySQL and I'd like to install the
appropriate
> software on my box so I can follow the book.
>
> Is there a webpage that illustrates this process or can someone provide
the
> info here?
>
> I know I need to install apache, and the mod_php4 ports, but I'm not sure
> which mySQL port to install since there're so many.
>
> Thanks,
> - Will
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00c301c0d4c0$1f0a4530$7c45fea9>