IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Solaris Discussion :

PHP avec PDO ?


Sujet :

Solaris

  1. #1
    Membre régulier

    Profil pro
    Inscrit en
    Juin 2004
    Messages
    94
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2004
    Messages : 94
    Points : 120
    Points
    120
    Par défaut PHP avec PDO ?
    Bonjour,

    Je dois installer un serveur web sous Solaris 11 et je pense avoir tout bien fait, mais j'ai un superbe bug:
    Fatal error: Class 'PDO' not found in /opt/csw/apache2/share/htdocs/copix/core/CopixConfig.class.php on line 622
    Si je fais un phpinfo(), je vois pourtant:
    '/home/bwalton/opencsw/php5/trunk/work/solaris10-i386/build-isa-pentium_pro-sapi-ap2/php-5.3.10/configure' '--prefix=/opt/csw/php5' '--sysconfdir=/etc/opt/csw/php5' '--enable-simplexml' '--disable-static' '--enable-xml' '--enable-intl' '--with-libxml-dir=/opt/csw' '--with-config-file-path=/etc/opt/csw/php5' '--with-config-file-scan-dir=/etc/opt/csw/php5/conf.d' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-ctype=shared' '--enable-dba=shared' '--enable-dom=shared' '--enable-exif=shared' '--enable-filter=shared' '--enable-ftp=shared' '--enable-gd-jis-conv' '--enable-gd-native-ttf' '--enable-hash=shared' '--enable-json=shared' '--enable-magic-quotes' '--enable-mbstring=shared' '--enable-pcntl=shared' '--enable-pdo=shared' '--enable-phar=shared' '--enable-posix=shared' '--enable-session=shared' '--enable-shmop=shared' '--enable-soap=shared' '--enable-sockets=shared' '--enable-sqlite-utf8' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-tokenizer=shared' '--enable-wddx=shared' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--enable-zip=shared' '--with-bz2=shared,/opt/csw' '--with-curl=shared,/opt/csw' '--with-curlwrappers' '--with-db4=/opt/csw/bdb4' '--with-exec-dir=/opt/csw/php5/bin' '--with-freetype-dir=/opt/csw' '--with-gd=shared,/opt/csw' '--with-gdbm=/opt/csw' '--with-gettext=shared,/opt/csw' '--with-gmp=shared,/opt/csw' '--with-iconv=shared,/opt/csw' '--with-imap-ssl=/opt/csw' '--with-imap=shared,/opt/csw' '--with-jpeg-dir=/opt/csw' '--with-kerberos=/opt/csw' '--with-ldap-sasl=/opt/csw' '--with-ldap=shared,/opt/csw' '--with-libedit=no' '--with-libexpat-dir=/opt/csw' '--with-mcrypt=shared,/opt/csw' '--with-mhash=shared,/opt/csw' '--with-mm=/opt/csw' '--with-mssql=shared,/opt/csw' '--with-mysql=shared,/opt/csw' '--with-mysqli=shared,/opt/csw/bin/mysql_config' '--with-ndbm' '--with-openssl=shared,/opt/csw' '--with-pcre-dir=/opt/csw' '--with-pcre-regex' '--with-pdo-mysql=shared,/opt/csw/bin/mysql_config' '--with-pdo-odbc=shared,unixODBC,/opt/csw' '--with-pdo-pgsql=shared,/opt/csw/postgresql' '--with-pdo-sqlite=shared,/opt/csw' '--with-pear=shared' '--with-pgsql=shared,/opt/csw/postgresql' '--with-png-dir=/opt/csw' '--with-pspell=shared,/opt/csw' '--with-readline=shared,/opt/csw' '--with-snmp=shared,/opt/csw' '--with-sqlite=shared,/opt/csw' '--with-t1lib=/opt/csw' '--with-tidy=shared,/opt/csw' '--with-unixODBC=shared,/opt/csw' '--with-xmlrpc=shared' '--with-xpm-dir=/opt/csw' '--with-xsl=shared,/opt/csw' '--with-zlib-dir=/opt/csw' '--with-zlib=/opt/csw' '--enable-cli' '--with-apxs2=/opt/csw/apache2/sbin/apxs'
    Par contre, plus bas (pour PDO_ODBC) j'ai:
    ODBC Connection Pooling Disabled
    Ca parle à quelqu'un ?

  2. #2
    Membre régulier

    Profil pro
    Inscrit en
    Juin 2004
    Messages
    94
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2004
    Messages : 94
    Points : 120
    Points
    120
    Par défaut
    Bin, c'était en fait tout bête.
    Solaris mets à jour le php.ini, mais mal: il faut ajouter à la main le pdo.so alors que pdomysql et pdoodbc sont automatiquement ajoutés.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [PDO] Insérer un lien en php avec PDO
    Par Gogochou dans le forum PHP & Base de données
    Réponses: 3
    Dernier message: 31/05/2012, 15h36
  2. [PDO] Connexion avec PDO via le script PHP
    Par celesu dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 16/09/2008, 17h50
  3. [PDO] Peut-on interroger Access avec PHP 5 (pdo) ?
    Par Domi974 dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 06/09/2008, 18h00
  4. [PDO] Pb instanciation $statement avec PDO sous PHP
    Par tigunn dans le forum PHP & Base de données
    Réponses: 6
    Dernier message: 22/02/2007, 20h45

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo