I've got an existing site that I'm trying to get up and running on my LAMP stack machine. I've put the site in /var/www/sitename but when I surf to http://localhost/sitename/ I only get the "Index of /[sitename]" page that lists the files. The same code works just fine on my MAMP machine, so what's the difference? .htaccess settings?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I think the problem is index.php is not defined as the "default document" in your Apache configuration.
If it was, then browsing to http://localhost/mysite would take you to the SilverStripe installer.
You can manually start it by going http://localhost/mysite/install.php
Hope that helps!
Sean
Thanks Sean!
But this isn't a fresh site, this is a site that is up and running on other computers. So I don't have an install.php in my root any more.
Maybe mod_rewrite is not working on your server? That would certainly indicate why it's listing the directory contents instead of executing a PHP script.