Page 1 of 1

403 forbidden error when moving to new server.

Posted: Fri Mar 07, 2014 3:37 am
by Sea-Wing_Designs
Hello,

I have gone through the process of moving a store from one server company to another. I moved the files using tar.gz and scp and preserved the file permissions. I created new databases and imported the tables. I changed the two config files. I am using Dreamhosts mirror to view the site before I switch the DNS so that I can avoid down time: http://shop-ornaments.dreamhosters.com/

The problem is that i get this error: Forbidden

You don't have permission to access /control_area_orna/index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Dreamhost has suggested that it is either a permission error or an htaccess error. If I temporarily remove the .htaccess file I get this:
Warning: require_once(/nfs/c06/h06/mnt/86983/domains/shop.ornaments.com/html/system/startup.php): failed to open stream: No such file or directory in /home/ornaments/shop.ornaments.com/index.php on line 21

Fatal error: require_once(): Failed opening required '/nfs/c06/h06/mnt/86983/domains/shop.ornaments.com/html/system/startup.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/ornaments/shop.ornaments.com/index.php on line 21

I see in that warning that require_once is pointing to the old file format. I have to find where that is and change it, but I am wondering if there is another problem?

Re: 403 forbidden error when moving to new server.

Posted: Fri Mar 07, 2014 5:22 am
by Sea-Wing_Designs
I found that the config.php did not save properly so I adjusted it to the new server, but that changed nothing but the error which now reads this when the .htaccess is removed (in fact all I have to do is comment out 'Options FollowSymlinks'):


Warning: require_once(/home/ornaments/shop.ornaments.com/html/system/startup.php): failed to open stream: No such file or directory in /home/ornaments/shop.ornaments.com/index.php on line 21

Fatal error: require_once(): Failed opening required '/home/ornaments/shop.ornaments.com/html/system/startup.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/ornaments/shop.ornaments.com/index.php on line 21


With the .htaccess in place I still see the 403 error.

Re: 403 forbidden error when moving to new server.

Posted: Fri Mar 07, 2014 7:26 am
by victorj
it looks like config files are not set correct in relation to relative path to files.

check PM

Re: 403 forbidden error when moving to new server.

Posted: Fri Nov 27, 2015 5:06 pm
by aziza93312
Hello,

i have moved my opencart site to another hosting server
and i am facing issue on new server.

below is error:

Parse error: syntax error, unexpected T_STRING in /home/flexnflex/flexnflex.com/newsite/config.php on line 23

can you please help me how i can fix it.

Thanks

Re: 403 forbidden error when moving to new server.

Posted: Sat Nov 28, 2015 3:36 am
by victorj
line 23 of file config.php has a typo error