Skip to content

Instantly share code, notes, and snippets.

@AshKyd
Last active August 29, 2015 14:15
Show Gist options
  • 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

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