1

Тема: Ошибка при установке: Internal Server Error; open_basedir в php.ini

Решил посмотреть CMS , но установить не получается :

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator,  and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g Server at allweddingideas.org Port 80

Пробовал дистрибутив с расширениями и без, все по инструкции - скачал, распаковал, изменил права и запустил. В чем может быть проблема ?

2

Re: Ошибка при установке: Internal Server Error; open_basedir в php.ini

Скорее всего проблема в том, что веб-сервер не понимает чего-то в .htaccess. Загляните в лог ошибок, чтобы понять, в чем именно проблема.

Чтобы попробовать движок, можно удалить .htaccess (он нужен для красивых URL: http://s2cms.ru/docs/config#URL)

3

Re: Ошибка при установке: Internal Server Error; open_basedir в php.ini

Посмотрите еще это обсуждение: http://s2cms.ru/forum/topic/49/

4

Re: Ошибка при установке: Internal Server Error; open_basedir в php.ini

Ошибка, похожая на то что было в обсуждении . Сначала убрал multiview, по потом и вовсе удалил .htaccess.  Теперь другая беда - http://clip2net.com/s/1rc88 
An error was encountered

The file 'config.php' doesn't exist or is corrupt.
Do you want to install S2?

Если пробовать установить дальше, выходит

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../config.php) is not within the allowed path(s): (.) in /var/www/allweddingideas/data/www/allweddingideas.org/_admin/install.php on line 22

Warning: require() [function.require]: open_basedir restriction in effect. File(../_include/functions.php) is not within the allowed path(s): (.) in /var/www/allweddingideas/data/www/allweddingideas.org/_admin/install.php on line 37

Warning: require(../_include/functions.php) [function.require]: failed to open stream: Operation not permitted in /var/www/allweddingideas/data/www/allweddingideas.org/_admin/install.php on line 37

Fatal error: require() [function.require]: Failed opening required '../_include/functions.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/allweddingideas/data/www/allweddingideas.org/_admin/install.php on line 37

Не судьба на мой хостинг установить ?

5

Re: Ошибка при установке: Internal Server Error; open_basedir в php.ini

Дело, очевидно, в настройке open_basedir из php.ini. Я бы рекомендовал обратиться в техническую поддержку хостинга, чтобы убрать (или хотя бы ослабить) это ограничение.

Если они откажут, в качестве эксперимента можно попробовать следующее. В документации написано:

Специальное значение . обозначает, что рабочая директория скрипта будет использована в качестве базовой директории. Однако, это немного опасно, так как текущая директория скрипта может быть легко изменена с помощью chdir().

Попробуйте значение константы S2_ROOT подставить в функцию chdir(), а саму константу S2_ROOT определить как './'. Например, строчка

define('S2_ROOT', '../');

должна превратиться в

chdir('../');
define('S2_ROOT', './');

Определение константы встречается в следующих файлах:

comment.php
    Line 10: define('S2_ROOT', './');
index.php
    Line 14: define('S2_ROOT', './');
sqtest.php
    Line 3: define('S2_ROOT', './');
_admin/index.php
    Line 12: define('S2_ROOT', '../');
_admin/install.php
    Line 18: define('S2_ROOT', '../');
_admin/pictman.php
    Line 12: define('S2_ROOT', '../');
_admin/pict_ajax.php
    Line 12: define('S2_ROOT', '../');
_admin/site_ajax.php
    Line 12: define('S2_ROOT', '../');
_extensions/s2_latex/latex.php
    Line 11: define('S2_ROOT', '../../');
_extensions/s2_search/ajax.php
    Line 13: define('S2_ROOT', '../../');

6

Re: Ошибка при установке: Internal Server Error; open_basedir в php.ini

Спасибо за помощь, разобрался.  Была беда с настройкой сервера.

7

Re: Ошибка при установке: Internal Server Error; open_basedir в php.ini

Пожалуйста :)