Phabricator Build on Mac

Source: Internet
Author: User
Tags install php git clone

Environment: OS X Yosemite 10.10.5

Premise: Phabricator is mainly written by PHP, and is run in website mode, so the Mac must first install PHP + nginx (or Apache) + MySQL (many configurations will be saved in the database)

Php/nginx/mysql environment construction can be referenced as follows:

http://blog.qiji.tech/archives/132

http://blog.csdn.net/dyllove98/article/details/41120789

Phabricator Installation:

One, clone key components from GitHub

First in this machine to build a root directory, this article is: ~/app/phabricator (the following with $base_dir instead of the root directory), and then

git clone https://github.com/facebook/libphutil.gitgit clone https://github.com/facebook/arcanist.gitgit clone HTTPS ://github.com/facebook/phabricator.git

Second, modify Nginx configuration file

    server {Listen 80;      server_name pha.yjmyzz.me;      Root/users/yjmyzz/app/phabricator/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;        Fastcgi_param Redirect_status 200;        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; }    }

Add the above paragraph, note that after the server_name domain name and root directory to be replaced by their own actual parameters.

Iii. phabricator Start-Up and configuration

Directly php-fpm and Nginx start, and then browse http://pha.yjmyzz.me/(that is, the server configuration in the Nginx domain name, the native configuration, you can increase in the hosts 127.0.0.1 Pha.yjmyzz.me for easy testing), you can see the following interface:

It means that MySQL is not configured, the system can not connect to MySQL, note the following 4 lines of command, has told you how to deal with it, press its prompt to go to the line, command line, enter the root directory, enter the following command:

$BASR _dir/bin/config set mysql.host localhost

$BASR _dir/bin/config Set Mysql.port 3306

$BASR _dir/bin/config Set Mysql.user root

$BASR _dir/bin/config Set Mysql.pass * * * (replace with your password) 

Note: It is a good idea to prepare a dedicated MySQL instance because Phabricator creates a bunch of databases during initialization, such as:

After setting up, browse the interface just now, you can go in, maybe the 1th time will also prompt to create an administrator account what, follow the prompts to be able.

After entering the main interface, you will see:

In the upper left corner there is a hint: you havexx unresolved setup issues ... this is to tell you there are other configuration items need to be configured, click on this link to see the hint to match.

Reference article:

Https://liuzhichao.com/p/1981.html

http://phabricator.org/

Phabricator Build on Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.