Jump to:

4938 Posts in 16588 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Install SS with SQLite

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1197 Views
  • TPJ
    Avatar
    Community Member
    1 Post

    Install SS with SQLite Link to this post

    I'd like to use SS 2.4 with an SQLite DB. Untortunatelly, so far I was unable to install SS with such a DB. Here's what I have tried:

    A.

    1) Download & extract SS 2.4
    2) Download & extract the SQLite Database module
    3) Place the sqlite3-v1.0 directory in the root SS directory
    4) Open in a browser http://localhost/mysite/install.php

    The result: no SQLite DB available. PHP has all the required extensions, but SS is missing the module.

    B.

    1) Download & extract SS 2.4
    2) Download & extract the SQLite Database module
    3) Place the sqlite3-v1.0 directory in the root SS directory
    4) Open in a browser http://localhost/mysite/dev/build

    The result: not found, 404

    C.

    1) Download & extract SS 2.4
    2) Download & extract the SQLite Database module
    3) Place the sqlite3-v1.0 directory in the root SS directory
    4) Open in a browser http://localhost/mysite/index.php/dev/build

    The result:

    Warning: fopen(/tmp/silverstripe-cache-home-tpj-public_html-ss_simple_test/manifest-index): failed to open stream: Permission denied in /home/tpj/public_html/ss_simple_test/sapphire/core/ManifestBuilder.php on line 120 Fatal error: Cannot write manifest file! Check permissions of /tmp/silverstripe-cache-home-tpj-public_html-ss_simple_test/manifest-index in /home/tpj/public_html/ss_simple_test/sapphire/core/ManifestBuilder.php on line 124

    D.

    1) Download & extract SS 2.4
    2) Download & extract the SQLite Database module
    3) Place the sqlite3-v1.0 directory in the root SS directory
    4) Open in a browser http://localhost/mysite/install.php/dev/build

    The result: The standard installation page (without CSS), SS missing the SQLite module.

    E.

    1) Download & extract SS 2.4
    2) Download & extract the SQLite Database module
    3) Place the sqlite3-v1.0 directory in the root SS directory
    4) In the console, run "php sapphire/cli-script.php dev/build

    The result:

    PHP Warning: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. You probably want to define $_FILE_TO_URL_MAPPING in your _ss_environment.php as instructed on the "sake" page of the doc.silverstripe.com wiki in /home/tpj/public_html/ss_simple_test/sapphire/core/control/Director.php on line 388

    Warning: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. You probably want to define $_FILE_TO_URL_MAPPING in your _ss_environment.php as instructed on the "sake" page of the doc.silverstripe.com wiki in /home/tpj/public_html/ss_simple_test/sapphire/core/control/Director.php on line 388
    ERROR [User Error]: DB::connect: Not passed a valid database config

    (...)

    Trace
    =====
    <ul>user_error(DB::connect: Not passed a valid database config,256)
    line 91 of DB.php

    DB::connect(<filtered>)
    line 65 of cli-script.php

    I have found some topics on the SQLite module installation on this forum, but without any solutions. (The authors proudly informed, that they have solved their problems.)

  • Willr
    Avatar
    Forum Moderator
    5502 Posts

    Re: Install SS with SQLite Link to this post

    Also - make sure the folder is named "sqlite3" shouldn't affect it in this case but thats what it should be.

    B: 404 - you don't have mod rewrite enabled, thats why C gets a result
    C - you need to fix your permissions try create a silverstripe-cache folder in your root with 777.
    E - to run sake you need an _ss_environment file.

    Downloading 2.4, downloading sqlite3 putting it in root folder then reloading the mysite/install.php should display it. Make sure sqlite3/_config.php file exists (SS will then load that module)

    1197 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.