1

I have reviewed the previous questions on this and they don't seem to cover what exactly I'm looking for, before I start, I'm no server admin. I'm trying to help get this server up and active and I have got it all going with exception to the SQLite3. The phpinfo displays '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' ' can somebody please advise in simple terms what to do to activate this, I've attempted a yum install.

Thanks in advance,

Sam

  • 1
    Duplicate - see: http://serverfault.com/questions/32982/how-do-i-enable-sqlite-on-linux-apache-php – danlefree Oct 28 '10 at 14:50
  • 1
    Also on StackOverflow: http://stackoverflow.com/questions/2199968/is-there-a-sqlite-entension-for-php-in-redhat-enterprise-linux-5 – symcbean Oct 28 '10 at 16:32

3 Answers3

3

On CentOS-5 you only need to install the package php53-pdo and sqlite in order to have support for sqlite3

# yum install php53 php53-pdo sqlite

Hope it helps.

jhcaiced
  • 174
  • 6
  • For anyone wondering, on CentOS 7 it's just php and php-pdo. Though when using Nginx, one should install php-fpm instead of php. – bviktor Jan 09 '16 at 09:56
-1

Redhat decided to stop supporting php-sqlite*, but there is a good tutorial here.

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
Dinu
  • 9
-1

The Atomic repository offers a nice, well thought out, compliant with the standard Redhat naming convention and up-to-date bunch of PHP rpms for both Centos 5 & 6. Their official site is this and installing the repository (not the packages) is as simple as

wget -O - http://www.atomicorp.com/installers/atomic | sudo bash

After successfully installing the repository, try

sudo yum update

to get the newest PHP packages from Atomic and then

sudo yum install php-sqlite

to get your sqlite extension installed and automatically loaded.

Note: Atomic offers a lot of updated packages and PHP there is on the 5.3 version. Bear that in mind if you are running 5.3-incompatible applications.

priestjim
  • 669
  • 3
  • 8