-
-
Save camfindlay/d435f0e9d9fc1ab26491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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