[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Installing PHP 4.0.6 with MSSQL support on a RaQ3



Hello,

I want to use PHP scripts to connect to a MSSQL database from our RaQ3. I
successfully configured PHP version 4.0.6 from the source code...

./configure
    --with-apxs
    --with-mysql
    --with-mssql=/usr/local/freetds
    --with-sybase=/usr/local/freetds
    --enable-track-vars

And then did...

make
make install

But make install fails! It fails when it tries to change the APXS
configuration. APXS complains it doesn't understand the -S option (it also
incorrectly reports /usr/bin/httpd as the Apache binary location).

make[1]: Entering directory `/usr/local/php/php-4.0.6'
/usr/local/php/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" &&
/usr/sbin/ap
xs -S LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
apxs:Warning: /usr/bin/httpd not found or not executable
apxs:Warning: Continuing anyway...
apxs:Warning: No shared object support for Apache
apxs:Warning: available under your platform. Make sure
apxs:Warning: the Apache module mod_so is compiled into
apxs:Warning: your server binary `/usr/bin/httpd'.
apsx:Warning: Continuing anyway...
apxs:Error: Unknown option: S

This is the standard Cobalt supplied and configured Apache 1.3.6, with APXS
sitting in /usr/sbin/apxs.

Any ideas? Can I change the script so that it doesn't try to -S on apxs? Can
I tell apxs to get over it? By the way, PHP 4.0.5 successfully configured
and installed on this RaQ just a few weeks ago, but I couldn't get 4.0.5 to
compile with MSSQL support. Thanks in advance for any and all help.


David,

First of all, there is a problem with the apxs script on the RaQ3- it points to the wrong httpd location. You will have to edit the file and change the $CFG_SBINDIR to the following:

my $CFG_SBINDIR       = '/usr/sbin';       # substituted via APACI install

How you managed to get PHP 4.0.5 installed as a DSO without this line, I have no idea!

Anyway,

the -S option is a definite problem with the PHP installer, and I have already filed a bug on the php.net site which you can view at:

http://www.php.net/bugs.php?id=11690

The apxs included with the RaQ3 does not support the -S parameter and I have no idea how to fix it.

Regards,

Glen Scott