Apache 需要帮助配置phabricator吗

Apache 需要帮助配置phabricator吗,apache,phabricator,Apache,Phabricator,我厌倦了用的指令配置phabricator 我将主机名配置为包含一个点。 我在描述中做了所有的事情,但是如果我导航到我设置的主机名,我只会看到默认的apache2页面,而不会看到phabricator。我不确定是否正确设置了httpd.conf,因为在我的系统上找不到/-name httpd.conf。根据以下信息,我在/etc/apache2/sites enabled/000-default.conf处进行了建议配置: : 当我重新启动apache2ctl时,它说很难确定服务器的域名。所以/

我厌倦了用的指令配置phabricator 我将主机名配置为包含一个点。 我在描述中做了所有的事情,但是如果我导航到我设置的主机名,我只会看到默认的apache2页面,而不会看到phabricator。我不确定是否正确设置了httpd.conf,因为在我的系统上找不到/-name httpd.conf。根据以下信息,我在/etc/apache2/sites enabled/000-default.conf处进行了建议配置:

:

当我重新启动apache2ctl时,它说很难确定服务器的域名。所以/etc/hosts可能是个问题,但因为我看到了默认的apache2,所以服务器已经启动并运行了。您是否需要放置一个特殊的:端口来查看phabricator的配置


欢迎提供任何帮助。

如果您在安装过程中仍然需要帮助,请更新此问题,我将很乐意提供更多信息。我认为您需要在httpd.conf上的目录之后添加以下内容:

重新启动发动机 重写规则^/rsrc/()-[L,QSA] 重写规则^/favicon.ico-[L,QSA] 重写规则^(.)$/index.php?path=$1[B,L,QSA]

这可能会解决你的问题。还要确保(对于Ubuntu)您的documenROot和目录以“webroot”而不是webroot/结尾

-Apache端口默认为80,Mysql端口默认为3306

VirtualHost*:80上的端口是Apache的端口。您需要记住这一点,因为稍后需要在MySQL配置页面上指定MySQL端口。

1)转到/etc/apache2/sites available。删除所有*.conf文件

2) 在此处创建包含以下内容的phabricator.conf文件:

<VirtualHost *>
    # Change this to the domain which points to your host.
    ServerName yourservername

    # 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]

    <Directory "/path/to/phabricator/webroot">
            Require all granted
    </Directory>

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo a2ensite phabricator
sudo service apache2 restart