R
R
Radiss2019-02-24 20:45:28
1C-Bitrix
Radiss, 2019-02-24 20:45:28

How to transfer bitrix site to local hosting?

For several days I have been trying to transfer the site to Open Server, but nothing.
1st option with the restore.php file recommended by Bitrix does not work. Unpacking archives hangs halfway and that's it.
2 option with tar archive too.
-download 11 archives,
-rename them 001, 002...
-unpack with 7Zip
On my Windows 10 it doesn't work and Zip doesn't unpack.
Option 3:
After downloading in a regular archive, I unpack them into dir:
D:\ASITES\arr\public_html where
D:\ASITES\ is the root of all
database projects from hosting transferred to PhMypAdmin on Open Server
Errors appeared in the browser:
arr/public_html
Warning: require(D:/ASITES/arr/bitrix/header.php): failed to open stream: No such file or directory in D:\ASITES\arr\public_html\index.php on line 2
Fatal error: require() : Failed opening required 'D:/ASITES/arr/bitrix/header.php' (include_path='.;w:/modules/php/PHP-7.1-x64;w:/modules/php/PHP-7.1-x64/ PEAR/pear') in D:\ASITES\arr\public_html\index.php on line 2
The index.php file on page 2 refers to the link. header.php
require($_SERVER[“DOCUMENT_ROOT”]."/bitrix/header.php");
header.php links to prolog.php

<?require_once($_SERVER[“DOCUMENT_ROOT”]."/bitrix/modules/main/include/prolog.php");?>

prolog.php

<?
require_once(dirname(FILE)."/…/bx_root.php");

if (file_exists($_SERVER[“DOCUMENT_ROOT”].BX_PERSONAL_ROOT."/html_pages/.enabled"))
{
require_once(dirname(FILE)."/…/lib/composite/responder.php");
Bitrix\Main\Composite\Responder::respond();
}

require_once(dirname(FILE)."/prolog_before.php");
require($_SERVER[“DOCUMENT_ROOT”].BX_ROOT."/modules/main/include/prolog_after.php");

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question