Befehl zur Installation mit Composer:
(Bsp: http://localhost/ss4: composer create-project silverstripe/installer /d/xampp/htdocs/ss4... )
composer create-project silverstripe/installer my-project...
Die Konfigurationsdatei manuell erstellen
Konfiguration im Root-Verzeichnis der Installation manuell erstellt > .env
- ".env" Konfigurationsdatei im Root-Verzeichnis der Installation erstellen
- Pfad, Datenbank, Benutzer, Datenbank-Passwort, Logindaten: Username und Passwort eintragen
SS_BASE_URL="http://localhost<ss4..>"
SS_DATABASE_CLASS="MySQLDatabase" SS_DATABASE_NAME="<database>" SS_DATABASE_SERVER="localhost" SS_DATABASE_USERNAME="<user>" SS_DATABASE_PASSWORD="<password>" SS_DEFAULT_ADMIN_USERNAME="admin" SS_DEFAULT_ADMIN_PASSWORD="password" SS_ENVIRONMENT_TYPE="<dev|test|live>"
Lokale Datenbank erstellen: http://localhost/phpmyadmin/
Datenbak erstellt mit Composer, GitBash (Optional):
vendor/bin/sake dev/build
Silverstripe starten
- Backend Administration: https://localhost/ss4.../admin
- Frontend, Website: https://localhost/ss4...
- Neustart Silverstripe: https://localhost/ss4.../dev/build
- Silverstripe Cache-Ordner manuell erstellen: https://localhost/ss4.../slverstripe-cache
- Silverstripe Cache aktualisieren: https://localhost/ss4.../?flush=1
.htaccess (optional auf localhost)
in der Apache-Datei muss der Pfad und Eintrag für MOD_REWRITE enthalten sein.
http://localhost/ss4.../public/.htaccess:
SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
RewriteBase '/ss4.../public'
Eingeloggen und Einstellungen anpassen
- Reiter Sicherheit: Name und Passwort Administrator anpassen, Sprache einstellen
- Reiter Einstellungen: Seitentitel u.a. anpassen
- Reiter Seiten: loslegen ...