Re: PHP Extension - newbie question

From: Date: Wed, 15 Mar 2006 02:34:40 +0000
Subject: Re: PHP Extension - newbie question
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-22442@lists.php.net to get a copy of this message
> 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

« previous php.internals (#22442) next »