patricoles's avatar

connect Sqlite database on webserver

I want to use SQLITE for my laravel5 project on my webserver. I migrated my local laravel 5 project onto my AWS ec2 lamp Ubuntu server. http://realtoraxe.com/realtoraxe/public/ but it shows

InvalidArgumentException in SQLiteConnector.php line 34: Database does not exist.

I changed the database.php set for sqlite

   <?php
 return array(
    'default' => 'sqlite',
    'connections' => array(
    'sqlite' => array(
        'driver'   => 'sqlite',
            'database' =>    'http://realtoraxe.com/realtoraxe/storage/database.sqlite',
        'prefix'   => '',
       ),
     ),
    );
   ?>

and I changed the .env to

APP_ENV=local
APP_DEBUG=true
APP_KEY=mystring
DB_CONNECTION=sqlite
CACHE_DRIVER=file
SESSION_DRIVER=file

it still doesn't see the database I think what i wrote as the path for the database in the database.php is wrong and do i need to somehow write where my ip adress is in the .env file? I have been googling all night and can't seem to figure this out.

0 likes
1 reply
ohffs's avatar

.... Urrr, are you trying to read/write to your database over http?

Please or to participate in this conversation.