Adding sqlite/sqlite3 to PHP 5.3.3 on RHEL

Discussion in 'HOWTO-Related Questions' started by sjbramley, Nov 3, 2010.

  1. sjbramley

    sjbramley New Member

    N00b alert, I guess if you hate N00bs then this is your warning.
    Ok guys, this was really a last route for me as I don't particularly enjoy asking for help apposed to reading articles and trying to figure things out for myself however I'm stumped on this one.

    I've installed php 5.3 on a RHEL5 machine and I need SQLite3 to work with it because of a new feature we're offering on our site. The problem I come across in the php.ini is:
    Code:
    --disable-pdo, --without-sqlite3, -without-sqlite
    I installed php via Yum and the PDO extension is also installed, however I've read reports that you have manually compile php to do this with --enable ...

    Only problem I have is that I've never had to compile anything before, I don't know where I'd find the source from my PHP to even start doing so. Can anybody point me in the right direction.

    Cheers in advance.

    Samnoob
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Can you create the following file and access it in a browser?
    Code:
    <?php
    phpinfo();
    ?>
    Is SQLite mentioned somewhere on the page?
     
  3. sjbramley

    sjbramley New Member

    Thanks for the reply Falko, after doing quite a bit of research it became apparent to me that Ubuntu was a safer bet for sqlite, etc. I have it working now under the new OS.

    Appreciated though.
     
  4. webzenguy

    webzenguy New Member

Share This Page