B
B
brar2018-12-19 15:04:51
Apache HTTP Server
brar, 2018-12-19 15:04:51

Why does the site not work after transferring 1c-bitrix to a new server?

On a clean server, unpacked the site archive. I registered the site in Apache. Created a database with a user specified in bitrix/php_interface/dbconn.php and bitrix/.settings.php. Filled it with a dump of sql from a portable site. That is, everything is standard here, the procedure with other CMS was done 1000 times, but not with Bitrix.
And the site on the new server displays only text, there are no pictures, everything is crooked, and there are also lines from the code on the page. For example, here is the first paragraph of text in the browser (I replaced the keywords of the site description and so on with blabla):

SetPageProperty("keywords_inner", "bla-bla-bla"); $APPLICATION->SetPageProperty("title", "blablabla"); $APPLICATION->SetPageProperty("description", "blablabla."); $APPLICATION->SetTitle("blabla"); ?>
'да'); $APPLICATION->IncludeComponent("aplix:block", "property_slider", array()); ?>

And many more like it.
In the Apache log everything is clogged:
PHP Notice:  Use of undefined constant SITE_TEMPLATE_PATH - assumed 'SITE_TEMPLATE_PATH' in /%path_to_site_folder%/index.php

The rights to the site directory are fine.
For the sake of interest, I stopped mariadb-server. Everything is the same => it doesn't reach queries to mysql.
Tried to use nginx+php-fpm. Everything is one to one, as with Apache.
The search by mistake leads to a question on the toaster, but there the TC solved the problem by loading the template. I'm sure it's not my method. Because the site from which the archive was made is still in operation and everything is ok with it. But I don't have ssh access to it.
Where to dig, tell me, pliz?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
latishew, 2018-12-26
@brar

short_open_tag onin php.ini it should be, maybe it is

A
Alexey Bespalov, 2018-12-19
@FreeArcher

You have problems with the composition, something didn’t fill up.
Bitrix does not find a directory with pictures and a directory with a template.
/home/bitrix/www/uloads
/home/bitrix/www/bitrix/tamplates/template_name
+
/home/bitrix/www/ should contain directories according to the site structure such as catalog, news, abaut, personal, etc. what you had there.
And yes, there are standard backups in Bitrix, maybe it will be more reliable to deploy through them. We need a restore.php file from the office. site can be downloaded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question