requirement to using Interbase/Firebird in PHP
| From: | NTPM) | Date: | Fri, 13 Aug 2004 06:40:44 +0000 |
| Subject: | requirement to using Interbase/Firebird in PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193670@lists.php.net to get a copy of this message | ||
Dear Sir/Madam,
I had spend many days search in the Internet to get the installation guide for
PHP with Interbase/Firebird. Unfortunately, I can't get the documentation which
is really can work for me.
For your information, I am using the SuSE 9.0. During the installation of SuSE,
I didn't install the Apache2 and php4 which are bundle in the installation CD. I
wish to compile manually the source code provided by Apache.org and php.net.
This will allow me to determine the installation directory.
Below are my installation steps:
1. Download apache_1.3.31.tar.gz, php-5.0.0.tar.gz,
FirebirdSS-1.5.0.4290-0.i686.rpm, gdbm-devel-1.8.3-124-i586.rpm
2. install the gdbm-devel.
3. Unzip the file into /usr/local/src for apache & php 5.
4. go to /usr/local/apache_1.3.31
5. ./configure --prefix=/usr/local/apache --enable-module=so --server-uid=nobody
6. make && make install
7. Start the apache service. I open the browser. In the url: http://localhost/.
It is work.
8. install the Firebird. The default location is /opt/firebird
9. go to /usr/local/php-5.0.0
10. ./configure --with-apxs=/usr/local/apache/bin/apxs
--with-interbase=/opt/firebird --with-xml
11. make && make install
12. Change the httpd.conf
-ServerName 127.0.0.1
-DocumentRoot /home/www
( I did create the www under home directory)
DirectoryIndex index.html index.htm index.php
LoadModule php5_module module/libphp5.so
AddType application/x-http-php .php .php3
AddType application/x-http-source .phps
13. cp php-ini-dist php-ini
14. change the php.ini
magic_quotes_sybase = on
15. Stop and start the Apache service.
16. Create a php page and save under /home/www
But I get the warning page when I test the php page. Please refer the attachment.
Could you tell me what is the problem?
Or what is the proper steps to configure the php run with Interbase?
Thank you.