Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: prdatur on January 05, 2014, 09:40:47 PM



Title: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on January 05, 2014, 09:40:47 PM
Hello everyone,

I just wanted to let you all know, I finished my PHPMiner.

PHPMiner is a webinterface which uses the API from CGMiner/SGMiner.
It can:

 - Handle multiple rig's
 - Watch the device status and notify when something is wrong.
 - Overclock GPU's
 - Handle pool groups and easy pool switching.
 - Restart CGMiner if not running
 - Reboot system if defunc processes are present.


PHPMiner is for Linux and Windows.
FPGA/ASIC are currently not really supported, all the overclocking and info things are based on GPU's. Because I don't have an FPGA/ASIC I also can not tell if it will run with those.

If you are interested.


Hompage
https://phpminer.com

Github
https://github.com/prdatur/phpminer

I also enhanced the CGMiner API with some more api commands. I recommend the use of this fork (Only API was enhanced, nothing else changed)
https://github.com/prdatur/cgminer

Any questions?
Please use this thread:
https://bitcointalk.org/index.php?topic=400589 There all support questions will be answered.


Title: Re: [ANN] PHPMiner 1.0.0 for CGMiner v3.7.2
Post by: compile on January 06, 2014, 05:14:57 AM
Looks really nice.
What are the requirements that make this a Linux only solution?


Title: Re: [ANN] PHPMiner 1.0.0 for CGMiner v3.7.2
Post by: prdatur on January 06, 2014, 12:20:45 PM
The things which requires Linux are:

- restart cgminer of not running
- reboot machine of defunc function exists

Also I didn't tested it on Windows, so I don't want to tell it will work when I can not be sure.

I think I will test it in some days under Windows.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2
Post by: compile on January 06, 2014, 07:16:59 PM
going to try it out under windows right now.

I'll let you know.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2
Post by: prdatur on January 06, 2014, 07:45:40 PM
If you are on freenode irc. Please join #phpminer so we can diskuss the issues which maybe are.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2
Post by: prdatur on January 09, 2014, 07:00:29 PM
New version available: 1.0.2

Changes:
  - Multi rig support
  - Latest version check

Also it was now tested successfully under windows.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 09, 2014, 11:40:15 PM
New version: 1.0.3

Changes:
  - Fix check if cgminer is running
  - Seperated config for phpminer rpc client

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 10, 2014, 01:51:17 AM
New version: 1.0.4

Changes:
  - Fix cron errors
  - Added new monitoring settings for hardware errors
  - Enhanced main table style to fit a bit better

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 11, 2014, 11:11:47 AM
New version: 1.0.5

Changes:
  - Fix errors while retrieving device status in main windows

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 11, 2014, 04:16:31 PM
People who downloaded 1.0.5 till now, please re-download it.

or change:
$system_conf['version'] = array(1, 0, 4);

to:
$system_conf['version'] = array(1, 0, 5);

within includes/common.php at line 60.

Sorry forgot to change the version info :)


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: icaros on January 12, 2014, 03:09:01 AM
Edit and Delete button at Mining rig not working:

[05:06:27.747] POST https://xxx/main/get_rig_data.json [HTTP/1.1 404 Not Found 2ms]
[05:06:29.747] POST https://xxx/main/delete_rig.json [HTTP/1.1 404 Not Found 2ms]

