Coder Social home page Coder Social logo

phpcoins's Introduction

PHPCoins开源比特币交易平台系统V1.0发布

PHPCoins开源比特币交易平台系统V1.0发布

----功能特性-----

比特币转入转出

钱包自动生成

人民币充值提现

比特币买卖

实时挂单列表

实时交易列表

实时K线图

Google双重验证

支持SSL

-----安装需要--------

Linux 2.6+,Apache 2.4+,Mysql 5.6+, PHP 5.5+

PDO扩展

GD扩展

Bitcoind 0.8+

-----安装步骤---------

Ubuntu安装bitcoind

$ sudo add-apt-repository ppa:bitcoin/bitcoin

$ sudo apt-get update

$ sudo apt-get install bitcoin

复制 /usr/share/doc/bitcoind/examples/bitcoin.conf 到 Home目录/.bitcoin/bitcoin.conf

设置

testnet = 1 (不连接正式比特币网络,只使用比特币测试网络,生产环境不开启)

server=1 (以服务器方式长期运行,新用户注册,转入比特币都需要使用bitoind服务器来管理钱包)

rpcuser=root (用户名,设置的用户名要和PHPCoins目录下config.php文件的 btc_user= 相同)

rpcpassword=aaa (密码,设置的密码要和PHPCoins目录下config.php文件的 btc_password= 相同)

rpcport=18332 (端口,测试网络的是18332,正式网络的是8332,设置的值要和PHPCoins目录下config.php文件的 btc_port= 相同)

rpcconnect=127.0.0.1 (主机,设置的值要和PHPCoins目录下config.php文件的 btc_host= 相同)

Apache,PHP,Mysql安装省略,需要注意的是PHP的版本为PHP5.5以上,否则不能正常工作

启动bitcoind

bitcoind -daemon

如果启动bitcoind时遇到以下报错

locale::facet::_S_create_c_locale name not valid

执行export LC_ALL="C" locale::facet::_S_create_c_locale name not valid · Issue #203 · udoprog/c10t

--------钱包部署-----------

冷存储方式生成足够数量的比特币地址池,把地址导入到bitcoind的数据目录,每次有新注册用户都会从地址池里取一个地址作为用户转入比特币的地址

--------PHPCoins安装--------

先创建数据库,否则会500错误

create database btc;

开启short_open_tag

$ vim /etc/php5/fpm/php.ini
> short_open_tag On  # Change from Off

下载源码上传到Web主目录,解压,设置主目录权限为允许PHP进程读写,设置config.php文件里的参数,

admin_password 为后台登录密码

db_user 为数据库用户名

db_password 为数据库密码

db_name 为数据库名

db_host 为数据库所在的主机

btc_protocol 为比特币服务器bitcoind协议可选 http 和 https

btc_user 为bitcoind的用户名

btc_password 为bitcoind的密码

btc_host 为bitcoind所在的主机

btc_port 为bitcoind的端口

text_logo 为文字LOGO

site_name 为网站名

smtp_host 为SMTP邮箱域名

smtp_port 为SMTP邮箱端口

smtp_user 为SMTP邮箱帐号

smtp_password 为SMTP邮箱密码

新建上面填写的 db_name 数据库,在浏览器打开网站会自动安装,后台的地址为 域名/?admin=1

如果需要重新安装先删除根目录下的install.lock文件

------------其他-----------

加入QQ群交流 53023431

------------下载------------

http://phpcoins.com/PHPCoins_V1.0.zip

-------------演示------------

http://phpcoins.com

phpcoins's People

Contributors

jiangrongyong avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.