I got the PHP 7.2 from genkins and I'm using it now but I'm getting this: CAL] Please initialize composer dependencies before running. Restarted 598 times [CRITICAL] Composer autoloader not found [CRITICAL] Please initialize composer dependencies before running. Restarted 599 times [CRITICAL] Composer autoloader not found [CRITICAL] Please initialize composer dependencies before running. I opened the new bin file and I see 2 composer, one is .phar
readthedocs! anyways, the fix is to execute the following command in the server dir: ./bin/composer install or alternatively ./bin/php7/bin/php ./bin/composer.phar
I did Code: root@vps138039:/home/w# ./bin/composer install Do not run Composer as root/super user! See https://getcomposer.org/root for details Composer could not find a composer.json file in /home/w To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section root@vps138039:/home/w#
the server is not in /root why does it say Code: Do not run Composer as root/super user! See https://getcomposer.org/root for details?
Because you're still running as a root user! The directory doesn't matter, but you have to use another user, other than root.
Well when I added a new user and logged out from root and logged back in using the new user, there was something with permission when I tried to startup the server
Code: ouch('/home/pe/server...') #2 phar:///home/pe/PocketMine-MP.phar/src/pocketmine/PocketMine.php(197): pocketmine\utils\MainLogger->__construct('/home/pe/server...') #3 /home/pe/PocketMine-MP.phar(1): require('phar:///home/pe...') #4 {main} thrown in phar:///home/pe/PocketMine-MP.phar/src/pocketmine/utils/MainLogger.php on line 54 Restarted 202 times Fatal error: Uncaught ErrorException: touch(): Utime failed: Permission denied in phar:///home/pe/PocketMine-MP.phar/src/pocketmine/utils/MainLogger.php:54 Stack trace: #0 [internal function]: pocketmine\{closure}(2, 'touch(): Utime ...', 'phar:///home/pe...', 54, Array) #1 phar:///home/pe/PocketMine-MP.phar/src/pocketmine/utils/MainLogger.php(54): touch('/home/pe/server...') #2 phar:///home/pe/PocketMine-MP.phar/src/pocketmine/PocketMine.php(197): pocketmine\utils\MainLogger->__construct('/home/pe/server...') #3 /home/pe/PocketMine-MP.phar(1): require('phar:///home/pe...') #4 {main} thrown in phar:///home/pe/PocketMine-MP.phar/src/pocketmine/utils/MainLogger.php on line 54 Restarted 203 times
Ok, forget it, switch back to root user (su -) and enter pwd. Then cd into the server directory and do ls there. It looks like your composer.json is missing. You could also just use a phar.