I am on a fedora 1 linux box.

I wanted to connect to a MS SQL Server ODBC connection that connects to a MS Access DB.

It's my understanding that fedora 1 PHP doesnt have odbc compiled in.

I was running 4.3.8 php and apache 2.

So i grabbed the latest apache 2 and 4.3.10 php

I untarred both.

next I did this to apache 2.

./configure --enable-module=so
make
make install

then I changed dirs to the php-4.3.10

then

./configure --with-mysql --with-mssql --with-odbc --with-pgsql --with-apache2=../httpd-2.0.52 --with-apxs2=../httpd-2.0.52/support/apxs

which gives

checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /downloads/httpd-2.0.52/support/apxs follows:
./configure: line 5090: /downloads/httpd-2.0.52/support/apxs: Permission denied
configure: error: Aborting
[root@localhost php-4.3.10]# which perl
/usr/bin/perl
ls ../httpd-2.0.52/support/apx*                    
../httpd-2.0.52/support/apxs

what am I doing wrong?

I'm starting to lose hair!!! hahahha.

    Hi,

    either use --with-apache2 or --with-apxs

    --with-apxs: full path to the apxs binary if you want to compile php against an already installed apache2 server
    --with-apache2: if you want to compile php statically using the apache2 sources.

    But first check if there's a php_odbc rpm package available for fedora 1.

    Thomas

      Write a Reply...