Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5999967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:37:35+00:00 2026-05-23T00:37:35+00:00

SOLVED so i forgot to sudo apt-get php5-sqlite also. downvoters gonna downvote :D (fyi,

  • 0

SOLVED so i forgot to sudo apt-get php5-sqlite
also. downvoters gonna downvote 😀

(fyi, i feel bad everytime i use “StackOverload”. bad as in, ‘i have been hammering for five hours and the nail doesnt seem to fit. but it does! i seez it does!’.)

Summed up, because people might think i’m ranting. (and i wasnt, it was something like 2~3am when i wrote this. i had kind of a fantastical mind at that time)

I cannot, for the love of god, install this shinanigan. I use apache2.
http://www.github.com/cakephp/datasources


So, i know that cake doesnt support sqlite [or didn’t, back in 2010] but i’ve seen the Datasources plugin.

Appart from cakephp, when extracted, having 3 seperate plugin folders and the readme.md (seriously, they named the file MD. MD!) stating “extract to plugins folder” and me starting to get all jawed down on first approach;

I tried. i bounced around, i read and tried; i tried every possible configuration, i’ve mixed configuration steps (hey, one gets desperate.), i’ve even screamed [and that didnt work either, surprisingly]

Nothing. Besides reading reports of people (wizards, probably!) successfully connecting cakePHP and SQLite3 (with datasources plugin) i myself cannot replicate such marvelous magick. Even with the recipe.

And, here’s the plugin i’m using http://www.github.com/cakephp/datasources
Also, i fly around using an Apache2. normal Apaches don’t cut it.

Could someone, by the love of $input(“your god here”), explain me how to make this mumbo jumbo connect and rock mah server sideways?

Very much apreciated 🙂


    var $default = array(
            'driver' => 'Datasources.DboSqlite3',
            'persistent' => false,
            'database' => '../config/db.sqlite',
            'connect' => 'sqlite',
    );

Also, no error besides the “Cake is NOT able to connect to the database.” yellow line.
I do have sqlite AND sqlite3 installed, by sudoaptget method.
Don’t know about other connections scripts tho.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:37:36+00:00Added an answer on May 23, 2026 at 12:37 am

    Personally I haven’t worked with Cake + Sqlite yet, but I surmised the following:

    • download the plugin from https://github.com/cakephp/datasources into app/plugins so you have the folder structure app/plugins/datasources/models/...
    • configure a source in app/config/database.php to use the driver Datasources.DboSqlite3, as described in http://book.cakephp.org/view/922/Database-Configuration

      • the parameters are not really documented, but if you look at https://github.com/cakephp/datasources/blob/master/models/datasources/dbo/dbo_sqlite3.php#L57 you see the possible values
      • an example should look like this:

        public $default = array('driver'     => 'Datasources.DboSqlite3',
                                'persistent' => false,
                                'database'   => '/path/to/your/database/file',
                                'connect'    => 'sqlite');
        

    The connect setting may be tricky, since PHP has different Sqlite drivers for different versions which may or may not be installed. Try to establish a connection using a non-Cake script to test which driver works for you (or if you have any installed at all), then choose sqlite or sqlite2 (as per the comment in the source).

    If that doesn’t work, please give some concrete information on what you tried, what didn’t work, errors etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Encountered this problem before but forgot how I solved it. I want to use
SOLVED: Nevermind, the links were visited, and the border definition was missing for visited
Update: Solved, with code I got it working, see my answer below for the
Edit : Solved, there was a trigger with a loop on the table (read
Problem solved: Thanks guys, see my answer below. I have a website running in
I've actually solved this, but I'm posting it for posterity. I ran into a
I've just solved another *I-though-I-was-using-this-version-of-a-library-but-apparently-my-app-server-has-already-loaded-an-older-version-of-this-library-*issue (sigh). Does anybody know a good way to verify
edit #2: Question solved halfways. Look below As a follow-up question, does anyone know
Edit: I have solved this by myself. See my answer below I have set
This problem has been solved thanks to your suggestions. See the bottom for details.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.