558 Posts in 3572 Topics by 244 members
|Go to End|
25 December 2009 at 2:30pm Last edited: 25 December 2009 2:43pm
My client wanted to find his own host, so I told him to make sure that it had MySQL 4.1+ and PHP 5+.
But I did not know about all the IIS mod_rewrite issues, and he of course found a host that is using IIS (unknown version for the moment)
After copying the Silverstripe (v2.3.3) install files, when trying to access the install.php, I was presented with a "HTTP Error 500".
Thinking it might have something to do with the content of the .htaccess file, I removed its whole content.
This allowed me to install Silverstripe properly. (Although there seem to be know CSS formatting on the install page and the install does stop after # Checking that friendly URLs work... # Testing...)
Afterwards however, the HTTP Error 500 came back.
My understanding is that this would be because the IIS server doesn't have a mod_rewrite enabled.
However, from reading this http://groups.google.com/group/silverstripe-dev/browse_thread/thread/f0c082132f3f1014?pli=1
, I think I understand that I should be able to use it anyway if I remove the rewrite rules from the .htaccess file, which I did.
Did I miss something? Is there something else I am supposed to do to get it working without the pretty URLs?
Anyone has any idea of something I could try?
I thought I might add that the 500 Error seems to come from IISPassword, which according to its makers is "the equivalent of htaccess on Apache, except that itâ€™s used on Microsoft IIS."
I don't know if it's relevant, but I'm wondering if this causes problems, e.g. not allowing access to directories that actually don't exist...
25 December 2009 at 2:45pm Last edited: 25 December 2009 2:57pm
IIS does not use mod_rewrite. Instead, for IIS 7 and 7.5, Microsoft provides mod_rewrite-like functionality in an IIS extension called "URL Rewrite Module".
Assuming the server is IIS 7 or 7.5, ensure these steps:
1. Microsoft URL Rewrite Module is installed
2. Create a web.config file in the place you've got SilverStripe installed - the contents to put into it can be found here:
3. Remove the .htaccess file. IIS doesn't need this anyway
If you're using IIS 5.1 or 6, then installation may be a bit harder. I have not tried this.
IIS 5.1 and 6 require third-party extensions to get rewrite functionality to work.
25 December 2009 at 2:58pm
I did understand that IIS uses a mod_rewrite equivalent. I was just being lazy in calling it mod_rewrite too. Sorry.
I have already asked the admin of that IIS box to check what version he's running and if he can install Microsoft URL Rewrite Module, but because of the time of the year (Xmas), it might be a while before he gets back to me or gets anything done.
In the meantime, I was trying to use Silverstripe without the URL rewrite module, as I think it should work (on SS v2.3+) as explained in the link I posted below (http://groups.google.com/group/silverstripe-dev/browse_thread/thread/f0c082132f3f1014?pli=1)
I would not mind if I could get the site working with the URLs looking like "http://www.mydomain.com/index.php/about-us". It would be a start.
(And I see it as an interesting exercise anyway)
So has anyone got that working?
25 December 2009 at 3:08pm
IIS doesn't reveal any 500 server errors unless you explicitly enabled "Detailed errors" for remote requests. However, I assume you don't have access to the server, so it may be hard to debug the error yourself!
25 December 2009 at 3:13pm
You assume correctly.
The only access I have to this server is via "Helm : The Web Hosting Control System", which is one of the worst control panels I have ever seen by the way.
14 January 2010 at 9:29pm
What IIS version have you?
|Go to Top|