A
A
Alexey Rusakov2011-09-26 13:40:21
1C-Bitrix
Alexey Rusakov, 2011-09-26 13:40:21

Transferring a site on Bitrix to another directory?

Hello everybody.
I want to move a site on Bitrix to another directory, from /var/www to /var/www/old . A simple transfer does not work, apparently SMS uses an absolute path.
I would like to know where this path can be changed, or is everything solved by backup and reinstallation?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
rasa, 2011-09-26
@rasa

Create a subdomain and move the old Bitrix to the root of the new subdomain?

L
la0, 2011-09-26
@la0

And good afternoon to you.
Immediately solution dev.1c-bitrix.ru/api_help/main/going_remote.php
But it seems that this setting is stored in the database and is defined in the process as SITE_DIR
Reason dev.1c-bitrix.ru/api_help/main/general/site/multisite.php
In general, Bitrix is ​​such a Bitrix ...

R
rakot, 2011-09-26
@rakot

Quick fix:
in index.php add the line $_SERVER["DOCUMENT_ROOT"] = '/var/www/old';
in my opinion, this variable is used by Bitrix

A
Alexander, 2014-11-10
Madzhugin @Suntechnic

If nothing is redefined anywhere, then the directory is taken from document_root, unless explicitly specified in the site settings:

Path to the root folder of the web server for this site

Desktop
Settings
Product settings
Sites
List of sites - select the required one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question