s.chornyi Posted October 30, 2013 Share Posted October 30, 2013 Добрый день, Прошу помощи, в галереи при загрузке в альбом фото выдает ошибку "Сервер вернул ошибку во время загрузки"И фотка помечается как не загружена.В чем может быть проблема? Link to comment Share on other sites More sharing options...
s.chornyi Posted October 30, 2013 Author Share Posted October 30, 2013 Обнаружил, что не только в галерею не загружается, после обновления на IP.Board 3.4.6 любое вложение выдает ошибку.Файлы .htaccess пересоздавал, но эффекта не прислонило.Заранее спасибо. Link to comment Share on other sites More sharing options...
Атаман Posted October 30, 2013 Share Posted October 30, 2013 права 777 Link to comment Share on other sites More sharing options...
s.chornyi Posted October 30, 2013 Author Share Posted October 30, 2013 Так точно! Link to comment Share on other sites More sharing options...
s.chornyi Posted October 31, 2013 Author Share Posted October 31, 2013 Ниже лог ошибок: [Thu Oct 31 10:39:56 2013] [error] [client 193.19.84.89] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/user:.) in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image&album_id=2 [Thu Oct 31 10:39:56 2013] [error] [client 193.19.84.89] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image&album_id=2 Что посоветуете? Link to comment Share on other sites More sharing options...
Dmitriy427 Posted October 31, 2013 Share Posted October 31, 2013 Указать правильный путь к папке uploads в настройках форума и галереи посоветуем. Link to comment Share on other sites More sharing options...
s.chornyi Posted October 31, 2013 Author Share Posted October 31, 2013 (edited) Спасибо за совет! Но... [Thu Oct 31 09:36:29 2013] [error] [client 193.19.84.89] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/teamspeak:.) in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image [Thu Oct 31 09:36:29 2013] [error] [client 193.19.84.89] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image [Thu Oct 31 10:39:56 2013] [error] [client 193.19.84.89] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/teamspeak:.) in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image&album_id=2 [Thu Oct 31 10:39:56 2013] [error] [client 193.19.84.89] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image&album_id=2 [Thu Oct 31 11:12:43 2013] [error] [client 193.19.84.89] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/teamspeak:.) in Unknown on line 0, referer: http://glori.org.ua/admincp/index.php?adsess=0fe90a0c7fe5abe9ed6cc2b7b19bf28d&app=core&module=languages§ion=manage_languages [Thu Oct 31 11:12:43 2013] [error] [client 193.19.84.89] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: http://glori.org.ua/admincp/index.php?adsess=0fe90a0c7fe5abe9ed6cc2b7b19bf28d&app=core&module=languages§ion=manage_languages [Thu Oct 31 11:13:53 2013] [error] [client 193.19.84.89] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/teamspeak:.) in Unknown on line 0, referer: http://glori.org.ua/admincp/index.php?adsess=0fe90a0c7fe5abe9ed6cc2b7b19bf28d&app=core&module=languages§ion=manage_languages&&do=language_do_import [Thu Oct 31 11:13:53 2013] [error] [client 193.19.84.89] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: http://glori.org.ua/admincp/index.php?adsess=0fe90a0c7fe5abe9ed6cc2b7b19bf28d&app=core&module=languages§ion=manage_languages&&do=language_do_import [Thu Oct 31 11:23:31 2013] [error] [client 193.19.84.89] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/teamspeak:.) in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image&album_id=2 [Thu Oct 31 11:23:31 2013] [error] [client 193.19.84.89] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image&album_id=2 [Thu Oct 31 11:32:41 2013] [error] [client 193.19.84.89] PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/teamspeak:.) in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image&album_id=2 [Thu Oct 31 11:32:41 2013] [error] [client 193.19.84.89] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: http://glori.org.ua/index.php?app=gallery&module=post§ion=image&album_id=2 Обзор > Настройки > IPS Apps > Настройки IP.Gallery Path to 'upload' directory - /home/teamspeak/www/glori.org.ua/uploads Upload form action domain - пусто Upload URL - http://glori.org.ua/uploads Обзор > Настройки > IPS Apps > Настройки IP.Gallery Директория для хранения изображений - /home/teamspeak/www/glori.org.ua/uploads URL для хранения изображений - http://glori.org.ua/uploads На папку (/home/teamspeak/www/glori.org.ua/uploads) и на все папки внутри CHMOD 777 Владелец (/home/teamspeak/www/glori.org.ua) всех папок и файлов - teamspeak Что еще нужно проверить? Edited October 31, 2013 by s.chornyi Link to comment Share on other sites More sharing options...
Dmitriy427 Posted October 31, 2013 Share Posted October 31, 2013 Хз. Скрипт пытается временный файл создать в недоступной для него директории... Пробела нет лишнего перед "/home/teamspeak/www/glori.org.ua/uploads"? Link to comment Share on other sites More sharing options...
s.chornyi Posted October 31, 2013 Author Share Posted October 31, 2013 (edited) Разобрался, всем спасибо!Огромная благодарность Zero108 за оказанную помощь. Решение:open_basedir папка для хранения временных файлов /tmp, к ней не имел доступ основной пользователь.Сделал владельцем пользователя (teamspeak*)* в моем случае. Edited October 31, 2013 by s.chornyi Link to comment Share on other sites More sharing options...
Dmitriy427 Posted October 31, 2013 Share Posted October 31, 2013 Пользователя вы зря поменяли, эта папка по умолчанию должна быть за пользователем root закреплена и chmod 1777 иметь, кто то там у вас шалит на сервере... Link to comment Share on other sites More sharing options...
s.chornyi Posted October 31, 2013 Author Share Posted October 31, 2013 Чуть-чуть не так, возможно не правильно выразился. /home/teamspeak/tmp - это символьная ссылка на /home/teamspeak/mod-tmp Владелец (www-data) /home/teamspeak/tmp а вот к папке не было доступа у пользователя (teamspeak) и он не был владельцем./home/teamspeak/mod-tmp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now