2009-12-07 4 views
0

아바타가 내 사이트에 업로드 될 때이 오류가 발생합니다. 내 서버의 php.ini 파일에서 "open_basedir =/home /"을 "open_basedir ="으로 변경했습니다. 그것은 전용 서버이고 조정 후 재부팅했습니다.open_basedir가 아바타 업로드를 막는 중 오류가 발생했습니다.

Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/source:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/source/public_html/lib/php/tru/directory.php on line 46 



Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/source:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/source/public_html/lib/php/tru/directory.php on line 46 

이 문제를 해결하려면 어떻게해야합니까?

+0

하나의 php.ini 파일 만 가지고 있는지 확인 했습니까? 다시 부팅 할 필요가 없습니다. apachectl을 다시 시작하여 아파치를 다시 시작하십시오. http://www.electrictoolbox.com/article/apache/restart-apache/ – Cups

답변

0

문제는 open_basedir과 관련이 없습니다. 이미지 업로드에 문제가 있습니다. 오류 메시지를 자세히 살펴보십시오.

File(/) is not within the allowed path(s): 

파일 이름/경로가 있어야하는 곳에 빈 변수가 있습니다.

관련 문제