最近朋友工作有用到phabricator,因此也想在家中試試看,但根據一些教學操作沒能成功,網頁最後都是無回應,小弟剛接觸server不久,做錯得部份還忘大神指正
以下是我的配置
Ubuntu 22.04 LTS
nginx/1.18.0 (Ubuntu)
PHP 7.1.33-47+ubuntu22.04.1+deb.sury.org+1 (cli)
MySql
nginx server配置
server {
#listen 81;
server_name phabricator.jackexample.com;
#server_name 127.0.0.1;
root /var/www/pha/phabricator/webroot;
location / {
index index.php;
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
}
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;
}
}
從 netstat來看 php和nginx應該有在監聽
tcp6 0 0 :::9000 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
防火牆狀態
sudo ufw status
狀態:不活動
運行的結果
以下是我參考的資料
https://cloud.tencent.com/developer/article/1609447
https://secure.phabricator.com/book/phabricator/article/installation_guide/
那個.....
你要不要先試試一下 localhost 連看看一下。或是127.0.0.1試試??
還是??你認為設定好
server_name phabricator.jackexample.com;
你的瀏覽器就知道 phabricator.jackexample.com 在哪了??