From owner-freebsd-questions Tue Feb 29 15:37:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.cybersurf.net (smtp1.cybersurf.net [209.197.145.111]) by hub.freebsd.org (Postfix) with ESMTP id BC73A37BAB4 for ; Tue, 29 Feb 2000 15:37:27 -0800 (PST) (envelope-from 01031149@3web.net) Received: from webserver ([209.197.159.5]) by smtp1.cybersurf.net (Netscape Messaging Server 4.15) with SMTP id FQPTMD00.3ZL; Tue, 29 Feb 2000 16:37:25 -0700 Message-ID: <000801bf830e$2a943500$059fc5d1@webserver> From: "Duke Normandin" <01031149@3web.net> To: "Doug Young" , Subject: Re: Apache - PHP - mySQL Date: Tue, 29 Feb 2000 16:36:00 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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