Jump to content

Не загружаются фото в Галерею v5.0.5, IP.Board 3.4.6


Recommended Posts

Добрый день,

Прошу помощи, в галереи при загрузке в альбом фото выдает ошибку "Сервер вернул ошибку во время загрузки"

И фотка помечается как не загружена.

В чем может быть проблема?

 

gal1541247.jpg

Link to comment
Share on other sites

Обнаружил, что не только в галерею не загружается, после обновления на IP.Board 3.4.6 любое вложение выдает ошибку.

Файлы .htaccess пересоздавал, но эффекта не прислонило.

Заранее спасибо.

Link to comment
Share on other sites

Ниже лог ошибок:

[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&section=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&section=image&album_id=2

Что посоветуете?

Link to comment
Share on other sites

Спасибо за совет!

 

Но...

 

[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&section=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&section=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&section=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&section=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&section=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&section=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&section=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&section=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&section=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&section=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&section=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&section=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 by s.chornyi
Link to comment
Share on other sites

Хз. Скрипт пытается временный файл создать в недоступной для него директории... Пробела нет лишнего перед "/home/teamspeak/www/glori.org.ua/uploads"?

Link to comment
Share on other sites

Разобрался, всем спасибо!

Огромная благодарность Zero108 за оказанную помощь.

 

Решение:

open_basedir папка для хранения временных файлов /tmp, к ней не имел доступ основной пользователь.

Сделал владельцем пользователя (teamspeak*)

* в моем случае.

Edited by s.chornyi
Link to comment
Share on other sites

Пользователя вы зря поменяли, эта папка по умолчанию должна быть за пользователем root закреплена и chmod 1777 иметь, кто то там у вас шалит на сервере...

Link to comment
Share on other sites

Чуть-чуть не так, возможно не правильно выразился.

 

/home/teamspeak/tmp

- это символьная ссылка на

/home/teamspeak/mod-tmp

 

Владелец (www-data)

/home/teamspeak/tmp

 

а вот к папке не было доступа у пользователя (teamspeak) и он не был владельцем.

/home/teamspeak/mod-tmp

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...