Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Feb 2000 16:36:00 -0700
From:      "Duke Normandin" <01031149@3web.net>
To:        "Doug Young" <dougy@gargoyle.apana.org.au>, <freeBSD-questions@freeBSD.org>
Subject:   Re: Apache - PHP - mySQL
Message-ID:  <000801bf830e$2a943500$059fc5d1@webserver>

next in thread | raw e-mail | index | archive | help
On Monday, February 28, 2000 10:44 PM Doug Young

>From what I've read to date, it appears that the function of PHP is to
>simplify
>the interfacing between the database to the webserver ..... is this
>essentially correct or is there something else involved here ??


PHP is a scripting language that has been "streamlined" for
web-applications. As well, it has been written to interface directly
with various databases. PHP scripts can be written as "standalone"
scripts, i.e. not for web application, OR for web applications. The
PHP interpreter can be run as CGI or as an Apache module. With the
former, the web-server has to call the PHP interpreter every time a
script is run, resulting in a performance hit compared to running PHP
as a module, in which case PHP is there to be used at will.

If you chose to run PHP as an Apache module, you need to compile
Apache with PHP support. As for PHP itself, you need to compiled *it*
with the database support of your choice.

>Secondly, it appears that the order of installation / compilation is
>critical .... ie mySQL has to be installed first, then Apache / PHP ....
>otherwise nothing works properly ..... is this an accurate assessment ??


I use PHP extensively, but on a win95 development platform, so I've
never compiled PHP or Apache ( I use the binaries). However, if you
go to Deja.com and search the PHP list, you should come up with all
sorts of pointers.


Here's a post from the PHP list that I saved that might help you out:

----------------------->
For those who have trouble configuring PHP with MySQL support:

At http://www.mdb.ku.dk/tarvin/php-mysql/ I have put an Apache PHP
module with MySQL support.

The binary RPM is for Red Hat 6 on a Pentium (ordinary/Pro/II/III)
system.
It should automatically install PHP on a Red Hat 6 system, provided that
- Red Hat's own mod_php3 package is not already installed
   (Red Hat's PHP module is removed by running "rpm -e mod_php3")
- The following Red Hat packages are installed:
    * apache
    * gd
    * freetype
    * gdbm
- MySQL is installed

Well-built, precompiled MySQL RPM-packages are available as
ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-3.22/MySQ
L-3.22.22-1.i386.rpm
ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-3.22/MySQ
L-client-3.22.22-1.i386.rpm

--
Greetings from Troels Arvin, Copenhagen, Denmark
http://www.mdb.ku.dk/tarvin/

------------------------------------->

Hope that I've been of some help...

-duke





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?000801bf830e$2a943500$059fc5d1>