Apache is OK with PHP as I can connect to a postgresql database with it via webadmin and via phrojekt. Have not found anyway to get the interbase.so or to comile it from source. When I compiled it from source, then Apache could not find it as could nothing else. (I uninstalled the SuSE PHP before this). I installed the SuSE PHP4 again along with the php-devel, and tried to create the interbase.so file per an email from the ibsupport mail list, still does not work I guess because SuSE has bastardized it so much. Tried many suggestions, none work for one reason or another including the apxs which does not exist. If I install the source files from php.net and compile, how do I get anything else to find the damned thing (php that is)? Art Jyry Kuukkanen wrote:
On Tue, 18 Feb 2003, Art Fore wrote:
How can I install the php-interbase extension with PHP? I have found no options for that in YAST and if I compile it from source from php.org with the option, it is not recognized by Apache. SuSE intalls it in /usr/share/php and the source installs it in /usr/local/lib/php.
Hello
Many applications, when compiled from source, installs by default under /usr/local/appname, but practically all distributors, such as Suse, does not like this approach that much. Distributions often install, say, Apache, into several folders: executable goes under /usr/sbin, libraries under /usr/lib, configuration files under /etc and so on.
Now, if you compile and install www.php.net version of PHP yourself, and if you want to have it installed with Apache installed by Suse's Yast, you have to specify these folders where configuration and Apache modules go.
I have done this with Suse 7.3 once, to test the procedure out, but otherwise I have always compiled both Apache and PHP from source by myself, as I have found it easier to manage.
Another thing is, that you better remove the mod_php.rpm installed by Suse Yast before compiling & installing this new PHP, as next time Suse makes update for mod_php available, it naturally installs it over your copy.
Compiling Apache and PHP to support Interbase is fairly trivial.
Apache (1.3.x): ./configure --enable-module=so make; make install
PHP4.x: ./configure --with-apxs=/usr/local/apache/bin/apxs \ --with-interbase/path/to/interbase --with-mysql (and so on with other opts) make; make install
Then you have to modify the httpd.conf under /usr/local/apache/conf to load the mod_php by LoadModule and associate .php with that module. This is explained in PHP's INSTALL file.
If you need more help, mail to this or suse-linux-e list.
Cheers,