2014-07-26 235 views
0

我累了配置phabricator指令https://secure.phabricator.com/book/phabricator/article/configuration_guide/ 我配置我的主机名包含一个点。 我做了所有描述,但如果我导航到我设置的主机名,我只能看到默认的apache2页面而不是phabricator。我不确定我是否正确设置了httpd.conf,因为我没有在我的系统上找到/ -name httpd.conf。我提出建议的配置在/etc/apache2/sites-enabled/000-default.conf accourding到这样的信息:需要帮助配置phabricator

http://wiki.apache.org/httpd/DistrosDefaultLayout#Debian.2C_Ubuntu_.28Apache_httpd_2.x.29

当我apache2ctl重新启动它说,有difficutlies确定服务器的域名。所以/ etc/hosts可能会有问题,但由于我看到默认的apache2,服务器已启动并正在运行。你需要把一个特殊的端口看到phabricator的配置?

任何帮助欣赏。

回答

0

如果您仍然需要安装帮助,请更新此问题,我乐意提供更多信息。我认为你需要在httpd.conf文件目录后补充一点:(

RewriteEngine叙述上 重写规则^/RSRC/- [L,QSA] 重写规则^/favicon.ico的 - [L,QSA] RewriteRule ^(。)$ /index.php? 路径 = $ 1 [B,L,QSA]

这可能会解决您的问题。另外确保(对于Ubuntu),您确实已将您的documenROot和Directory以“webroot”而非webroot /结尾。

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

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

1

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> 

3)请确保您输入正确的路径在phabricator.conf您phabricator目录。

4)转至/ etc/apache2/sites-enabled。删除所有符号链接。

5)执行以下命令:

sudo a2ensite phabricator 
sudo service apache2 restart