Настройка Bitrix
Поменять IP-адрес в Bitrix:
[root@bx4] /var/db/mysql/> mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.1.25
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> grant all privileges on test.* to "bitrix"@"10.1.2.97" identified by "bitrix";
mysql> flush privileges;
mysql> grant all privileges on bitrix.* to "bitrix"@"10.1.2.97" identified by "bitrix";
mysql> flush privileges;
mysql> grant all privileges on mysql.* to "bitrix"@"10.1.2.97" identified by "bitrix";
mysql> flush privileges;
mysql> exit
Bye
[root@bx4] /var/db/mysql/>
[root@bx4] /var/db/mysql/> mysqlshow -u root -p
Enter password:
+-----------+
| Databases |
+-----------+
| bitrix |
| mysql |
| test |
+-----------+
[root@bx4] /var/db/mysql/>
Поменять здесь IP-шник
[root@bx] /data/www/htdocs/bitrix/php_interface/> cat dbconn.php
<?
define("DBPersistent", false);
$DBType = "mysql";
$DBHost = "10.1.2.97";
$DBLogin = "bitrix";
$DBPassword = "bitrix";
$DBName = "bitrix";
$DBDebug = false;
$DBDebugToFile = false;
@set_time_limit(60);
define("DELAY_DB_CONNECT", true);
define("CACHED_b_file", 3600);
define("CACHED_b_file_bucket_size", 10);
define("CACHED_b_lang", 3600);
define("CACHED_b_option", 3600);
define("CACHED_b_lang_domain", 3600);
define("CACHED_b_site_template", 3600);
define("CACHED_b_event", 3600);
define("CACHED_b_agent", 3660);
define("CACHED_menu", 3600);
define("BX_CACHE_TYPE", "APC");
define("BX_UTF", true);
define("BX_FILE_PERMISSIONS", 0644);
define("BX_DIR_PERMISSIONS", 0755);
@umask(~BX_DIR_PERMISSIONS);
?>
[root@bx] /data/www/htdocs/bitrix/php_interface/>
Поменять IP-адрес в Bitrix:
[root@bx4] /var/db/mysql/> mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.1.25
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> grant all privileges on test.* to "bitrix"@"10.1.2.97" identified by "bitrix";
mysql> flush privileges;
mysql> grant all privileges on bitrix.* to "bitrix"@"10.1.2.97" identified by "bitrix";
mysql> flush privileges;
mysql> grant all privileges on mysql.* to "bitrix"@"10.1.2.97" identified by "bitrix";
mysql> flush privileges;
mysql> exit
Bye
[root@bx4] /var/db/mysql/>
[root@bx4] /var/db/mysql/> mysqlshow -u root -p
Enter password:
+-----------+
| Databases |
+-----------+
| bitrix |
| mysql |
| test |
+-----------+
[root@bx4] /var/db/mysql/>
Поменять здесь IP-шник
[root@bx] /data/www/htdocs/bitrix/php_interface/> cat dbconn.php
<?
define("DBPersistent", false);
$DBType = "mysql";
$DBHost = "10.1.2.97";
$DBLogin = "bitrix";
$DBPassword = "bitrix";
$DBName = "bitrix";
$DBDebug = false;
$DBDebugToFile = false;
@set_time_limit(60);
define("DELAY_DB_CONNECT", true);
define("CACHED_b_file", 3600);
define("CACHED_b_file_bucket_size", 10);
define("CACHED_b_lang", 3600);
define("CACHED_b_option", 3600);
define("CACHED_b_lang_domain", 3600);
define("CACHED_b_site_template", 3600);
define("CACHED_b_event", 3600);
define("CACHED_b_agent", 3660);
define("CACHED_menu", 3600);
define("BX_CACHE_TYPE", "APC");
define("BX_UTF", true);
define("BX_FILE_PERMISSIONS", 0644);
define("BX_DIR_PERMISSIONS", 0755);
@umask(~BX_DIR_PERMISSIONS);
?>
[root@bx] /data/www/htdocs/bitrix/php_interface/>
Комментариев нет:
Отправить комментарий