2012-04-27 4 views
0

새 클라이언트 중 하나가 Parallel Plesk 시스템에서 호스팅되며 내 프로젝트의 하위 도메인에 Codeigniter를 설치해야합니다. 이렇게하려면 웹 루트 위에있는 디렉터리에 파일을 배치해야하지만 유일한 문제는 Plesk가/private,/httpdocs &/httpsdocs를 제외한 모든 기본 디렉터리의 스크립트에 대한 액세스를 차단한다는 것입니다. 나는/개인에 내 응용 프로그램 & 시스템 파일을 업로드하지만, 다음과 같은 오류가 계속했다 : 나는/conf의 파일을 업로드 할 수 없습니다Plesk 서버 open_basedir 블록

Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/var/www/vhosts/example.com/private/system) is not within the allowed path(s): (/var/www/vhosts/example.com/httpdocs:/tmp) in /var/www/vhosts/example.com/httpdocs/sub-domains/dms/index.php on line 143

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/vhosts/example.com/private/system/) is not within the allowed path(s): (/var/www/vhosts/example.com/httpdocs:/tmp) in /var/www/vhosts/example.com/httpdocs/sub-domains/dms/index.php on line 152 Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

를, 그래서 내가 거기에 vhost.conf 파일을 배치 할 수 없습니다 그 일을 돌아 다니십시오. 어떤 아이디어?

답변

0

솔루션은 고객이 호스팅하는 Plesk의 버전과 호스팅 계정 또는 VPS/전용 호스팅 (Plesk에 대한 관리자 액세스 권한 있음)이 공유되어 있는지 여부에 따라 다릅니다.

버전이 10.4이고 Plesk에 대한 관리자 액세스 권한이 있거나 공유 호스팅 계정에서 사이트 이름을 클릭하고 "PHP 설정"탭을 열고 적절한 값을 " open_basedir "속성

이전 버전 또는 PHP 설정 관리 권한이 부여되지 않은 경우 호스팅 제공 업체에 vhost.conf 튜닝을 요청해야합니다.

또는 Plesk 10 이상인 경우 사용자 지정 폴더에 사이트를 넣을 수 있습니다. 따라서 "dir1/dir2"에 사이트를 만들고 docroot 위에 있어야하는 "dir1 /"파일에 배치하십시오.