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   4536 Views

Avatar
ride9650

Community Member, 2 Posts

17 November 2010 at 10:27am

Edited: 17/11/2010 10:29am

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

Forum Moderator, 922 Posts

17 November 2010 at 11:40am

Edited: 17/11/2010 11:43am

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

Forum Moderator, 922 Posts

17 November 2010 at 11:50am

Edited: 17/11/2010 11:50am

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

See if that helps.

Sean

Avatar
SilverRay

Community Member, 167 Posts

17 November 2010 at 12:58pm

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

Community Member, 2 Posts

17 November 2010 at 1:01pm

Thanks Sean! That did the trick!

Avatar
Sean

Forum Moderator, 922 Posts

17 November 2010 at 1:03pm

Thanks guys!

This fix will appear in the next release, 2.4.4.

Sean

Avatar
SilverRay

Community Member, 167 Posts

17 November 2010 at 1:52pm

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

Forum Moderator, 922 Posts

17 November 2010 at 6:19pm

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