Pages:
Author

Topic: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support - page 4. (Read 11626 times)

sr. member
Activity: 434
Merit: 250
I have added Support for Push.co Notification, compatible with iOS devices that were not usable with RapidPush.
Check the PR https://github.com/prdatur/phpminer/pull/3

Also made a modification to the phpminer_rpcclient service function that finds cgminer PID, please check if that seems correct to you.
I was not paying attention and merged all commits to my master, so the PR has both Push.co support and fixes. I could split them if there is something you don't want to merge.
member
Activity: 70
Merit: 10
You may want to turn on the services that will restart phpminer_rpcclient automatically after reboot.

Code:
chkconfig phpminer_rpcclient on
member
Activity: 111
Merit: 10
Hi,

I have installed phpminer and de RPC clients on 2 SMOS 1.3 rigs.

They are working correctly, but only untill reboot.
After reboot the RPC client does not auto start, and I can't find a way to start it manually.

Readouts are working with the client running, but I can't change pool.

Hope you can help me fix this!

I would also like to vote for sgminer support!

In the README there is written
First method:
Quote
service phpminer_rpcclient start

Second method:
Quote
Other

You should get the information for your distribution to run a script on system startup.

The command which needs to be executed is:

php -f {/PATH/TO/phpminer_rpcclient}/index.php

Replace {/PATH/TO/phpminer_rpcclient} to the path where you copied the phpminer_rpcclient.

Can not really understand why it isn't workling for your after rebooting.
I have tested the service for my own rig which also run's SMOS and there the service was started after reboot correctly.

On the weekend I will investigate some time to check it again.
member
Activity: 111
Merit: 10
+1 I also would like to known if there is a way to not use PHPMiner RPC and just the cgminer API (I do not need restart)

Sorry it is not possible to run this without phpminer rpc. The problem is that my system supports multi rig setup.
PHPMiner rpc is required in order to restart cgminer, reboot the rig and reading / writing the config files to cgiminer.
This is needed to ensure that cgminer is started with the latest config's which you configurated.
Also when you switch a pool group, the new pool config needs to be written to the cgminer.conf file.

I don't understand why phpminer-rpc is required. I also would like to use PHPMiner without installing the phpminer-rpc service on every rig. Restarting cgminer and writing the cgminer config file can all be done through the cgminer API. I only see rebooting the rig and killing/restarting cgminer when the process is defunct that would require a separate service running on each rig. If we just didn't use those features, would PHPMiner still function with the rest of the features?

If you don't read all entries than your thinking would be correct.
But I wrote that phpminer rpc is required also to write config files.
CGminer has the possiblity to write a config file but after a test i noticed that this command does not really write the correct values.
newbie
Activity: 13
Merit: 0
Hi,

I have installed phpminer and de RPC clients on 2 SMOS 1.3 rigs.

They are working correctly, but only untill reboot.
After reboot the RPC client does not auto start, and I can't find a way to start it manually.

Readouts are working with the client running, but I can't change pool.

Hope you can help me fix this!

I would also like to vote for sgminer support!
sr. member
Activity: 308
Merit: 250
+1 I also would like to known if there is a way to not use PHPMiner RPC and just the cgminer API (I do not need restart)

Sorry it is not possible to run this without phpminer rpc. The problem is that my system supports multi rig setup.
PHPMiner rpc is required in order to restart cgminer, reboot the rig and reading / writing the config files to cgiminer.
This is needed to ensure that cgminer is started with the latest config's which you configurated.
Also when you switch a pool group, the new pool config needs to be written to the cgminer.conf file.

I don't understand why phpminer-rpc is required. I also would like to use PHPMiner without installing the phpminer-rpc service on every rig. Restarting cgminer and writing the cgminer config file can all be done through the cgminer API. I only see rebooting the rig and killing/restarting cgminer when the process is defunct that would require a separate service running on each rig. If we just didn't use those features, would PHPMiner still function with the rest of the features?
member
Activity: 70
Merit: 10
Hi,

Can you add the pagination option to phpminer home page? We have large number of GPU miners running at my place.

Please PM your LTC address and your Skype - I'll send it to you.

LTCs donation is sent to your Lh5sjSpN88N3PeG3vyQD9h6bz2jV4tdoke

Please contact me via Skype (PM sent).
member
Activity: 70
Merit: 10
Hi,

Can you add the pagination option to phpminer home page? We have large number of GPU miners running at my place.

Please PM your LTC address and your Skype - I'll send it to you.
sr. member
Activity: 350
Merit: 250
Great work man!!

I noticed there is need to rename rewrite virtualhost for new apache (i think its >=2.4) - filename has to be phpminer.conf and "Require all granted" added

$ cat /etc/apache2/sites-available/phpminer.conf
Code:

        ServerAdmin [email protected]
        ServerName phpminer.yourmachineName
ServerAlias phpminer.yourmachineName

        DocumentRoot /srv/www/phpminer
        
                Options FollowSymLinks
                AllowOverride None
        

        
Require all granted
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
        


        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined


+ run
Code:
$ sudo apt-get install php5-json



