Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All, I have XAMPP 1.7.7 installed on a RHEL 4 Server. I am aware this does not include the php-odbc module. php -v PHP 5.3.8 I know that upgrading ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2012
    Posts
    18

    Question PHP ODBC Module for XAMP 1.7.7 RHEL 4?


    Hi All,
    I have XAMPP 1.7.7 installed on a RHEL 4 Server. I am aware this does not include the php-odbc module.

    php -v
    PHP 5.3.8

    I know that upgrading to the latest XAMPP 1.8.0 does not fix this problem.

    I am wondering how I would compile this into XAMPP? As there is no option for "--with-unixODBC"


    There is NO --with-unixODBC option....

    /opt/lampp/bin/php-config


    I have downloaded the XAMPP Development Package except I am kind of clueless what do with this....

    I extract unixODBC-2.2.11.tar.gz The module I need to convert to a php.so

    I run phpize from the root dir ofd within the unixODBC-2.2.11



    phpize
    Cannot find config.m4.
    Make sure that you run '/opt/lampp/bin/phpize' in the top level source directory of the module


    Errors all over the net claim the reason for the above error is because it's not getting ran in the root dir where you have extracted the source.

    However I am running it in the /opt/lampp/unixODBC-2.2.11 as root and have chowned all files and folders as root. And have even added this into my PATH.


    However when I did extract unixODBC-2.2.11 it does not actually contain a config.m4, perhaps this cannot be converted???


    Are there other ways to create or add a php module into XAMPP?

    Please help....


    Thanks

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    i don't know if they are compatible with the php installed on your system, but you could try one of these RHEL 4 binary php-odbc packages:

    http://rpm.pbone.net/?stat=3&dist[]=42&search=php-odbc

  3. #3
    Just Joined!
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    33
    .....top level source directory.... if there is a difference.

  4. #4
    Just Joined!
    Join Date
    Mar 2012
    Posts
    18
    nicephotog...

    this time used unixODBC-2.3.1.tar.gz

    I extracted unixODBC-2.3.1 to /opt/unixODBC-2.3.1 which should be the top level source directory correct?

    cd /opt/unixODBC-2.3.1


    [root@test01 unixODBC-2.3.1]# phpize
    Cannot find config.m4.
    Make sure that you run '/opt/lampp/bin/phpize' in the top level source directory of the module

    I then try and run it from /opt/

    cd /opt

    phpize unixODBC-2.3.1/

    Cannot find config.m4.
    Make sure that you run '/opt/lampp/bin/phpize' in the top level source directory of the module


    I enter /opt/unixODBC-2.3.1 also there is no src dir....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •