Hi!
I insatll silverstripe in my host. Now I need duplicate my project in an other server. Is possible copy all my project whit no a new installation? What I modify in my project?
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.
Hi bebabeba,
If all you want to do is to take a copy of the currently running silverstripe installation to a new host, you just need to grab a full backup of the Mysql database and the silvestripe filesystem and copy them to the new host.
To do this, you can just grab a mysqldump of the database (From phpmysql if you have it) and a zip of the root of the silverstripe installation.
Once on the new host, restore the DB and the filesystem and you should be all good to go. Just remember that you may have some issues with authentication when you restore between windows and linux.
If you are just talking about your custom code, then you should be able to just install that to the new silverstripe installation.
Cheers
Owen
Hi!
thanks to reply..I show here my error after copy..
Undefined index: LoginForm
Line 157 in E:\_projects\..\silverstripe\sapphire\core\ClassInfo.php
/**
149 * @todo Improve documentation
150 */
151 static function ancestry($class, $onlyWithTables = false) {
152 global $_ALL_CLASSES;
153
154 if(is_object($class)) $class = $class->class;
155 else if(!is_string($class)) user_error("Bad class value " . var_export($class, true) . " passed to ClassInfo::ancestry()", E_USER_WARNING);
156
157 $items = $_ALL_CLASSES['parents'][$class];
158 $items[$class] = $class;
159 if($onlyWithTables) foreach($items as $item) {
160 if(!DataObject::has_own_table($item)) unset($items[$item]);
161 }
162 return $items;
163 }
I tryed to copy to another host all seems to work exept when I go into the admin and select security I get the foloing error,
FATAL ERROR: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/vhosts/MYSITE/httpdocs/..) is not within the allowed path(s): (/var/www/vhosts/MYSITE/httpdocs:/tmp)
At line 839 in /var/www/vhosts/MYSITE/httpdocs/sapphire/core/i18n.php
below this I get lots more but all related to the open_basedir restriction
I flushed the db but that did not do any thing.
it seems that it want to look one level below my webroot folder, but ther is nothing there to use.
does any one now hoe to fix this?
[edit]
below the error there is a bit of debug where I found this:
# module =
..
# moduleDir =
/var/www/vhosts/MYSITE/httpdocs/..
# langDir =
/var/www/vhosts/MYSITE/httpdocs/../lang
that is not good the lang is inside sapphire folder and module dir is also not good
where can I change this?
[/edit]
[edit-2]
of I used this fix and that worked for me: http://ssorg.bigbird.silverstripe.com/archive/show/155068#post155068
[/edit-2]