views/main/init.js:            ajax_request('/main/get_rig_data.json', {rig: $(this).data('rig')}, function(rig_results) {
                                    ajax_request('/main/delete_rig.json', {rig: rig}, function() {
Changing it to:
ajax_request(murl('main', 'get_rig_data'), {rig: $(this).data('rig')}, function(rig_results) {
ajax_request(murl('main', 'delete_rig'), {rig: rig}, function() {

fixed the bug.

There is bug on version check too:
A new version is available, current version 1.0.6 - latest version 1.0.5. Download. After updating to a new version, do not forget to copy the new index.php from the phpminer_rpcclient and restart the service."

Somekind better timeout for sockets would be nice too. If my ip rig changes and it has ip where it can't connect it will freeze for many many minutes.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 12, 2014, 06:33:49 PM
New version available: 1.0.7

Changes:
  - Fix cronjob error when no rig's are configurated.
  - Fix adding pools on servers which don't response as expected thx @ madcoin
  - Fix HW config dialog to close correctly.
  - Fix adding/deleting rig urls thx @ icarus

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 12, 2014, 06:39:08 PM
Somekind better timeout for sockets would be nice too. If my ip rig changes and it has ip where it can't connect it will freeze for many many minutes.

Thy for the report and direct fix :)
Will check that timeout thing.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: WARLOCKZA on January 13, 2014, 07:09:22 AM
I have picked up an error during my install, probably related more to my apache configuration

Code:
[Mon Jan 13 09:00:13 2014] [alert] [client 10.0.0.10] /var/www/phpminer/.htaccess: AddDefaultCharset not allowed here
[Mon Jan 13 09:00:13 2014] [alert] [client 10.0.0.10] /var/www/phpminer/views/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration,
[Mon Jan 13 09:00:13 2014] [alert] [client 10.0.0.10] /var/www/phpminer/templates/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration,

If I remove the AddDefaultCharset from /var/www/phpminer/.htaccess
and delete the other 2 .htaccess files the page seems to load fine, though I am not sure what else I have broken


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: WARLOCKZA on January 13, 2014, 08:25:34 AM
Can you tell me which files you changed for the api, as far as I can tell it's only the api.c file ?


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: icaros on January 13, 2014, 10:47:11 AM
Feature request: Reboot computer if cgminer API reports gpu status as DEAD/SICK should be Alive.

{"command":"devs","parameter":""}

Code:
{
    "STATUS": [{
        "STATUS": "S",
        "When": 1389613832,
        "Code": 9,
        "Msg": "4 GPU(s) - ",
        "Description": "cgminer 3.7.2"
    }],
    "DEVS": [{
        "GPU": 0,
        "Enabled": "Y",
        "Status": "Alive",
        "Temperature": 85.00,
        "Fan Speed": 3150,
        "Fan Percent": 97,
        "GPU Clock": 1050,
        "Memory Clock": 1400,
        "GPU Voltage": 1.206,
        "GPU Activity": 99,
        "Powertune": 20,
        "MHS av": 0.43,
        "MHS 5s": 0.43,
        "Accepted": 75,
        "Rejected": 3,
        "Hardware Errors": 0,
        "Utility": 0.74,
        "Intensity": "18",
        "Last Share Pool": 0,
        "Last Share Time": 1389613767,
        "Current Pool": 0,
        "Total MH": 2619.8671,
        "Diff1 Work": 41640,
        "Difficulty Accepted": 38400.00000000,
        "Difficulty Rejected": 1536.00000000,
        "Last Share Difficulty": 512.00000000,
        "Last Valid Work": 1389613767,
        "Device Hardware%": 0.0000,
        "Device Rejected%": 3.6888,
        "Device Elapsed": 6110
    }, {
        "GPU": 1,
        "Enabled": "Y",
        "Status": "Alive",
        "Temperature": 78.00,
        "Fan Speed": 2964,
        "Fan Percent": 65,
        "GPU Clock": 1025,
        "Memory Clock": 1250,
        "GPU Voltage": 1.100,
        "GPU Activity": 99,
        "Powertune": 20,
        "MHS av": 0.61,
        "MHS 5s": 0.61,
        "Accepted": 104,
        "Rejected": 4,
        "Hardware Errors": 0,
        "Utility": 1.02,
        "Intensity": "20",
        "Last Share Pool": 0,
        "Last Share Time": 1389613759,
        "Current Pool": 0,
        "Total MH": 3725.5905,
        "Diff1 Work": 55778,
        "Difficulty Accepted": 53248.00000000,
        "Difficulty Rejected": 2048.00000000,
        "Last Share Difficulty": 512.00000000,
        "Last Valid Work": 1389613759,
        "Device Hardware%": 0.0000,
        "Device Rejected%": 3.6717,
        "Device Elapsed": 6110
    }, {
        "GPU": 2,
        "Enabled": "Y",
        "Status": "Alive",
        "Temperature": 72.00,
        "Fan Speed": 2804,
        "Fan Percent": 78,
        "GPU Clock": 1000,
        "Memory Clock": 1500,
        "GPU Voltage": 1.200,
        "GPU Activity": 99,
        "Powertune": 20,
        "MHS av": 0.71,
        "MHS 5s": 0.71,
        "Accepted": 131,
        "Rejected": 0,
        "Hardware Errors": 0,
        "Utility": 1.29,
        "Intensity": "13",
        "Last Share Pool": 0,
        "Last Share Time": 1389613773,
        "Current Pool": 0,
        "Total MH": 4311.0728,
        "Diff1 Work": 64123,
        "Difficulty Accepted": 67072.00000000,
        "Difficulty Rejected": 0.00000000,
        "Last Share Difficulty": 512.00000000,
        "Last Valid Work": 1389613773,
        "Device Hardware%": 0.0000,
        "Device Rejected%": 0.0000,
        "Device Elapsed": 6110
    }, {
        "GPU": 3,
        "Enabled": "Y",
        "Status": "Alive",
        "Temperature": 86.50,
        "Fan Speed": 2263,
        "Fan Percent": 48,
        "GPU Clock": 800,
        "Memory Clock": 1250,
        "GPU Voltage": 1.175,
        "GPU Activity": 99,
        "Powertune": 20,
        "MHS av": 0.43,
        "MHS 5s": 0.43,
        "Accepted": 71,
        "Rejected": 1,
        "Hardware Errors": 0,
        "Utility": 0.70,
        "Intensity": "18",
        "Last Share Pool": 0,
        "Last Share Time": 1389613748,
        "Current Pool": 0,
        "Total MH": 2616.4593,
        "Diff1 Work": 41650,
        "Difficulty Accepted": 36352.00000000,
        "Difficulty Rejected": 512.00000000,
        "Last Share Difficulty": 512.00000000,
        "Last Valid Work": 1389613748,
        "Device Hardware%": 0.0000,
        "Device Rejected%": 1.2293,
        "Device Elapsed": 6110
    }],
    "id": 1
}

Most of times my GPU Status changes to DEAD or SICK and Cgminer process won't defunc.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 13, 2014, 06:01:07 PM
I have picked up an error during my install, probably related more to my apache configuration

Code:
[Mon Jan 13 09:00:13 2014] [alert] [client 10.0.0.10] /var/www/phpminer/.htaccess: AddDefaultCharset not allowed here
[Mon Jan 13 09:00:13 2014] [alert] [client 10.0.0.10] /var/www/phpminer/views/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration,
[Mon Jan 13 09:00:13 2014] [alert] [client 10.0.0.10] /var/www/phpminer/templates/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration,

If I remove the AddDefaultCharset from /var/www/phpminer/.htaccess
and delete the other 2 .htaccess files the page seems to load fine, though I am not sure what else I have broken

The page works without the those htaccess entries but just to provide you the information what is missing. In your Virtual host for phpminer you have to post the "AllowOverride" directive. The RewriteEngine error is because you didn't enabled it (linux command to enable it is: a2enmod rewrite)

Quote
Can you tell me which files you changed for the api, as far as I can tell it's only the api.c file ?

I only changed the api.c



Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 13, 2014, 09:20:51 PM
New version available: 1.0.8

Changes:
  - Added restart option when Dead/Sick GPU's are detected without defunc processes.
  - Add Socket timeout setting.

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: icaros on January 13, 2014, 09:40:18 PM
 - Added restart option when Dead/Sick GPU's are detected without defunc processes.

Most of times restarting Cgminer is not enough to solve that kind problem. Computer reboot is only way to solve it. Now it's try to restart cgminer process?
"Restart CGMiner on Dead/Sick GPU's:"
cron.php:                        if ($device_data['Status'] == 'Dead' || $device_data['Status'] == 'Sick') {

i don't remember if thats case-sensitive or not but it's "DEAD" and "SICK" if i remember correctly.

I would say better solution would be add IF:
"Enabled": "Y", this value is Y
"Status": "Alive", this value is not "Alive" it would work always.

or maybe:  if (strtolower($device_data['Status']) == 'dead' || strtolower($device_data['Status']) == 'sick') {


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 14, 2014, 07:22:31 PM
 - Added restart option when Dead/Sick GPU's are detected without defunc processes.

Most of times restarting Cgminer is not enough to solve that kind problem. Computer reboot is only way to solve it. Now it's try to restart cgminer process?
"Restart CGMiner on Dead/Sick GPU's:"
cron.php:                        if ($device_data['Status'] == 'Dead' || $device_data['Status'] == 'Sick') {

i don't remember if thats case-sensitive or not but it's "DEAD" and "SICK" if i remember correctly.

I would say better solution would be add IF:
"Enabled": "Y", this value is Y
"Status": "Alive", this value is not "Alive" it would work always.

or maybe:  if (strtolower($device_data['Status']) == 'dead' || strtolower($device_data['Status']) == 'sick') {

It should work because i checked the response within the API and there it is written "Dead" or "Sick" but the tolower is a bit more secure, will use this in future.

Enabled Y is a additional which i will implement, but just Status not Alive would be too much, because cgminer, I think, can just disable a gpu for a specific time but not "disable" it. So this would be a false positive.

With cgminer restart / machine reboot I think i will provide the config with a select box "Do nothing, Restart CGminer, Reboot machine" so anybody can decide how this situation of dead GPU's should be handled.

Would that be ok for you?


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: icaros on January 14, 2014, 07:28:02 PM
Yup, that's exactly what i'm looking for.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 15, 2014, 10:17:33 PM
New version available: 1.0.9

Changes:
  - Fixed reboot command for windows
  - Enhanced Dead/Sick GPU settings.

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: WARLOCKZA on January 16, 2014, 07:03:41 AM
Feature Request:

Can you please add to the main page a total hash rate across all miners, much like BAMT do.

something like this
http://ozrigs.com/shop/wp-content/uploads/2013/06/bamt.png


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 16, 2014, 08:29:22 AM
People who downloaded 1.0.9 till now, please re-download it.

or change:
$system_conf['version'] = array(1, 0, 8);

to:
$system_conf['version'] = array(1, 0, 9);

within includes/common.php at line 60.

Sorry forgot to change the version info :)


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: Calhil on January 16, 2014, 10:17:29 PM
This looks nice. I installed ANUBIS like 30 min ago, but im definitely going to try PHPMiner :D


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: compile on January 17, 2014, 11:31:59 PM
Can't get it to work on windows i get this:

"RPC Error: Could not connect to PHPMiner RPC, please check IP and port settings for PHPMiner RPC"

I'm on Windows, please help.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: WARLOCKZA on January 18, 2014, 08:49:56 AM
If I understand it correctly the RPC clinet has only been written linux and this wont work on Windows


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 18, 2014, 12:09:47 PM
Quote
If I understand it correctly the RPC clinet has only been written linux and this wont work on Windows

No the rpc client can also handle windows rig's.

It first checks on which os it runs and depending on that it calls different actions for example when rebooting rig / restarting cgminer.

Quote
Can't get it to work on windows i get this:

"RPC Error: Could not connect to PHPMiner RPC, please check IP and port settings for PHPMiner RPC"

I'm on Windows, please help.

Did you started the RPC Client? This is a service daemon which needs to be running.
In the readme it is explained how to start it under windows.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: Shoma on January 18, 2014, 04:26:29 PM
This looks interesting. I will try it  :)


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: WARLOCKZA on January 21, 2014, 01:49:56 PM
@prdatur

Over at litecointalk (https://litecointalk.org/index.php?topic=2924.0) Bee has release a new version of BMAT 1.3 and along with this sgminer 4.0, yip you read it right sgminer. I am not sure what all the changes are but basically it looks like it's GPU and scrypt exclusive and he's removed all the rest of teh blot ware. I'd be intrested to know if you'll follow this code release or is 3.7.2 where you'll stop ?

Shot!!


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 21, 2014, 05:51:24 PM
will check it


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: WARLOCKZA on January 22, 2014, 08:23:57 AM
I am having a problem adding pools to a group I created, I can create the group fine, as soon as I try add a pool I get a please wait and it just stays there ?


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 22, 2014, 11:11:08 AM
which pool url do you want to add?
Does it starts with http or stratum+tcp?


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: bayo on January 22, 2014, 11:00:14 PM
Hi i just test your php script and look very good but can you change the rig add script for allow cgminer api only for miner rig like knc avalon ant miner etc.So we can monitor this asic too.  Atm when trying add it say bad rpc info or something missing in this. ( Sorry my english ) And thanks for your time and script !!


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: compile on January 23, 2014, 06:00:12 AM
Got it working on windows, its beautiful.

No idea how to install it on Bamt though, I can't get it to connect (service command isn't found).


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: Sk1llS on January 24, 2014, 10:51:02 AM
Hi i just test your php script and look very good but can you change the rig add script for allow cgminer api only for miner rig like knc avalon ant miner etc.So we can monitor this asic too.  Atm when trying add it say bad rpc info or something missing in this. ( Sorry my english ) And thanks for your time and script !!

This is for GPU mining, hence the v3.7.2 support, not asic hardware.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: bayo on January 24, 2014, 12:21:28 PM
Hi i just test your php script and look very good but can you change the rig add script for allow cgminer api only for miner rig like knc avalon ant miner etc.So we can monitor this asic too.  Atm when trying add it say bad rpc info or something missing in this. ( Sorry my english ) And thanks for your time and script !!

This is for GPU mining, hence the v3.7.2 support, not asic hardware.

Closed mind ! + asic hardware can have some cgminer version & also work on api cgminer ( i use cgminer 3.9.0 on all my asic atm + cgremote & all work well) . Just for your knowledge.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: Enhanced Elephant on January 24, 2014, 05:58:00 PM
Nice thing you got here!  :)

Thanks, ee.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 25, 2014, 08:55:33 PM
New version available: 1.1.0

Changes:
  - Fixed donate time within cron
  - Fixed reboot rig on linux

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: WARLOCKZA on January 27, 2014, 01:24:51 PM
I have an issue were if I click the setup button I get asked to provide my rig details instead of it taking me to my cgminer.conf files ?


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 27, 2014, 02:53:10 PM
I have an issue were if I click the setup button I get asked to provide my rig details instead of it taking me to my cgminer.conf files ?


Is the rig available when you clicked on the link? PHPMiner checks every time for the connection to your configurated rig's. If it fails it provides you with such dialog. I need to remove this because this was a good idea when it was only for 1 rig and not for multple rig's.
For now you need to make sure that your configurated rig's are online.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: icaros on January 27, 2014, 03:12:29 PM
There is bug with hashrate jumping sometimes weirdly.

http://puu.sh/6A6g6/56f496129a.png


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 27, 2014, 08:18:44 PM
There is bug with hashrate jumping sometimes weirdly.

http://puu.sh/6A6g6/56f496129a.png

Thx

I fixed the output. The CGMiner API response sometimes with such a value, I now manually round the value to a max of 2 decimals.
Will be fixed in the next version. I will collect some changes now. Maybe at Wednesday or something arround I will update.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 29, 2014, 08:37:32 PM
New version: 1.1.1

Changes:
  - Fix error while setup when CGMiner does not return valid version.
  - Add feature to collapse mining groups, an average value will be displayed for all rig's, rig's which have problems are shown always
  - Add global hashrate sum
  - Add hashrate sum per rig

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: jackderipper on January 29, 2014, 10:27:11 PM
Hello All,

What a cool monitoring solution! :)
I've just upgraded to the latest version 1.1.1. And like the Hash statistics very much.
I hoped that it would solve my problem and got the below error message:

Error message
Could not connect to PHPMiner RPC, please check IP and port settings for PHPMiner RPC
 
I'm using 12 BAMT systems version 1.1 and some 1.3.
I know that I've to create a service on every system and have to configure the config.php.
Also already updated the index.php on the BAM machines.

With version 1.0.9, I was able to connect to the RPC port from my PHPMiner machine and was able to add and configure pools, etc.
Only now after a coldreboot of my BAMT machines, the RPC service port is not active.

When I use the command:
service phpminer_rpcclient status

It says:
PHPMiner RPC Client is running

Only not the configured port 11111 is listening on 0.0.0.0 when I look with netstat -an

Does someone know what I'm doing wrong?

My config.php looks like:
$config['ip'] = '0.0.0.0';

// Service port, change it to your needs, please keep in mind, in Linux ports lower 1000 can only be created by user root.
$config['port'] = 11111;

// RPC Secret key.
$config['rpc_key'] = 'Miner';

// The path + file where the cgminer.conf is.
// Please make sure that the user which run's this script has the permission to edit this file.
$config['cgminer_config_path'] = '/etc/bamt/cgminer.conf';

// The path where the cgminer executable is.
// Please make sure that the user which run's this script has the permission to start cgminer.
$config['cgminer_path'] = '/opt/miners/cgminer';

Part of my phpminer_rpcclient config looks like:
# for example this should look like PROGRAM=/var/www/php_cgminer/phpminer_rpcclient/index.php
PROGRAM=/etc/bamt/phpminer_rpcclient/index.php

# for example this should look like USER=myriguser
USER=user

Currently I'm able to see my RIG active in the PHPMiner, and see the active information, but not able to push some pool or intensity changes.

Hope that someone can help me with this ?

Thanks, Jeffrey



Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 30, 2014, 02:49:48 PM
Hello All,

What a cool monitoring solution! :)
I've just upgraded to the latest version 1.1.1. And like the Hash statistics very much.
I hoped that it would solve my problem and got the below error message:

...


Will check it, i know there is something wrong with the service autostart.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on January 30, 2014, 10:42:36 PM
New version: 1.1.2

Changes:
  - Add linux install scripts for webinterface and rpc client (debian/ubuntu based distro only)
  - Improved readme to make clear that a auto donation exist but can be disabled at ANY time.
  - Enhanced "average" entry per rig.

Notice:
  - If you run on linux, please enter this command as root:
    insserv phpminer_rpcclient
    this is the new way for debian based distros to enable a script to run on boot with dependencies.

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: icaros on February 01, 2014, 07:47:25 AM
Settings -> System Settings -> Save config button not working.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on February 01, 2014, 10:13:56 AM
Settings -> System Settings -> Save config button not working.

Checked it on my side and it works. Can you please open chrome console and after saving please send me the response output of the created request and also check the console tab for errors. If there is one please send it to me too.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: icaros on February 01, 2014, 12:16:12 PM
Hi,

There is nothing on web console seems like the button would not do anything.

I did also try to reinstall phpminer and the problem still exists.

/phpminer/templates/js/jquery-1.10.2.min.map there  is 404 error when going to the Settings page. This could be the problem?


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: ballot on February 01, 2014, 04:46:23 PM
is it possible to build a web server remote accessable without port forwarding
does tor .onion do that  ???


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on February 02, 2014, 08:54:32 PM
Hi,

There is nothing on web console seems like the button would not do anything.

I did also try to reinstall phpminer and the problem still exists.

/phpminer/templates/js/jquery-1.10.2.min.map there  is 404 error when going to the Settings page. This could be the problem?


No this has no effect. This comes from jquery.
When you go to the "network" tab in the console and then pressing the notworking button. A new entry will appear with the ajax request.
Can you click on that new entry. At the right side there are then some other tabs. Switch to "response" and give me the output please.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on February 02, 2014, 08:57:05 PM
is it possible to build a web server remote accessable without port forwarding
does tor .onion do that  ???

No. You have as a normal customer 1 Public IP address. This IP-Address points to your router. All connections which are sent to this public ip will go to your router and your router does not know what to do with this request if you don't tell them.
And with portforwarding you tell the router "If something comes in with destination port XY then please forward those connections to internal machine with ip ZY."


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: micabg on February 03, 2014, 12:26:17 AM
Is anywhere how to for dummies?
It would be nice to make a tutorial with pictures or video


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: compile on February 07, 2014, 03:32:32 AM
Welp its not working for me anymore.

I suggest you make an actual rpc client for windows, because the documentation is lacking severely for it.

An automated install for windows would be perfect to be honest.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 with multi rig support
Post by: prdatur on February 07, 2014, 07:52:48 AM
Welp its not working for me anymore.

I suggest you make an actual rpc client for windows, because the documentation is lacking severely for it.

An automated install for windows would be perfect to be honest.

An auto win install is not possible currently because I don't have so much knowledge in windows shell and it take much time to create such thing.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on February 10, 2014, 10:31:28 PM
New version available: 1.2.0

Changes:
  - Add reset stats global and rig based
  - Add paging support when having many rig's
  - Add rig based pools (each rig have their own username, which is better for VARDIFF)
  - Fix Pool group collapse
  - Add support for SGMiner >= 4.1.0
  - Enhance RPC-Client install script
  - Add Cronjob to make sure RPC-Client is running
  - Fix notification url post thx @ sheinsha
  - Add sort mode settings
  - Add push.co notification for IOS thx @ sheinsha
  - Fix BAMT/SMOS compatibilty thx @ sheinsha
  - Add possiblity to add offline pools

After updates always update the phpminer rpcclient and restart the service.

People who just update and use Linux. Please install the cronjob for rpc client:

Linux

Please add a file named phpminer_rpcclient to /etc/cron.d/ with the following contents:

# /etc/cron.d/phpminer_rpcclient: crontab fragment for phpminer_rpcclient
#  This will run the cronjob script for phpminer to send notifications and other periodic tasks.
* * * * * root sh {/path/to/phpminer_rpcclient}/rpcclient_cron.sh
Please replace:

{/path/to/phpminer_rpcclient} with the path to your phpminer rpcclient directory.

Windows

For now this check script only exist for linux, if any one want to provide a script for Windows, let me know.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on February 13, 2014, 09:22:51 PM
New version available: 1.2.1

Changes:
  - Fix stored pools in cgminer when using rig based pools
  - Add SMTP From configuration
  - Fix add pool to cgminer config when adding pools to an active group
  - Add Rig based Start/Stop mining
  - Add better miner binary for rpc client confg.

After updates always update the phpminer rpcclient and restart the service.

People who use SGMiner, please open the rpc client config.php and change the miner from cgminer to sgminer


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: Mylo on February 17, 2014, 11:35:41 AM
New version available: 1.2.1

Changes:
  - Fix stored pools in cgminer when using rig based pools
  - Add SMTP From configuration
  - Fix add pool to cgminer config when adding pools to an active group
  - Add Rig based Start/Stop mining
  - Add better miner binary for rpc client confg.

After updates always update the phpminer rpcclient and restart the service.

People who use SGMiner, please open the rpc client config.php and change the miner from cgminer to sgminer

Hey man, haven't you tried installing your script under Windows? Will Apache + PHP w/ mod_rewrite will suffice?
I'm eager to use it but need more insight too.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on February 17, 2014, 08:48:00 PM
New version available: 1.2.1

Changes:
  - Fix stored pools in cgminer when using rig based pools
  - Add SMTP From configuration
  - Fix add pool to cgminer config when adding pools to an active group
  - Add Rig based Start/Stop mining
  - Add better miner binary for rpc client confg.

After updates always update the phpminer rpcclient and restart the service.

People who use SGMiner, please open the rpc client config.php and change the miner from cgminer to sgminer

Hey man, haven't you tried installing your script under Windows? Will Apache + PHP w/ mod_rewrite will suffice?

I have test installed under windows with xampp which is in general a apache + php.
Make sure you add all dependend php modules as it is written on the readme.

I'm eager to use it but need more insight too.
What more information you need?


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on February 19, 2014, 09:37:25 PM
Just a live sign from me: I am currently re-structuring the config files, so it will be better in performance and better to develop for me in the future.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: icaros on February 24, 2014, 01:19:57 PM
Pls look that DEAD/SICK GPU reboot code. It's notify about it but there is no RPC commands send to mining rigs and they won't reboot.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on February 25, 2014, 06:37:14 PM
Pls look that DEAD/SICK GPU reboot code. It's notify about it but there is no RPC commands send to mining rigs and they won't reboot.

Have checked it and found the issue, had to due with the change of multiple rig's feature.
Fixed it and is included within the next update. Hopefully Next update at Friday/Saturday.
There are also some new fresh features :)

Thanks for reporting.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: soothaa on February 25, 2014, 07:35:24 PM
Looks sweet, I'll be installing this alongside farmcp!


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: divxrullz on February 27, 2014, 02:54:42 PM
Odd error i face after clean install:
Notice: Undefined index: directory in /var/www/phpminer/index.php on line 23 Notice: Undefined index: directory in /var/www/phpminer/index.php on line 24

i have follow step-by-step install guide and i dont have any error.
any ideas ?

i have tried another setup - just have upgraded the old one (1.2.0) but my rig has disappeared and the button "Add rig" does noting....


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on February 27, 2014, 05:25:53 PM
Odd error i face after clean install:
Notice: Undefined index: directory in /var/www/phpminer/index.php on line 23 Notice: Undefined index: directory in /var/www/phpminer/index.php on line 24

i have follow step-by-step install guide and i dont have any error.
any ideas ?

i have tried another setup - just have upgraded the old one (1.2.0) but my rig has disappeared and the button "Add rig" does noting....

I will check it if i can find the error.
Within the next update I will also include a better bug reporting feature, if an application error occure users will have the possibility to send me the error message.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on March 02, 2014, 11:27:00 PM
A new update with a new config structure is on the way. It needs some more testings.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: Signovinces2 on March 06, 2014, 08:00:23 AM
Does this work with vertminer 0.5.3?


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: itraxe on March 07, 2014, 04:51:02 AM
bro i dont wanna donate 1% time mining

i can donate u good if u give me version without this 1% mining time for u

also i need some help with install

will donate u good

pls pm me


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on March 07, 2014, 09:50:22 PM
bro i dont wanna donate 1% time mining

i can donate u good if u give me version without this 1% mining time for u

also i need some help with install

will donate u good

pls pm me

If you downloaded the current version 1.2.1 you have a switch in the settings where you can just disable it.
If you have downloaded the current dev version at github directly you have also in the settings a slider where you can
disable it. just move the slider the left.

Does this work with vertminer 0.5.3?

Currently not because it checks really on (c/s)gminer versions, but there is a pending feature request to allow mostly all miners which has
the same api functions which phpminer requires.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on March 08, 2014, 03:40:03 PM
New version available: 1.3.0

Changes:
  - All API-Commands will now be executed from the rpc client, so only rpc connection details are required by adding rigs.
  - Removed push.co notification service because the push.co service does not work and no response from their support.
  - Added access management.
  - Fix some problems while editing a rig.
  - Fixed CPU-Usage problem on RPC-Client
  - Add cron lock-pid.
  - Changed kernel miner settings to text input instead of select
  - Fix cron for rebooting rig's
  - Add rig based pools
  - Add "shortname" for rigs which will be used as the username appendings for rig based pools.
  - Add bug reporting
  - Re-Added fan rpm output.
  - Add manual rig reboot command for each rig.
  - Fix error message when miner software has no pools configurated.
  - Add possibility to change pool group.
  - Add version number to the page title.
  - While in collapsed mode, a change affects all devices within this rig.
  - Change donate system where user can choose how much he wants to donate.
  - Fix typos.

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: icaros on March 08, 2014, 04:14:46 PM
1.3.0 won't work anymore on windows. When i try add it to phpminer daemon will die.
Also could you add back this: - Add hashrate sum per rig

C:\Program Files (x86)\CGWatcher-1.3.2\phpminer\phpminer_rpcclient>php index.php


08.03.2014 19:12:26: Starting RPC Server at 0.0.0.0 on port 11111
08.03.2014 19:13:15: Incoming data request: test_connection

and then it's die.

Cron seems to broken too:
su www-data -c "php -f /var/www/phpminer/cron.php"
PHP Fatal error:  Class 'InfoException' not found in /var/www/phpminer/includes/Db.class.php on line 36

Fatal error: Class 'InfoException' not found in /var/www/phpminer/includes/Db.class.php on line 36


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on March 08, 2014, 05:03:29 PM
New version available: 1.3.1

Changes:
  - Fix fatal error for infoException not found.

After updates always update the phpminer rpcclient and restart the service.


Title: Re: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support
Post by: prdatur on March 09, 2014, 10:15:42 AM
1.3.0 won't work anymore on windows. When i try add it to phpminer daemon will die.
Also could you add back this: - Add hashrate sum per rig

C:\Program Files (x86)\CGWatcher-1.3.2\phpminer\phpminer_rpcclient>php index.php


08.03.2014 19:12:26: Starting RPC Server at 0.0.0.0 on port 11111
08.03.2014 19:13:15: Incoming data request: test_connection

and then it's die.

Cron seems to broken too:
su www-data -c "php -f /var/www/phpminer/cron.php"
PHP Fatal error:  Class 'InfoException' not found in /var/www/phpminer/includes/Db.class.php on line 36

Fatal error: Class 'InfoException' not found in /var/www/phpminer/includes/Db.class.php on line 36

Sorry didn't had time to answer :P
Thx for reporting, have fixed it.