17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 4918 Views |
-
mod_rewrite / SSViewer error...

2 May 2007 at 9:21am
All,
My installation fails at the following point...
I get an error telling me to make sure that...
* mod_rewrite is enabled in your httpd.conf
* AllowOverride is enabled for the current path.My host does state in their support that 'mod_rewrite' is supported, and that it is already enabled for all accounts. If I force continue at this point it says that it is successful, but then tries to redirect to...
(waaay too many directories there!)
Since I'm operating on a shared IP environment until the site is built and the domain transfered, will this even work?
Also, the PHP error log stated this:
PHP Warning: None of these templates can be found: ErrorPage.ss, Page.ss, ContentController.ss in /home/username/public_html/sapphire/core/SSViewer.php on line 53
Any help appreciated,
-TC -
Re: mod_rewrite / SSViewer error...

2 May 2007 at 11:44am
Try the alternative .htaccess configuration here: http://doc.silverstripe.com/doku.php?id=installing .
-
Re: mod_rewrite / SSViewer error...

2 May 2007 at 1:53pm
Andy,
Thanks for the response. I did actually try the alternate method, even with a few variations. For example I have tried the following...
(with a preceding slash)
RewriteRule .* /www/sapphire/main.php?url=%1&%{QUERY_STRING} [L](without a preceding slash)
RewriteRule .* www/sapphire/main.php?url=%1&%{QUERY_STRING} [L](with everything after the direct IP and preceding slash)
RewriteRule .* /~username/www/sapphire/main.php?url=%1&%{QUERY_STRING} [L](with everything after the direct IP and without the preceding slash)
RewriteRule .* ~username/www/sapphire/main.php?url=%1&%{QUERY_STRING} [L]So I'm clueless at this point. The host does use a folder called 'public_html' for the root, but there is also a 'www' as a shortcut to the root. If you upload a file to one, it is mirrored in the other. Is there any SS configuration that is specific to the 'www' other than the .htaccess?
Thanks,
-TC -
Re: mod_rewrite / SSViewer error...

2 May 2007 at 4:45pm
The .htaccess access file is the only one affected but the location of the installation. I'm currently working on the installer to try detect the correct path if the original .htaccess file doesn't work. All going well, this'll be in the dailybuild tonight.
-
Re: mod_rewrite / SSViewer error...

4 May 2007 at 5:11am
Andy,
Thanks for the update - I will get the latest build and have another go.
Thanks,
-TC -
Re: mod_rewrite / SSViewer error...

4 May 2007 at 3:02pm
Andy,
I did grab the latest build and put it to the server, but now there is a new error - I believe this may be a syntax error...
Fatal error: Call to undefined function delete() in /home/mcaonlin/public_html/rewritetest.php on line 40
If I wrap the 'delete' function line like this below, it gets past that error but still gives me the same results as before.
FROM: (line 39)
if(file_exists('.htaccess')) {
delete('.htaccess');
}TO:
if(file_exists('.htaccess')) {
function delete() {
delete('.htaccess');
}
}I'm not even sure that my edit is syntactically correct, though. Any help would be appreciated.
Cheers,
-TC -
Re: mod_rewrite / SSViewer error...

7 May 2007 at 10:23am Last edited: 7 May 2007 10:23am
Would it be possible for someone to look into this error? I have just completed downloading the latest daily build (silverstripe.2.0.DailyBuild.2007-05-05) and then placing it on my host's server and I am still getting the same (fatal) error....
Fatal error: Call to undefined function delete() in /home/username/public_html/rewritetest.php on line 40
Any help would really be appreciated - I've been trying to get this thing to install for two weeks now and I'm just about done. Either done, as in success - or done, as in I'm done trying.
Thanks!
-TC -
Re: mod_rewrite / SSViewer error...

7 May 2007 at 12:42pm
Sorry, I've been out of the office. That was a mistake on my behalf, the function should be unlink, not delete. I am working on the installer some more today, so if you still have some problems you may wish to try the daily build tonight.
| 4918 Views | ||
| Go to Top | Next > |


