Phabricator 설정 마법사
이 문 서 는 Phabricator 에 필요 한 가장 기본 적 인 설정 안 내 를 포함 하고 있 습 니 다.
전제 조건
이 문 서 는 필요 한 모든 구성 요 소 를 설치 했다 고 가정 합 니 다.없 으 면 설치 마법 사 를 보십시오.
다음 단계:
메모: 아파 치 설정 안내 입 니 다.nginx 나 lighttpd 를 사용 하면 해당 부분 으로 미 끄 러 지 십시오.
Apache 를 실행 하고 테스트 페이지 를 사용 하여 정상적으로 작 동 하 는 지 확인 합 니 다.문제 가 있 으 면 아파 치 도움말 문 서 를 보십시오.확보 modphp 와 modrewrite 활성화, SSL 을 설정 하면 mod 를 켜 십시오ssl 모듈.
설치 할 호스트 를 가리 키 는 도 메 인 이름 을 설정 하지 않 았 다 면.Phabricator 를 2 급 도 메 인 이름 (예 를 들 어 phabricator. example. com) 이나 전체 도 메 인 이름 에 설치 할 수 있 지만 이미 존재 하 는 사이트 의 키 디 렉 터 리 에 설치 할 수 없습니다.아파 치가 정상적으로 서 비 스 를 할 수 있 도록 설치 할 도 메 인 이름 을 입력 하고 DNS 가 올 바 르 게 설정 되 어 있 습 니 다.
메모: 도 메 인 이름 은 이름 뿐만 아니 라 점 (.) 을 포함해 야 합 니 다.http://example/。그렇지 않 으 면 일부 웹 브 라 우 저 는 cookies 를 설정 할 수 없습니다.
이제 VirtualHost 항목 을 만 들 거나 Directory 항목 을 편집 하 는 DocumentRoot 를 만 들 수 있 습 니 다.아래 와 같이:
httpd.conf
<VirtualHost *>
# Change this to the domain which points to your host.
ServerName phabricator.example.com
# Change this to the path where you put 'phabricator' when you checked it
# out from GitHub when following the Installation Guide.
#
# Make sure you include "/webroot" at the end!
DocumentRoot /path/to/phabricator/webroot
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
</VirtualHost>
현재 아파 치 설정 이 Phabricator 문서 디 렉 터 리 서 비 스 를 제공 하지 못 한다 면 httpd. conf 에 다음 부분 을 추가 해 야 합 니 다.
<Directory "/path/to/phabricator/webroot">
Order allow,deny
Allow from all
</Directory>
변경 후 아파 치 를 다시 시작 하고 아래 설정 단계 로 이동 합 니 다.
WEB 서버: nginx 설정
NOTE: Follow these instructions to use nginx. To use Apache or lighttpd, scroll to their sections.
For nginx, use a configuration like this:
nginx.conf
server {
server_name phabricator.example.com;
root /path/to/phabricator/webroot;
try_files $uri $uri/ /index.php;
location / {
index index.php;
if ( !-f $request_filename )
{
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
break;
}
}
location /index.php {
fastcgi_pass localhost:9000;
fastcgi_index index.php;
#required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
#variables to make the $_SERVER populate in PHP
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
}
}
Restart nginx after making your edits, then continue to "Setup" below.
WEB 서버: lighttpd 설정
NOTE: Follow these instructions to use lighttpd. To use Apache or niginx, scroll up to their sections.
For lighttpd, add a section like this to your lighttpd.conf:
$HTTP["host"] =~ "phabricator(\.example\.com)?" {
server.document-root = "/path/to/phabricator/webroot"
url.rewrite-once = (
"^(/rsrc/.*)$" => "$1",
"^(/favicon.ico)$" => "$1",
# This simulates QSA ("query string append") mode in apache
"^(/[^?]*)\?(.*)" => "/index.php?__path__=$1&$2",
"^(/.*)$" => "/index.php?__path__=$1",
)
}
You should also ensure the following modules are listed in your server.modules list:
mod_fastcgi mod_rewrite
Finally, you should run the following commands to enable php support:
$ sudo apt-get install php5-cgi # for ubuntu; other distros should be similar
$ sudo lighty-enable-mod fastcgi-php
Restart lighttpd after making your edits, then continue below.
설치 하 다.
현재 설정 한 도 메 인 이름 을 입력 하 십시오.설정 안 내 를 볼 수 있 습 니 다.문서 의 나머지 부분 은 다른 구체 적 인 설정 절차 에 대한 추가 설명 이다.
저장 소: MySQL 설정
설정 중, MySQL 을 설정 해 야 합 니 다.MySQL 을 실행 하여 정상적으로 연결 할 수 있 는 지 확인 합 니 다.문제 가 있 으 면 MySQL 도움말 문 서 를 참고 하 세 요.MySQL 이 정상적으로 작 동 하려 면 Phabricator 모드 를 불 러 오고 명령 을 실행 해 야 합 니 다.
phabricator/ $ ./bin/storage upgrade
데이터 베 이 스 를 연결 하기 위해 특권 이 없 는 사용 자 를 설정 하면 루트 사용자 나 다른 관리자 로 다시 설정 해 야 합 니 다.
phabricator/ $ ./bin/storage upgrade --user <user> --password <password>
You can avoid the prompt the script issues by passing the --force flag (for example, if you are scripting the upgrade process).
phabricator/ $ ./bin/storage upgrade --force
NOTE: When you update Phabricator, run storage upgrade again to apply any new updates.
다음 단계
계속:
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
자주 사용되는 명령adb 핸드폰에서 현재 Activity가 실행 중인 패키지 이름 보기 명령줄에 다음을 입력합니다. adb 송신 전원 켜기 핸드폰 캡처 활성화 캡처 내보내기 새 keystroe {FILENAME.keystore} 생성...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.