You should have a full path to your sqlite file otherwise it might not
work.

On Feb 7, 2:18 pm, Thomas <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> currently I am getting mad trying to bring CakePHP together with
> SQLite. Lets tell you my settings first:
> On a Windows system running Lighttpd with PHP 5.2.5 and unpacked
> cake_1.1.19.6305.tar.bz2. The php sqlite extension is uncommented and
> running. The default start website of CakePHP shows up correctly and
> tells me:
> Your database configuration file is present.
>
> Cake is able to connect to the database.
>
> My database.php looks like this:
> class DATABASE_CONFIG
> {
>         var $default = array('driver' => 'sqlite',
>                                                                 'connect' => 
> 'sqlite_popen',
>                                                                 'host' => 
> 'localhost',
>                                                                 'login' => 
> 'user',
>                                                                 'password' => 
> 'password',
>                                                                 'database' => 
> 'posts',
>                                                                 'prefix' => 
> '');
>
>         var $test = array('driver' => 'mysql',
>                                                         'connect' => 
> 'mysql_connect',
>                                                         'host' => 'localhost',
>                                                         'login' => 'user',
>                                                         'password' => 
> 'password',
>                                                         'database' => 
> 'project_name-test',
>                                                         'prefix' => '');
>
> }
>
> My directory layout is like this (some here not so important dirs left
> out):
> Lighttpd
> - htdocs
> -- app
> -- posts (the SQLite 2.1 file)
> - PHP
>
> The files in the app dir are created as described in The Cake Blog
> Tutorial. However if I go to the addresshttp://localhost/posts/index
> I get a "404 - Not Found" error.
>
> Another mysterium is, that I can set any name for 'database' and Cake
> still tells me "Cake is able to connect to the database." and creates
> a 0 byte file in the htdocs dir.
>
> I'd really appreciate any help!
>
> Thanks alot,
>   Thomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to