-
Notifications
You must be signed in to change notification settings - Fork 60
Windows Checklist Bot not starting
If you have any trouble to run the Ranksystem with Windows machines, please follow these steps, before you open an Issue. 99 % of the problems should be solved with this. Please take your time. Read and check carefully!
Run the command php -v
in windows command line (cmd.exe). If you get no result, you'll have to find out where you have installed PHP on your machine.
Fill out the full path to the php.exe into the file other/phpcommand.php
. Examples are already inside. Be aware to escape blanks. Also take care, that inside the phpcommand.php is only one line active. Uncomment or delete all other entries! On Windows you need to define the full path to the php.exe with single quotes; Do not use double quotes!
You can test this path also before on the windows command line (cmd.exe) with the -v
parameter to get the version... example:
c:\wamp\bin\php\php.exe -v
Output should looks like this (perhaps with an other version for sure):
PHP 7.0.4 (cli) (built: Mar 2 2016 15:01:12) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
Have a look into your php.ini file. There you should find a section extensions.
You need to activate the following line. It is necessary entry is has not an ;
or #
at the beginning of the line.
extension=php_com_dotnet.dll
Also be sure, you the php_com_dotnet.dll exists inside the ext
folder inside your PHP installation.
After changing this a restart of the webserver is needed!
Also inside your php.ini file you should find something like
disable_functions =
Check that the exec
command is not listed here. If it stands under disable_functions, you'll have to delete the exec
there!
After changing this a restart of the webserver is needed!
Run the command wmic CPU GET NAME
in windows command line (cmd.exe).
You should get shown your CPU model name. Then all is fine here!
If you get the result wmic is not recognized as an internal or external command
you'll need to search where the wmic.exe is on your system. Perhaps you'll find it inside C:\windows\system32\wbem
.
If you find the right path, you need to set an environment variable for the command wmic
to the path on your machine. Here a tutorial how to set an enviroment variable.
Plesk is an web hosting control panel. It brings on board a webserver, PHP, MySQL and much more, what is needed to host webservices.
If you use this, please choose inside of Plesk Admin-Panel a PHP version which is PHP 5.6 or higher. Google or the Plesk documentation should help you to find the right place where you can define it.
Check that you have set the needed file permissions to the whole ranksystem folder on your webspace. It is necessary the webuser have permissions to access that folder and all files which are inside (recursive!).
Important is also, that this webuser has also create & write permissions to the folders avatars
, tsicons
, update
and logs
!
If that steps before are all not helpful and you still have problems to run the Ranksystem, please do the following to get a debug output:
- Go to file
jobs\bot.php
and comment the line 6 out
error_reporting(0);
change this to
//error_reporting(0);
- Open a windows command line (cmd.exe) and run the
jobs\bot.php
manual. Choose the php.exe like described in step "1) PHP Installationpath" above. You need to stand inside the main folder, where the Ranksystem is installed.
php jobs\bot.php
or an other example
c:\wamp\bin\php\php.exe jobs/bot.php
- Post the output in an new issue on this repository.. thx!!