Very good job man Wink Hope you will continue with development. Two thinks would be great:
- user roles (at least basic two - administrator with full right; plus watcher with read only permissions)
- support for new scrypt miners - especially sgminer that gaves me approximately +15kHash/s on r280x card

sr. member
Activity: 434
Merit: 250
Quote from: sheinsha
I ended up checking the code, there was a library used that was outdated and the browser wouldn't do anything when clicking buttons, and no dialog was shown.
jQuery, i tried 2.0.3 and it worked.

When it works for you then all fine, but the used jquery version is not outdated. There exist 2 versions of jquery the 1.x and 2.x 1.x has some features enabled which where removed at 2.x but both versions normally works.
You are right, I did not want to say outdated, sorry about that.

Also, Feature request:
Could you add a button/option to add a pool even if it is not up at the moment?
Code:
Can not connect to the given stratum server.
Do you want to add it anyway?
"Yes - No"

Maybe I will add it in the future, but for now I am waiting a bit with feature request. For me the system works as I expected and I have not the time to work on it day by day for free beside normal work which is also software developing.


I understand, I can help with that, I've already sent a PR with a tiny fix, maybe i could try and do it myself, not sure if i can accomplish but will try anyway.
member
Activity: 111
Merit: 10
Is anywhere how to for dummies?
It would be nice to make a tutorial with pictures or video

No, I have not the time to create such tutorials. For Linux there exist 2 easy "one-click" installation scripts. For windows I have not the best knowledge in windows shell to create such an installation script.
If anybody want's to create such windows installation script, there are welcome.
member
Activity: 111
Merit: 10
Quote from: sheinsha
I ended up checking the code, there was a library used that was outdated and the browser wouldn't do anything when clicking buttons, and no dialog was shown.
jQuery, i tried 2.0.3 and it worked.

When it works for you then all fine, but the used jquery version is not outdated. There exist 2 versions of jquery the 1.x and 2.x 1.x has some features enabled which where removed at 2.x but both versions normally works.
member
Activity: 111
Merit: 10
Also, Feature request:
Could you add a button/option to add a pool even if it is not up at the moment?
Code:
Can not connect to the given stratum server.
Do you want to add it anyway?
"Yes - No"

Maybe I will add it in the future, but for now I am waiting a bit with feature request. For me the system works as I expected and I have not the time to work on it day by day for free beside normal work which is also software developing.
member
Activity: 111
Merit: 10
Will this work with sgminer?

Can't say it right now. Requirements to work is that it accepts all API commands which PHPMiner uses and returns the value the same as CGMiner, and that SGMiner returns a version number which is creater or equal than 3.7.2.
newbie
Activity: 36
Merit: 0
Will this work with sgminer?
sr. member
Activity: 434
Merit: 250
Also, Feature request:
Could you add a button/option to add a pool even if it is not up at the moment?
Code:
Can not connect to the given stratum server.
Do you want to add it anyway?
"Yes - No"
sr. member
Activity: 434
Merit: 250
I never got to that part, i keep getting "The cronjob never ran! ...".
I will reinstall everything in a few hours.
Does this (https://github.com/prdatur/phpminer/blob/master/cron.php#L22-L24) make the cron exit before setting as run?

Yes this can prevent to run the cron.
You could check if a config.json file exist within the config directory. Normally this will be created after adding the first rig.

If not then this is the error.

Ok but how can i add my first rig, if the cron wont run first, so the phpminer web interface wont start.. can i put a dummy config.json? Will you give me one small enough to pass that empty test?
Thanks

when you opening phpminer webinterface and there is no rig configurated you should directly get a dialog where you can add a rig.
If not I have to check what is going wrong however you can press the button on the left side "Add rig". If this will not open the dialog to add a rig, tell me and I have to check this too.
I ended up checking the code, there was a library used that was outdated and the browser wouldn't do anything when clicking buttons, and no dialog was shown.
jQuery, i tried 2.0.3 and it worked.
newbie
Activity: 33
Merit: 0
Is anywhere how to for dummies?
It would be nice to make a tutorial with pictures or video
member
Activity: 96
Merit: 10
Rebooting on Sick/DEAD GPU's is still broken. It will send rapidpush notification about rebooting but no RPC command is send to phpminer client.
member
Activity: 111
Merit: 10
I never got to that part, i keep getting "The cronjob never ran! ...".
I will reinstall everything in a few hours.
Does this (https://github.com/prdatur/phpminer/blob/master/cron.php#L22-L24) make the cron exit before setting as run?

Yes this can prevent to run the cron.
You could check if a config.json file exist within the config directory. Normally this will be created after adding the first rig.

If not then this is the error.

Ok but how can i add my first rig, if the cron wont run first, so the phpminer web interface wont start.. can i put a dummy config.json? Will you give me one small enough to pass that empty test?
Thanks

when you opening phpminer webinterface and there is no rig configurated you should directly get a dialog where you can add a rig.
If not I have to check what is going wrong however you can press the button on the left side "Add rig". If this will not open the dialog to add a rig, tell me and I have to check this too.
Pages:
Jump to: