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

Moving website problem Get Paid to help me


Reply

3 Posts   1422 Views

Avatar
HanSolo

7 July 2010 at 6:25am (Last edited: 7 July 2010 8:11am), Community Member, 83 Posts

Hi I had to move a website from one host to another.
First I backedup the db, the created new db on the new server and imorted the tables with content.
I then downloaded the old site, and uploaded it to the new server.

I changed the db info in mysite/_config.php

and when i try to access the website I get this error.
-------------------

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/u4531903/domains/horsintranet.se/public_html/.htaccess/_config.php) is not within the allowed path(s): (/home/u4531903/:/tmp/:/var/www/html:/usr/local/php5/) in /home/u4531903/domains/horsintranet.se/public_html/sapphire/core/i18n.php on line 1739

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/u4531903/domains/horsintranet.se/public_html/COPYING/_config.php) is not within the allowed path(s): (/home/u4531903/:/tmp/:/var/www/html:/usr/local/php5/) in /home/u4531903/domains/horsintranet.se/public_html/sapphire/core/i18n.php on line 1739

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/u4531903/domains/horsintranet.se/public_html/ChangeLog/_config.php) is not within the allowed path(s): (/home/u4531903/:/tmp/:/var/www/html:/usr/local/php5/) in /home/u4531903/domains/horsintranet.se/public_html/sapphire/core/i18n.php on line 1739

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/u4531903/domains/horsintranet.se/public_html/INSTALL/_config.php) is not within the allowed path(s): (/home/u4531903/:/tmp/:/var/www/html:/usr/local/php5/) in /home/u4531903/domains/horsintranet.se/public_html/sapphire/core/i18n.php on line 1739

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/u4531903/domains/horsintranet.se/public_html/Makefile/_config.php) is not within the allowed path(s): (/home/u4531903/:/tmp/:/var/www/html:/usr/local/php5/) in /home/u4531903/domains/horsintranet.se/public_html/sapphire/core/i18n.php on line 1739

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/u4531903/domains/horsintranet.se/public_html/UPGRADING/_config.php) is not within the allowed path(s): (/home/u4531903/:/tmp/:/var/www/html:/usr/local/php5/) in /home/u4531903/domains/horsintranet.se/public_html/sapphire/core/i18n.php on line 1739

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/u4531903/domains/horsintranet.se/public_html/favicon.ico/_config.php) is not within the allowed path(s): (/home/u4531903/:/tmp/:/var/www/html:/usr/local/php5/) in /home/u4531903/domains/horsintranet.se/public_html/sapphire/core/i18n.php on line 1739
----------

Have i forgot to change something. I think it is ss version 2.3.3 or 2.3.4 .
I cant upgrade to 2.4 I also tried that but they are using gallery modules 0.2.2. and it does not seem to work with ss 2.4

I tried to search the forum, I even tried define('TEMP_FOLDER', dirname(getcwd())."/tmp"); in _config.php but it did not help.
Can anyone help me. If someone can help me I will even pay for it. Because I have been trying for 3 days know.

Joakim

Avatar
seanatw

7 July 2010 at 10:51pm Community Member, 2 Posts

If you are comfortable doing so, send me either login details for your hosting, or a copy of you website so I can install it on my development server. I will take a look and test it out, and if you feel inclined to make a donation that is up to you, but no pressure.

My email is sean@allthingsweb.co.nz.

Avatar
seanatw

9 July 2010 at 9:54am Community Member, 2 Posts

The error messages were php warnings which make the pages look ugly. There was also some difficulty moving a large database and some version confusion, but the error messages themselves were hidden by adding

ini_set("display_errors", 0);

into sapphire/main.php at the top of the file under the <?php line. If anyone else stumbles here in future with a similar problem please make sure the messages are not important before you add this line.