I solve the problem of transferring the site to Bitrix. There was a problem. From the console, * .nix unpacked from the archive the distribution kit of the previously deployed site, which was packaged in the taz format.

My actions further:

  1. Unpacked the archive with the tar command.

  2. Made a query to my database. There the base is called conditionally mybase. I watch the login and password of the root user. To do this, run the command:

    select * from mysql.user where user = 'root';

From there I get a login and password.

  1. On ftp-server I register in

    /bitrix/.settings.php and at /bitrix/php_interface/dbconn.php

    Access to the database: the name of the database, the root user and the password taken from the database, however I get the error:

    Warning: require_once(/home/kprealty/www/kprealty.sy.pro/bitrix/modules/main/include/prolog.php): failed to open stream: Permission denied in /home/kprealty/www/kprealty.sy.pro/bitrix/header.php on line 1 Fatal error: require_once(): Failed opening required '/home/kprealty/www/kprealty.sy.pro/bitrix/modules/main/include/prolog.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/kprealty/www/kprealty.sy.pro/bitrix/header.php on line 1

Filled to the server, the restore.php file to transfer data, but there also produced a lot of errors:

Warning: include_once (/home/kprealty/www/kprealty.sy.pro/bitrix/modules/main/include/urlrewrite.php): failed to open stream: Permission denied in /home/kprealty/www/kprealty.sy.pro /bitrix/urlrewrite.php on line 2

Warning: include_once (): Failed opening '/home/kprealty/www/kprealty.sy.pro/bitrix/modules/main/include/urlrewrite.php' for inclusion (include_path = '.: / Usr / share / php: / usr / share / pear ') in /home/kprealty/www/kprealty.sy.pro/bitrix/urlrewrite.php on line 2

Warning: include_once (/home/kprealty/www/kprealty.sy.pro/404.php): failed to open stream: Permission denied in /home/kprealty/www/kprealty.sy.pro/bitrix/urlrewrite.php on line four

Warning: include_once (): Failed opening '/home/kprealty/www/kprealty.sy.pro/404.php' for inclusion (include_path = '.: / Usr / share / php: / usr / share / pear') in /home/kprealty/www/kprealty.sy.pro/bitrix/urlrewrite.php on line 4

How to deal with it, and what is the general reason? I worked on bitrix a little and it was a long time ago and it is not true, therefore I ask for help from specialists, who can suggest this. I would be grateful to hear the answers and advice from people working with Bitrix.

  • one
    In fact, Bitrix has a restore.php file for such actions, which performs the transfer of archives, unpacking and scanning the base dump. You could not completely unpack the archive via the console, if it was not from one part, and you should use standard tools for transfer if you have them. - Nikolaj Sarry
  • I used it, but it also gives me errors: this is the Talmud there. See my question, added it. - IntegralAL

1 answer 1

The problem with access rights.

1) Check the user rights under which bitrix and the Web server are working.

2) Check the permissions of the file /home/kprealty/www/kprealty.sy.pro/bitrix/header.php

3) Check out selinux #getenforce

  • 1. I sit under the user, how many rights I do not know, to be honest. 2. Everything is fine there, rights 777. 3. I did not use commands in Linux, I find it difficult to say what this command should give me. - IntegralAL
  • Rights 777 where? All files in all directories and subdirektoriyah? You have a right problem with the rights. Getenforce should give an answer. In what mode is selinux. enforcing, permissive or disabled - Alexandr Blinov
  • Yes, with the rights ... I can not help it. I am waiting for a decision from the management regarding the expansion of my rights ... Thanks for the answers. - IntegralAL