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.

Archive

Our old forums are still available as a read-only archive.

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

home redirects to check-php.php


Reply

7 Posts   3169 Views

Avatar
Thuva

27 January 2008 at 12:42pm Community Member, 3 Posts

I have a fresh installation of SilverStripe 2.2.1. Everything went fine. My environment is MySQL5/PHP5.2/Apache2.

Whenever I try to access home page by going to <site_root>/home/, I get redirected to check-php.php and end up with "page not found" error since I deleted installation files at the end of successful installation.

I tried searching the forums and wiki with no luck. I would really appreciate any help.

Thank you in advance.

Regards,

Thuva

Avatar
Sean

27 January 2008 at 1:06pm (Last edited: 27 January 2008 1:12pm), Forum Moderator, 921 Posts

Hi there,

Thankfully this issue is not so severe. I'm assuming you're using Safari, because I can replicate the exact same behaviour with that browser, but not with Firefox or IE.

Easy fix: flush Safari's cache and restart.

I've filed a bug here:

[url]http://open.silverstripe.com/ticket/2196[/url]

Cheers,
Sean

Avatar
Thuva

27 January 2008 at 1:22pm Community Member, 3 Posts

The problem is fixed now. Thank you for the quick reply, Sean. I really appreciate that. I would need to deliver a SilverStripe project on Monday :-)

Thuva

Avatar
Sean

27 January 2008 at 1:37pm Forum Moderator, 921 Posts

No problem! I hope the project turns out well! :-)

Cheers,
Sean

Avatar
tschunde

8 March 2008 at 11:17am Community Member, 3 Posts

thanks! that was for me also a good hint.... :-)
I had the same problem experience with safari 3.0 and osx 10.5.2

Avatar
atschy

15 April 2008 at 11:37pm Community Member, 1 Post

i have the same problems but with Firefox and IE.

Avatar
tim303

18 November 2008 at 12:02pm (Last edited: 18 November 2008 12:04pm), Community Member, 3 Posts

Although this bug is apparently slated for fixing in 2.4.0 (see Ticket #2196) the same problem with redirecting after installation seems to occur regardless of browser, not just in Safari (I should say I encountered on Firefox 3 (for Mac OSX), and when I loaded up safari (from which I did not do the install) the redirect worked ok). The ?flush=1 trick did not help. However, force quitting Firefox and then reloading the page with ?flush=1 appended did work (e.g.: http://localhost/silverstripe/?flush=1).

A related and similar issue is that, after following the vanilla install procedure, when I point the browser to http://localhost/silverstripe without the trailing slash, I get a directory index. That can be fixed with a simple change to the .htaccess to prohibit directory indexing--however, that would give an error. Another solution would be by replacing an index.php with a meta-refresh header to http://localhost/silverstripe/ with the trailing slash. A better solution would be to rewrite the .htaccess rewrite engine commands to route attempts without a trailing slash correctly.

Obviously allowing unwanted directory indexing after following your vanilla install instructions is a possible security issue and should be remedied, imho, asap.

For the revised installation procedures, I would suggest having the install files in a subdirectory as done with wordpress or joomla.