Ad Widget

Collapse

NetBSD 6 PHP databases support Fail

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jusavard
    Member
    • Sep 2013
    • 48

    #1

    NetBSD 6 PHP databases support Fail

    Hi,
    I don't know why but the installation off zabbix under netbsd 6.1.5 does not seem to detect properly php-mysql ...

    Code:
    test-netebsd6# cat /etc/release | grep NetBSD
    NetBSD 6.1.5/amd64
    I compiled the various prerequisites from pkgsrc :

    Code:
    test-netebsd6# pkg_info
    pkg_install-20150508 Package management and administration tools for pkgsrc
    libarchive-3.1.2nb1 Library to read/create different archive formats
    pkgin-0.8.0nb1      Apt / yum like tool for managing pkgsrc binary packages
    libidn-1.32         Internationalized Domain Names command line tool
    wget-1.16.3nb1      Retrieve files from the 'net via HTTP and FTP
    digest-20121220     Message digest wrapper utility
    libtool-base-2.4.2nb9 Generic shared library support script (the script itself)
    perl-5.22.0         Practical Extraction and Report Language
    pkg-config-0.28     System for managing library compile/link flags
    apr-1.5.2           Apache Portable Runtime
    apr-util-1.5.4nb2   Apache Portable Runtime utilities
    pcre-8.37           Perl Compatible Regular Expressions library
    readline-6.3nb3     GNU library that can recall and edit previous input
    apache-2.4.16       Apache HTTP (Web) server, version 2.4
    gmake-4.1nb1        GNU version of 'make' utility
    sqlite3-3.8.10.2    SQL Database Engine in a C Library
    m4-1.4.17           GNU version of UNIX m4 macro language processor
    bison-3.0.4nb1      GNU yacc(1) replacement
    bash-4.3.039        The GNU Bourne Again Shell
    libexecinfo-1.1nb1  BSD Licensed clone of backtrace facility found in GNU libc
    ncurses-5.9nb4      CRT screen handling and optimization package
    curl-7.42.1nb2      Client that groks URLs
    cmake-3.2.3nb1      Cross platform make
    mariadb-client-5.5.43nb1 MarisDB 5.5, a free SQL database (client)
    mariadb-server-5.5.43 MariaDB 5.5, a free SQL database (server)
    xmlcatmgr-2.2nb1    XML and SGML catalog manager
    libxml2-2.9.2nb3    XML parser library from the GNOME project
    php-5.6.12          PHP Hypertext Preprocessor version 5.6
    ap24-php56-5.6.12   Apache (apache24) module for PHP5.6
    p5-gettext-1.05nb11 Perl5 module interface to C I18N functions
    help2man-1.46.6nb1  Generate simple manual pages from program output
    autoconf-2.69nb6    Generates automatic source code configuration scripts
    automake-1.15nb1    GNU Standards-compliant Makefile generator
    php56-mysql-5.6.12  PHP extension for MySQL databases
    php56-bcmath-5.6.12 PHP extension for bc-style arbitrary precision math
    yasm-1.3.0          Complete rewrite of the NASM assembler with BSD license
    libvpx-1.3.0nb4     On2 VP8 library from Google
    jbigkit-2.1         JBIG-KIT lossless image compression library
    osabi-NetBSD-6.1.5  Operating System version dummy-package
    x11-links-0.94      Shadow tree of links to native X11 headers and libraries
    jpeg-9anb1          IJG's jpeg compression utilities
    png-1.6.17          Library for manipulating PNG images
    fontconfig-2.11.1nb1 Library for configuring and customizing font access
    tiff-4.0.4beta      Library and tools for reading and writing TIFF data files
    gd-2.1.0nb3         Graphics library for the dynamic creation of images
    php56-mbstring-5.6.12 PHP extension for multibyte characters support
    php56-sockets-5.6.12 PHP extension for sockets support
    php56-gettext-5.6.12 PHP extension for gettext support
    php56-gd-5.6.12     PHP extension for GD graphics library
    Has you can see I added the necessary extension :

    Code:
    test-netebsd6# grep "extension" /usr/pkg/etc/php.ini | grep .so | grep -v ";"
    extension=mysql.so
    extension=bcmath.so
    extension=gd.so
    extension=sockets.so
    extension=mbstring.so
    extension=gettext.so
    test-netebsd6#
    PHP Module is also correctly loaded in httpd.conf :

    Code:
    test-netebsd6# cat /usr/pkg/etc/httpd/httpd.conf  | grep php
    LoadModule php5_module lib/httpd/mod_php5.so
    <FilesMatch \.php$>
          SetHandler application/x-httpd-php
        DirectoryIndex index.html index.php
        AddType application/x-httpd-php .php
    test-netebsd6#
    However the installer keep staing that no PHP Database support is found...
    I tried eith php54 al weel and it give me the same error.
    I also ( yep... sadly ) rebooted more than once.
    I must say I'm out of idea right now and open to almost anything
  • jusavard
    Member
    • Sep 2013
    • 48

    #2
    Might have a lead there .. I saw these configure parameter on my info.php page .....

    Configure Command:

    Code:
    './configure' '--with-config-file-path=/usr/pkg/etc' '--with-config-file-scan-dir=/usr/pkg/etc/php.d' '--sysconfdir=/usr/pkg/etc' '--localstatedir=/var' '--with-regex=system' '--without-mysql' '--without-iconv' '--without-pear' '--disable-posix' '--disable-dom' '--disable-opcache' '--disable-pdo' '--disable-json' '--enable-cgi' '--enable-mysqlnd' '--enable-xml' '--with-libxml-dir=/usr/pkg' '--enable-ipv6' '--with-openssl=/usr' '--without-readline' '--with-apxs2=/usr/pkg/bin/apxs' '--prefix=/usr/pkg' '--build=x86_64--netbsd' '--host=x86_64--netbsd' '--mandir=/usr/pkg/man' 'build_alias=x86_64--netbsd' 'host_alias=x86_64--netbsd' 'CC=gcc' 'CFLAGS=-O2 '-pthread' '-I/usr/pkg/include' '-I/usr/include' '-I/usr/pkg/include/apr-1'' 'LDFLAGS=-L/usr/pkg/lib '-Wl,-R/usr/pkg/lib' '-L/usr/lib' '-Wl,-R/usr/lib' '-pthread'' 'LIBS=' 'CPPFLAGS=-I/usr/pkg/include '-I/usr/include' '-I/usr/pkg/include/apr-1'' 'CXX=c++' 'CXXFLAGS=-O2 '-pthread' '-I/usr/pkg/include' '-I/usr/include' '-I/usr/pkg/include/apr-1'' 'CXXCPP=cpp'
    Weird...As you can see there is clearly a '--without-mysql'. Gotta dig on that

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      Please try install php56-mysqli.
      (not php56-mysql)

      Comment

      • jusavard
        Member
        • Sep 2013
        • 48

        #4
        Reinstalled whole Os and choose mysql insrtead of mariadb. I also compiled php-mysqli instead of php-mysql and it is now "working"... Well installation works but there is no rc script available (i will start a new thread about that).

        For your info :

        Code:
        netbsd6# pkg_info
        pkg_install-20150508 Package management and administration tools for pkgsrc
        libarchive-3.1.2nb1 Library to read/create different archive formats
        pkgin-0.8.0nb1      Apt / yum like tool for managing pkgsrc binary packages
        libidn-1.32         Internationalized Domain Names command line tool
        wget-1.16.3nb1      Retrieve files from the 'net via HTTP and FTP
        digest-20121220     Message digest wrapper utility
        libtool-base-2.4.2nb9 Generic shared library support script (the script itself)
        perl-5.22.0         Practical Extraction and Report Language
        pkg-config-0.28     System for managing library compile/link flags
        apr-1.5.2           Apache Portable Runtime
        apr-util-1.5.4nb2   Apache Portable Runtime utilities
        pcre-8.37           Perl Compatible Regular Expressions library
        readline-6.3nb3     GNU library that can recall and edit previous input
        apache-2.4.16       Apache HTTP (Web) server, version 2.4
        gmake-4.1nb1        GNU version of 'make' utility
        xmlcatmgr-2.2nb1    XML and SGML catalog manager
        libxml2-2.9.2nb3    XML parser library from the GNOME project
        php-5.6.12          PHP Hypertext Preprocessor version 5.6
        m4-1.4.17           GNU version of UNIX m4 macro language processor
        bison-3.0.4nb1      GNU yacc(1) replacement
        bash-4.3.039        The GNU Bourne Again Shell
        libexecinfo-1.1nb1  BSD Licensed clone of backtrace facility found in GNU libc
        ncurses-5.9nb4      CRT screen handling and optimization package
        curl-7.44.0         Client that groks URLs
        cmake-3.2.3nb1      Cross platform make
        mysql-client-5.5.44nb1 MySQL 5, a free SQL database (client)
        mysql-server-5.5.44 MySQL 5, a free SQL database (server)
        p5-gettext-1.05nb11 Perl5 module interface to C I18N functions
        help2man-1.46.6nb1  Generate simple manual pages from program output
        autoconf-2.69nb6    Generates automatic source code configuration scripts
        automake-1.15nb1    GNU Standards-compliant Makefile generator
        php56-mysql-5.6.12  PHP extension for MySQL databases
        ap24-php56-5.6.12   Apache (apache24) module for PHP5.6
        php56-bcmath-5.6.12 PHP extension for bc-style arbitrary precision math
        php56-mbstring-5.6.12 PHP extension for multibyte characters support
        php56-sockets-5.6.12 PHP extension for sockets support
        osabi-NetBSD-6.1.5  Operating System version dummy-package
        jpeg-9anb1          IJG's jpeg compression utilities
        x11-links-0.94      Shadow tree of links to native X11 headers and libraries
        png-1.6.17          Library for manipulating PNG images
        php56-gd-5.6.12     PHP extension for GD graphics library
        php56-gettext-5.6.12 PHP extension for gettext support
        php56-mysqli-5.6.12 PHP5 extension for MySQL 4.1 and later databases
        netbsd6#

        Comment

        Working...