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.

Archive /

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

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

I want to move my entire SilverStripe to another location - what files do I need to edit?


Go to End


17 Posts   8188 Views

Avatar
JZM

Community Member, 34 Posts

16 July 2008 at 7:50am

if you export is as a mysql document and save it in notepad (remember to change the file type to all files) save it as name.mysql. Once this is done open up your hosting and look for php databases and make sure you enter a database and user and add the user to the database with full privileges. Then after you do that go back to your hostings main control panel and open phpMyAdmin and open up the database that you just made and import the "name".mysql document into that table. One final step you need to change the silver stripe config (mysite/_config.php) and where it shows your db details enter the details that you made in your hosting phpMyAdmin. Your details have to be entered like this.

Hosting Username_database
Hosting Username_user

and localhost is fine and you just enter your password how it is in the _config.php file allready

Avatar
sherman

Community Member, 48 Posts

16 July 2008 at 7:51am

thanks!

Avatar
famous

Community Member, 14 Posts

17 July 2008 at 11:15am

where is the .htaccess file?
I looked for it, but I can't seem to find it
thank you in advance

Avatar
(deleted)

Community Member, 473 Posts

17 July 2008 at 11:17am

It's an invisible file in the same folder as sapphire/, cms/ and jsparty/

Avatar
famous

Community Member, 14 Posts

17 July 2008 at 11:32am

Edited: 17/07/2008 11:53am

I have to edit all of them?

also how do I view these invisible files?

Avatar
JZM

Community Member, 34 Posts

17 July 2008 at 4:06pm

are you trying to find them on local host or web server

Avatar
Pixel

Community Member, 78 Posts

17 July 2008 at 8:48pm

.htaccess is in the root of your site ie. yourwebsite/httpdocs/.htaccess

To be able to view it locally you need to show hidden files. If using a Mac you can download this nifty little application that turns hidden files on and off at a click of a button

http://www.macupdate.com/info.php/id/22318

Then you can view .htaccess and modify it.

If you need to find it on a remote site then it should be visible in the files folder on your VPS admin (ie Plesk)

Avatar
famous

Community Member, 14 Posts

22 July 2008 at 5:46am

what if I am not using local host?