Skip to content

Instantly share code, notes, and snippets.

@AshKyd
Last active August 29, 2015 14:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AshKyd/435767564f53152049b5 to your computer and use it in GitHub Desktop.
Save AshKyd/435767564f53152049b5 to your computer and use it in GitHub Desktop.
Silverstripe with sqlite3 dev environment on Fedora (PHP 5.4+)
# Fedora-specific PHP environment setup
yum install php php-mbstring php-mysql php-gd
# Manually install composer via https://getcomposer.org/download/
# Install Silverstripe & sqlite driver
composer create-project silverstripe/installer ./ 3.1.10
composer require silverstripe/sqlite3 1.3.*@dev
# Launch the dev PHP server
php -S localhost:8000 ./framework/main.php
# Install SS via http://localhost:8000/
# Login via http://localhost:8000/admin
@camfindlay
Copy link

Nice one, would you be keen to add this to our installation documentation as a "how to"?

@AshKyd
Copy link
Author

AshKyd commented Feb 19, 2015

For sure, setting up a LAMP stack is one of the biggest barriers for me getting started with SilverStripe.

As a side note, is there a way with Composer to install Silverstripe "latest stable" without explicitly setting the version number?

@camfindlay
Copy link

yes, you should just be able to run

composer create-project silverstripe/installer /path/to/install/

@camfindlay
Copy link

I'm interested in what

(preg_match('/\./', \$_SERVER[\"REQUEST_URI\"]))

does? I've tried with just starting the server and pointing to ./framework/main.php which seems to work ok.

@AshKyd
Copy link
Author

AshKyd commented Feb 20, 2015

Perfect, yes that's doing the same thing better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment