Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: aceat64 on September 02, 2010, 03:58:04 PM



Title: phpMyBitcoin Version 0.2beta Released
Post by: aceat64 on September 02, 2010, 03:58:04 PM
phpMyBitcoin is a web-based administration tool for managing bitcoin nodes, released under the GNU Affero GPL. The project is hosted on Github, at:
http://github.com/aceat64/phpMyBitcoin

Downloads

phpMyBitcoin 0.2beta tar.gz: http://github.com/aceat64/phpMyBitcoin/tarball/v0.2beta
phpMyBitcoin 0.2beta zip: http://github.com/aceat64/phpMyBitcoin/zipball/v0.2beta

Quick Install

1. Download the entire project, unzip/untar it and upload to your server
2. Create a MySQL database and user
3. Open install.php in your browser
4. Put in your MySQL information
5. Create the first user
6. Add nodes

Bitcoin Configuration

In order to take full advantage of phpMyBitcoin you will need to run a Bitcoin client that supports the listgenerated and listtransactions methods, and you must be able to connect to the node's JSON-RPC interface.

I've created a custom version of Bitcoin that includes patches for listgenerated, listtransactions and binds the JSON-RPC interface to all IPs instead of just the loopback. You can find the source code here:
http://github.com/aceat64/bitcoin-patchwork

I also have pre-compiled binaries for Linux available:
http://github.com/aceat64/bitcoin-patchwork/downloads

Using The Vanilla Bitcoin Client

If you would like to use phpMyBitcoin but don't want to compile or use a modified client, you will need to use a relay of some kind so that phpMyBitcoin can access the JSON-RPC interface.

Please note: Unless you have compiled your Linux kernel with IP_NF_NAT_LOCAL you will not be able to use iptables to redirect requests to the loopback interface.

If the remote server you are running Bitcoin on has a webserver with PHP capabilites you can use the relay.php script (found in the scripts folder) to relay connections to the loopback interface. Setup is very simpile, just drop the relay.php script somewhere accessible from the internet. When adding the node to phpMyBitcoin if your relay.php script is accessible at "http://somesite.com/relay.php" your settings will be:
Code:
Hostname: somesite.com
Port: 80
URI: relay.php

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Donations
Although hearing from people using phpMyBitcoin is a nice reward itself, donations for this project are accepted at: 1KSM3q8iGwuPCE72kJbP6phtmeSVhzmBxN


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: aceat64 on September 02, 2010, 04:34:45 PM
Here are some screenshots of phpMyBitcoin:

http://phpmybitcoin.org/screenshots/node_index_small.png (http://phpmybitcoin.org/screenshots/node_index.png)

http://phpmybitcoin.org/screenshots/node_view_small.png (http://phpmybitcoin.org/screenshots/node_view.png)

http://phpmybitcoin.org/screenshots/node_log_small.png (http://phpmybitcoin.org/screenshots/node_log.png)


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: chaord on September 02, 2010, 06:26:26 PM
This looks pretty cool.  Thanks so much!


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: hugolp on September 02, 2010, 06:59:10 PM
Looks very good. I will give a try soon.

What do you use for login?


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: LZ on September 02, 2010, 10:04:12 PM
Seems that it may be interesting. :-)


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: aceat64 on September 03, 2010, 02:37:10 AM
Looks very good. I will give a try soon.

What do you use for login?

You'll be prompted to create a login during the installation process.


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: QuantumMechanic on September 03, 2010, 03:03:19 AM
Nice work!  Been hoping someone would do this.


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: hugolp on September 03, 2010, 09:50:22 PM
Just installed it.

The installation went fine, and the theme looks good. But I have no clue how to add a new node. My bitcoin program is running in the same computer as phpMyBitcoin is running. I am running the official client (not patched). I dont really understand what the port, the user and the password is for.

Thanks,


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: aceat64 on September 03, 2010, 10:03:23 PM
Just installed it.

The installation went fine, and the theme looks good. But I have no clue how to add a new node. My bitcoin program is running in the same computer as phpMyBitcoin is running. I am running the official client (not patched). I dont really understand what the port, the user and the password is for.

Thanks,

Sorry about the confusion, I need to work on the documentation. If you are connecting to a Bitcoin node on the same server you'll need to use "localhost" for the hostname and "8332" for the port. The URI field is only used in conjunction with the relay.php script. The username and password will be the same ones you set in your bitcoin.conf file. Here's an example bitcoin.conf:

Code:
rpcuser=USERNAME_HERE
rpcpassword=PASSWORD_HERE


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: hugolp on September 03, 2010, 10:34:50 PM
Just installed it.

The installation went fine, and the theme looks good. But I have no clue how to add a new node. My bitcoin program is running in the same computer as phpMyBitcoin is running. I am running the official client (not patched). I dont really understand what the port, the user and the password is for.

Thanks,

Sorry about the confusion, I need to work on the documentation. If you are connecting to a Bitcoin node on the same server you'll need to use "localhost" for the hostname and "8332" for the port. The URI field is only used in conjunction with the relay.php script. The username and password will be the same ones you set in your bitcoin.conf file. Here's an example bitcoin.conf:

Code:
rpcuser=USERNAME_HERE
rpcpassword=PASSWORD_HERE

Thanks, now I just need to know where the bitcoin.conf file is. I have checked and its not in my ~/.bitcoin folder. Its not with the binary neither. Do I have to create it? Whre should I put it?

SOLVED: thanks to the guys in the chat room.


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: vess on September 10, 2010, 06:50:01 PM
This is lovely, thank you!


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: em3rgentOrdr on September 17, 2010, 05:33:13 AM
This looks very cool and useful for people running bitcoin on multiple computers in different locations.

Is there any easy way to use this tool somehow to back up multiple bitcoin wallets stored on each computer?


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: aceat64 on September 17, 2010, 06:14:34 AM
This looks very cool and useful for people running bitcoin on multiple computers in different locations.

Is there any easy way to use this tool somehow to back up multiple bitcoin wallets stored on each computer?

Not at the moment, I can't think of a way to do that at the moment. Yes, there's the backupwallet RPC method, but phpMyBitcoin wouldn't have access to the filesystem on the remote servers so it can't grab the backup. Maybe if someone adds an RPC method that sends the full wallet as a file.


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: LZ on September 28, 2010, 11:45:31 PM
Code:
2010-09-28 23:06:11 Error: Fatal Error (256): ConnectionManager::loadDataSource - Unable to import DataSource class .DboDriver in [/~/www/lzsaver.me.pn/phpMyBitcoin/cake/libs/model/connection_manager.php, line 185]
2010-09-28 23:06:11 Error: Fatal Error (256): ConnectionManager::getDataSource - Could not load class DboDriver in [/~/www/lzsaver.me.pn/phpMyBitcoin/cake/libs/model/connection_manager.php, line 110]
I tried on the local host and got the same errors. What did I do wrong? :-\


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: Koon on October 07, 2010, 07:28:30 PM
Hi,

I get an error right after adding an user.

404 apache error :
/phpmybitcoin/app/webroot/users/installer was not found on this server.

If I go to /app/webroot/index.php I get this following error.

Error: The requested address '/app/webroot' was not found on this server.

No problem with permissions...

What wrong?


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: Yagiza on July 11, 2011, 07:50:00 AM
Hi,

I get an error right after adding an user.

404 apache error :
/phpmybitcoin/app/webroot/users/installer was not found on this server.

If I go to /app/webroot/index.php I get this following error.

Error: The requested address '/app/webroot' was not found on this server.

No problem with permissions...

What wrong?
The same here. Any suggestions?


Title: Re: phpMyBitcoin Version 0.2beta Released
Post by: em3rgentOrdr on July 11, 2011, 06:17:36 PM
This is excellent.  Ill try to integrate it with the opensource php podcast podcastgenerator i use for podcast.ericfontainejazz.com