Newcomer1989 / TSN-Ranksystem

A PHP Bot that assigns time based server groups on TeamSpeak3.
https://ts-ranksystem.com
GNU General Public License v3.0
144 stars 60 forks source link

Windows - Bot not connecting "CRITICAL Your PHP version (5.X) is below 5.5." #579

Closed htm1994 closed 5 years ago

htm1994 commented 5 years ago

Hi When click On Start Bot Show This message and No Connect Bot:

Ranksystem Bot should be started. Check the log below for more information!

Pictures: https://mega.nz/#!p1YGgQ5I!A55fgCKALCLnpliVS-JNWBK82zk_a_t49tcLO3dM_FU plz help ty

Newcomer1989 commented 5 years ago

Are you using windows?

htm1994 commented 5 years ago

Yes I use windows server 2012R2 plz help me

Newcomer1989 commented 5 years ago

Please pay attention to this wiki article

htm1994 commented 5 years ago

Hi Read This link and i did them. start bot and not runing perrmissions folder set on Which user? start bot and show this error: 2019-02-15 21:43:34.734235 CRITICAL Your PHP version (5.4.45) is below 5.5.0. Update of PHP is required! Shutting down! but php version is 7.2.14 plz help me

Newcomer1989 commented 5 years ago

If there stand PHP version 5.4.45, then your PHP version you are using is 5.4.45 not 7.2.14 :-P

You really carefully read the article? Please focus on step 1)

htm1994 commented 5 years ago

Hi I did step1 and show php version is 7.2.14 I did not get step 5 & 6. how to set permission folder? witch users? ty

Newcomer1989 commented 5 years ago

You really carefully read the article? Please focus on step 1)

-> Fill out the full path to the php.exe into the file other/phpcommand.php. Examples are already inside.

At this moment you see inside the Ranksystem.log the PHP version 7.x, you have done it right!

If you still have problems, please show us your actual ranksystem.log. You also need to describe whats the current thing, cause it shouldn't be the message above CRITICAL Your PHP version (5.4.45) is below 5.5.

htm1994 commented 5 years ago

Hi This Picture for show php version. phpver

log tsn rank bot: 2019-02-15 21:37:53.170307 DEBUG Successful login attempt to the webinterface from IP ::1. 2019-02-15 21:40:22.387501 DEBUG Successful login attempt to the webinterface from IP ::1. 2019-02-15 21:42:05.323142 DEBUG Successful login attempt to the webinterface from IP ::1. 2019-02-15 21:43:17.937560 DEBUG Successful login attempt to the webinterface from IP ::1. 2019-02-15 21:43:34.734235 CRITICAL Your PHP version (5.4.45) is below 5.5.0. Update of PHP is required! Shutting down! 2019-02-15 21:46:37.292464 DEBUG Successful login attempt to the webinterface from IP ::1. 2019-02-17 18:12:06.293613 DEBUG Successful login attempt to the webinterface from IP ::1.

Newcomer1989 commented 5 years ago

How looks your other/phpcommand.php?

You are cheating, bro.. you go inside the xamp folder. Sure, there is under the PHP folder a php.exe inside. But how should the Ranksystem know, that your PHP is placed there?

So type php -v inside the system32 folder (or anywhere else) and you will see, you have also a PHP 5.4.45 installed. Since your PHP environment variable ("php") is pointing to the other version (5.X), the Ranksystem will use this as default.

You need to change the environment variable or you disclose to the Ranksystem where your PHP is installed. Last you can do with the other/phpcommand.php. There is also one example inside, which is exactly what you need: $phpcommand = 'c:\xampp\php\php.exe';

htm1994 commented 5 years ago

Thank you my friend I did not understand what you meant, and I used another way to give the php address. Thank you again

Newcomer1989 commented 5 years ago

Ok, nice to hear it helps. Cause it seems to be all working fine, I will close this issue. If you still need help, feel free to reopen it.