Skip to content

Instantly share code, notes, and snippets.

@camfindlay
Forked from AshKyd/go.sh
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camfindlay/d435f0e9d9fc1ab26491 to your computer and use it in GitHub Desktop.
Save camfindlay/d435f0e9d9fc1ab26491 to your computer and use it in GitHub Desktop.
# 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
# Set up router to simulate mod-rewrite
echo "<?php
if (preg_match('/\./', \$_SERVER[\"REQUEST_URI\"])) {
return false;
} else {
include __DIR__ . '/framework/main.php';
}" > devrouter.php
# Launch the dev PHP server + router
php -S localhost:8000 devrouter.php
# Install SS via http://localhost:8000/
# Login via http://localhost:8000/admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment