Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Is the .htaccess file under the "assets" folder necessary?


Go to End
Reply

13 Posts   4461 Views

Avatar
ride9650

17 November 2010 at 10:27am (Last edited: 17 November 2010 10:29am), Community Member, 2 Posts

So this morning, I was having a bit of trouble logging into the admin section of silverstripe. Every time I tried to, I'd get a bunch of javascript and other browser errors about not being able to find files, classes that were missing/undefined, and subsequently, things would stop at the "loading" screen. I checked and re-checked permissions, re-uploaded everything again and again, tried different browsers but nothing seemed to work.

Finally, I discovered that removing the .htaccess file under "assets", fixed the issue completely.

However, I'm guessing that file was placed there for a good reason and I was just curious as to whether or not its a good idea. If its not, then is there a fix?

Avatar
Sean

17 November 2010 at 11:40am (Last edited: 17 November 2010 11:43am), Forum Moderator, 921 Posts

Is this an installation on your local machine or remote web host?

I believe the .htaccess file in assets may cause issues with hosts that use PHP as FastCGI instead of mod_php5 on Apache. Do you know if that is the case?

Sean

Avatar
Sean

17 November 2010 at 11:50am (Last edited: 17 November 2010 11:50am), Forum Moderator, 921 Posts

Update: You can try patching the file like this: http://open.silverstripe.org/changeset/113809/phpinstaller

See if that helps.

Sean

Avatar
SilverRay

17 November 2010 at 12:58pm Community Member, 167 Posts

It seems there's more threads popping up about this subject, this [url]http://www.silverstripe.org/general-questions/show/14861[/url] is one for instance. Turns out my host is using FastCGI, so will try the patch and report back.

Avatar
ride9650

17 November 2010 at 1:01pm Community Member, 2 Posts

Thanks Sean! That did the trick!

Avatar
Sean

17 November 2010 at 1:03pm Forum Moderator, 921 Posts

Thanks guys!

This fix will appear in the next release, 2.4.4.

Sean

Avatar
SilverRay

17 November 2010 at 1:52pm Community Member, 167 Posts

Yep, solved it for me as well. Thanks Sean!

(Perhaps link to the patch in the upgrade/install instructions for 2.4.3?)

Avatar
Sean

17 November 2010 at 6:19pm Forum Moderator, 921 Posts

Good to hear!

I've added an entry at the top of the upgrading notes here: http://doc.silverstripe.org/upgrading:2.4.3

Thanks!
Sean

Go to Top