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.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

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

Running ~/db/build on web server


Reply

2 Posts   1953 Views

Avatar
Trimaran

24 February 2009 at 8:26am (Last edited: 24 February 2009 8:26am), Community Member, 6 Posts

Hi,

I would like to rebuild the database on the web server. http://www.mywebsite.ch/mydatabasename/build?flush=1 doesn't work.
Any recommandation? Thanks!

In case it helps, the content of my .htaccess file is:

### SILVERSTRIPE START ###
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule>

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###

Avatar
Willr

24 February 2009 at 9:13am Forum Moderator, 5511 Posts

No you actually just run /db/build/ you dont need to enter your database name eg - http://www.site.com/db/build?flush=1