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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

Running ~/db/build on web server


Go to End


2 Posts   2879 Views

Avatar
Trimaran

Community Member, 6 Posts

24 February 2009 at 8:26am

Edited: 24/02/2009 8:26am

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

Forum Moderator, 5523 Posts

24 February 2009 at 9:13am

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