SMF

C
На сайте с 02.09.2008
Offline
38
1552

Подскажите пожалуйста, форум SMF на локалхосте работает, а вот при заливкe на хостинг выдаёт ошибку. Типа испрвьте на линии 52, т.е. я так понимаю, что не указан путь к settings.php, на линии 52 вот такая пропись require_once(dirname(__FILE__) . '/Settings.php'); но нужно указать путь, но я не разбирюсь, кто поможет...

Такси в Крыму (http://taxicrimea.ru/).Встречи и проводы гостей Обмен статьями: МЕДИЦИНА, ТУРИЗМ, НЕДВИЖИМОСТЬ
[Удален]
#1

dirname(__FILE__) . '/Settings.php

поменяйте на 'http://www.mysite.com/pyt_k_faily/settings.php'

C
На сайте с 02.09.2008
Offline
38
#2
Duda:
dirname(__FILE__) . '/Settings.php
поменяйте на 'http://www.mysite.com/pyt_k_faily/settings.php'

не получается прописал путь require_once(dirname(http://www.crimealawyers.com/forum/settings.php) . '/Settings.php');

topy
На сайте с 28.03.2006
Offline
142
#3

Права на Settings.php какие стоят???

Новости коротко и ясно (https://subnews.ru)
dendesoft
На сайте с 29.05.2008
Offline
71
#4

Открывай файл конфига форума и исправляй путь к форуму. Возможно неправильно прописан путь к форуму в настройках интегратора (если стоит)

C
На сайте с 02.09.2008
Offline
38
#5
topy:
Права на Settings.php какие стоят???

Права на фаил стоят 777

Crimeaboy добавил 10.01.2009 в 19:23

dendesoft:
Открывай файл конфига форума и исправляй путь к форуму. Возможно неправильно прописан путь к форуму в настройках интегратора (если стоит)

Я просто не знаю что и куда писать, прошу помощи:

<?php

/**********************************************************************************
* Settings.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com) *
* =============================================================================== *
* Software Version: SMF 2.0 Beta 4 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2008 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
**********************************************************************************/


########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable! Change it to 0 to fix it.
$maintenance = 0; # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle = 'Maintenance Mode'; # Title for the Maintenance Mode message.
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!'; # Description of why the forum is in maintenance mode.

########## Forum Info ##########
$mbname = 'Юридический форум'; # The name of your forum.
$language = 'russian-utf8'; # The default language file set for the forum.
$boardurl = 'http://crimealawyers.com/forum'; # URL to your forum's folder. (without the trailing /!)
$webmaster_email = 'info@crimealawyers.com'; # Email address to send emails from. (like noreply@yourdomain.com.)
$cookiename = 'SMFCookie46'; # Name of the cookie to set for authentication.

########## Database Info ##########
$db_type = 'mysql';
$db_server = 'localhost';
$db_name = 'forum';
$db_user = 'crimeaboy';
$db_passwd = 'XXXXX';
$ssi_db_user = '';
$ssi_db_passwd = '';
$db_prefix = 'smf_';
$db_persist = 0;
$db_error_send = 1;

########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = 'C:\\Program Files\\VertrigoServ\\www\\forum'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = 'C:\\Program Files\\VertrigoServ\\www\\forum/Sources'; # Path to the Sources directory.
$cachedir = 'C:\\Program Files\\VertrigoServ\\www\\forum/cache'; # Path to the cache directory.

########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error = 0;


# Make sure the paths are correct... at least try to fix them.
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
$boarddir = dirname(__FILE__);
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
$sourcedir = $boarddir . '/Sources';
if (!file_exists($cachedir) && file_exists($boarddir . '/cache'))
$cachedir = $boarddir . '/cache';

$db_character_set = 'utf8';
?>
V@der
На сайте с 22.11.2007
Offline
96
#6


$boarddir = 'C:\\Program Files\\VertrigoServ\\www\\forum'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = 'C:\\Program Files\\VertrigoServ\\www\\forum/Sources'; # Path to the Sources directory.
$cachedir = 'C:\\Program Files\\VertrigoServ\\www\\forum/cache'; # Path to the cache directory.

менять на


$boarddir = '/home/crimeaboy/domains/crimealawyers.com/public_html/forum'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/crimeaboy/domains/crimealawyers.com/public_html/forum/Sources'; # Path to the Sources directory.
$cachedir = '/home/crimeaboy/domains/crimealawyers.com/public_html/forum/cache'; # Path to the cache directory.

А вообще - RTFM. :)

C
На сайте с 02.09.2008
Offline
38
#7
V@der:

$boarddir = 'C:\\Program Files\\VertrigoServ\\www\\forum'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = 'C:\\Program Files\\VertrigoServ\\www\\forum/Sources'; # Path to the Sources directory.
$cachedir = 'C:\\Program Files\\VertrigoServ\\www\\forum/cache'; # Path to the cache directory.

менять на

$boarddir = '/home/crimeaboy/domains/crimealawyers.com/public_html/forum'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/crimeaboy/domains/crimealawyers.com/public_html/forum/Sources'; # Path to the Sources directory.
$cachedir = '/home/crimeaboy/domains/crimealawyers.com/public_html/forum/cache'; # Path to the cache directory.

А вообще - RTFM. :)

Поменял, но не помогает http://crimealawyers.com/forum/index.php - посмотрите плз ошибку....

V@der
На сайте с 22.11.2007
Offline
96
#8

Нет файла Settings.php в директории форума

http://crimealawyers.com/forum/Settings.php - 404

C
На сайте с 02.09.2008
Offline
38
#9
V@der:
Нет файла Settings.php в директории форума
http://crimealawyers.com/forum/Settings.php - 404

Так в том и то и дело что он там есть.....

[Удален]
#10
Crimeaboy:
Так в том и то и дело что он там есть.....

1) Проверьте права на Settings.php, еще раз. Должно быть не ниже 644.

2) Проверьте еще раз строки в Settings.php, в которых прописан локальный путь к файлам форума.

Должно быть так:


$boarddir = '/usr/home/crimeaboy/domains/crimealawyers.com/public_html/forum'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/usr/home/crimeaboy/domains/crimealawyers.com/public_html/forum/Sources'; # Path to the Sources directory.
$cachedir = '/usr/home/crimeaboy/domains/crimealawyers.com/public_html/forum/cache'; # Path to the cache directory.

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий