Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » mod_rewrite / SSViewer error...

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

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

Page: 1 2
Go to End
Author Topic: 5126 Views
  • TCJeter
    Avatar
    Community Member
    17 Posts

    mod_rewrite / SSViewer error... Link to this post

    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...

    http://XX.XX.XX.XX/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/~username/home/successfullyinstalled

    (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

  • Andy
    Avatar
    230 Posts

    Re: mod_rewrite / SSViewer error... Link to this post

    Try the alternative .htaccess configuration here: http://doc.silverstripe.com/doku.php?id=installing .

  • TCJeter
    Avatar
    Community Member
    17 Posts

    Re: mod_rewrite / SSViewer error... Link to this post

    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

  • Andy
    Avatar
    230 Posts

    Re: mod_rewrite / SSViewer error... Link to this post

    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.

  • TCJeter
    Avatar
    Community Member
    17 Posts

    Re: mod_rewrite / SSViewer error... Link to this post

    Andy,

    Thanks for the update - I will get the latest build and have another go.

    Thanks,
    -TC

  • TCJeter
    Avatar
    Community Member
    17 Posts

    Re: mod_rewrite / SSViewer error... Link to this post

    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

  • TCJeter
    Avatar
    Community Member
    17 Posts

    Re: mod_rewrite / SSViewer error... Link to this post

    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

  • Andy
    Avatar
    230 Posts

    Re: mod_rewrite / SSViewer error... Link to this post

    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.

    5126 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.