sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfonysudo chmod a+x /usr/local/bin/symfony
symfony new symfony
Wenn Apache, dann
chmod -R www-data:www-data /var/www/html/symfony
a2enmod mod_rewrite
Wenn Fehlermeldung:
Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions :
/var/www/html/symfony/web/
Dann hinzufügen:
<IfModule mod_rewrite.c>
Options -MultiViews +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
</Directory>
Keine Kommentare:
Kommentar veröffentlichen