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

Avatar
Thuva

Community Member, 3 Posts

27 January 2008 at 12:42pm

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

Forum Moderator, 922 Posts

27 January 2008 at 1:06pm

Edited: 27/01/2008 1:12pm

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

Community Member, 3 Posts

27 January 2008 at 1:22pm

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

Forum Moderator, 922 Posts

27 January 2008 at 1:37pm

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

Cheers,
Sean

Avatar
tschunde

Community Member, 3 Posts

8 March 2008 at 11:17am

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

Community Member, 1 Post

15 April 2008 at 11:37pm

i have the same problems but with Firefox and IE.

Avatar
tim303

Community Member, 3 Posts

18 November 2008 at 12:02pm

Edited: 18/11/2008 12:04pm

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.