Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22442 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31736 invoked by uid 1010); 15 Mar 2006 02:34:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31721 invoked from network); 15 Mar 2006 02:34:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2006 02:34:43 -0000 X-Host-Fingerprint: 69.12.155.130 69-12-155-130.dsl.static.sonic.net Linux 2.4/2.6 Received: from ([69.12.155.130:1738] helo=pigeon.alphaweb.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FD/C6-55982-34D77144 for ; Tue, 14 Mar 2006 21:34:43 -0500 Received: from localhost ([127.0.0.1] helo=peiscg33m) by pigeon.alphaweb.net with smtp (Exim 4.10) id 1FJLHQ-00068I-00; Tue, 14 Mar 2006 17:58:28 -0800 Message-ID: <016e01c647d9$02bfaff0$5c8be5a9@ohr.berkeley.edu> Reply-To: "Sara Golemon" To: "George McLachlan" Cc: References: <441775B1.2060406@cis.strath.ac.uk> Date: Tue, 14 Mar 2006 18:34:40 -0800 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 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Subject: Re: PHP Extension - newbie question From: pollita@php.net ("Sara Golemon") > I ran a simple > ./configure --with-apxs2=/usr/bin/apxs2 --with-mysql=/usr/local/mysql > --with-mysqli=/usr/local/mysql/bin/mysql_config --with-zlib --with-gd > This'll build 'em staticly into a new mod_php5.so, but you want just the extension so you can plug it into your existing webserver build. First, forget about the chroot environment, you don't need it in order to build a loadable extension. Second, I'm assuming that when you installed PHP originally, you did so from source and that you've still got that source tree around somewhere. Correct me on what ever points I got wrong... cd /path/to/php_source/ext/mysqli phpize ./configure --with-mysqli=shared,/usr/local/mysql/bin/mysql_config make cp modules/mysqli.so /path/to/extension_dir/ Edit php.ini: Make sure your extension_dir setting exists and points to the same spot you put your new module. Add: extension=mysqli.so Restart apache Profit! -Sara