Question

Enable Sqlite in PHP on Centos 7

I have setup Nginx with PHP-FPM on CentOS 7. I’m trying to setup a very basic app and don’t need MariaDB. However I can’t seem to enable the Sqlite extension for PHP. There is no php-sqlite package and just adding extension=sqlite.so or sqlite3.so doesn’t load it.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I finally found it, you have to install the php-pdo package.