Denne artikel giver en opskrift med modifikationer i Apache. Artiklen slutter med disse ord (efter at ha indledt med hvor "piece of cake" det er at køre CakePHP):
"It took a little while to realise that the reason this was happening is that CakePHP's .htaccess files were being ignored by Apache. This turned out to be because Ubuntu's default Apache install includes the directive "AllowOverride none", effectively disabling mod_rewrite.
Opened the "000-default" site configuration file for editing.
1 | gksudo gedit /etc/apache2/sites-enabled/000-default |
Then, change the "AllowOverride none" to "AllowOverride all" under the first two sections, "" and "".
Restart Apache and you should be good to go.
1 | sudo service apache2 restart" |
(Næh, det virkede heller ikke.... jeg kan stadig ikke se siderne; men det her med Apache-konfigurationer fik mig til at lede i en anden retning, og det gav pote.)
No comments:
Post a Comment