3991 Posts in 1039 Topics by 1213 members
Installing SilverStripe
SilverStripe Forums » Installing SilverStripe » Installer saying .htaccess is not enabled when it is...
Getting SilverStripe up and running on your computer and on your web server.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 681 Views |
-
Installer saying .htaccess is not enabled when it is...

14 October 2010 at 5:30pm
Hi All,
This is one of the first times I have tried installing SilverStripe on an external server and I've run into an issue where the installer is saying that Apache mod_rewrite is not installed, but when I test it is working as you would expect.
Here is a link or two which might help.
INSTALLER - if you just go to the root it shows a default "no site" landing page
[url=http://sarangvacationhomes.com/install.php]http://sarangvacationhomes.com/install.phpTEST OF MOD REWRITE
[url=http://sarangvacationhomes.com/TEST/hellovariable.html]http://sarangvacationhomes.com/TEST/hellovariable.htmlREWRITE RULE in /TEST/.htacess
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^hello([^/]*).html$ index.php?link=$1 [L]PHP CODE in /TEST/index.php
<?php
echo "THIS IS index.php<hr/>";
echo "THE VARIABLE PASSED IS VIA THE URL IS {$_GET['link']}";
?>Here is the set up of the server
[url=http://sarangvacationhomes.com/test.php]http://sarangvacationhomes.com/test.phpIf anyone could help point me in the right direction for debugging and getting this working I would be very grateful.
Cheers,
Colin -
Re: Installer saying .htaccess is not enabled when it is...

14 October 2010 at 5:44pm
Hi Colin,
I had this "warning" before when installing on a IIS server. You could just try completing the install anyway. Then when the install is complete, just open up the .htaccess file and make sure the mod_rewrite code is in there. (FYI: SS sites will run with Mod Rewrite enabled, but the URLs just aren't as intuitive and pretty).
The code you want to see in the .htaccess file once the install completes. If it's not there just try adding it.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Your-Directory-Name-HereRewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule> -
Re: Installer saying .htaccess is not enabled when it is...

14 October 2010 at 7:33pm
I tried installing anyway but an error occurred. I could get into the admin panel but everytime I tried something I go an error.
I am going to just upload the codebase from my local machine (which is what I usually do) but when it didn't work the first time I thought I would try running the installer.
I will update the thread when I have tested the dev code base from my local machine uploaded and tested
Cheers,
Colin
| 681 Views | ||
|
Page:
1
|
Go to Top |

