Giter VIP home page Giter VIP logo

mchostpanel's Introduction

MCHostPanel

A lightweight Minecraft control panel for hosting companies

MCHostPanel can manage an unlimited number of Minecraft control panels, including CraftBukkit, Tekkit, and any other custom build that uses a .jar file.

Requirements

  • PHP 5.3+ with GD library (GD only used for player faces)
  • GNU Screen (installed by default on many platforms)
  • Java 6/7 Headless (OpenJDK JRE works great)

Installation

  • Upload all of the files to a web-accessible directory on your server
  • Copy data/config-sample.php to data/config.php
  • Edit data/config.php and set KT_LOCAL_IP to your server's public IP address
  • Go to install.php in your browser and set up an administrator user
  • Add any Minecraft server .jar file to your home directory
  • Ensure the web server user has write access to the main MCHP and data/ directories.

User setup

  • Log in as an administrator user
  • Go to Administration
  • Use the "Add a New User" form to set up a new account, the home directory SHOULD NOT be web accessible
  • Add any Minecraft server .jar file to the user's directory
  • Ensure the web server user has write access to the directory
  • If desired, you can now start the user's server from the Administration page

mchostpanel's People

Contributors

alanaktion avatar hcaz avatar jrogaishio avatar useruser3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mchostpanel's Issues

Stop button doesn't stop minecraft server instance.

HELP NEEDED!
I tried everything, I can't get anything to work, I am starting to lose hope, I have been troubleshooting for 2 days now.

I press the stop button, and it says it has stopped, but when I htop, I can see that the java instance is still running.
as I didn't notice this issue, my server has been overloaded by old instances of servers still running.
if someone can please give me a code that can stop the 'screen' session and the java session.
It will be much appreciated.

Photo to the problematic code: (inside /data/config.php/)
image

My speculations are that the session dies but the java process still runs, or the session cannot die until the java process is been killed or stopped.
EDIT:
Never mind it works. I used geraskalnas fork and it works "ok". there is still a prominent issue, the java process has to finish generating the world until it could quit, which I guess is ok.

Delete or modify users from administration menu

I wanted to change the ram limit of the user server, but I couldn't find how to adjust the user data through the administration menu. I later wanted to delete that user, but I also couldn’t find where.
Finally, I found that I could change the user data in the data /users/ folder.
I think it would be good to add these functions to the administration menu, so it would be easier to administer users.

Screen directory permissions problem

Hello! I have an issue when i am going to set things up with the "screen".
Firstly, apache couldnt create a folder in the directory: /var/run/screen/

So i created one manually and gave apache the ownership of it. Now i get the error:
Directory /var/run/screen/S-apache must have mode 700.

So i set the S-apache folder permissions to 700 and i get a new error:
Cannot opendir /var/run/screen/S-apache: Permission denied

I have no idea how to fix this so if you know the solution, Please help me:)

Ps: This panel looks amazing

My server machine info:
OS: Cent OS 7
PHP Version: 5.6.31
Screen Version: 4.01.00devel (GNU)

Thanks!

GNU Screen Permission Error

Heyyo, So after i did a yearly os reset by installing a brand new centos 7 minimal on the machine i decided to give this panel another try. I installed GNU Screen, Apache, PHP 5.4.16 & Java 8. I doubt it would work this time, But it didnt. It threw same error at me as before:

Running as user: apache

Cannot make directory '/var/run/screen/S-apache': Permission denied

I tried everything i could. I'm starting to wounder if its the apache name thats incorrect for me and the permissions. The webserver files are owned by "www-data" as you might have expected, But if i do the exec whoami in php it tells me apache. And same does your script when saying: "Running as user: apache". Shall i set the webserver files to apache too? Or what permission changes are required for this to work.
It would be awesome if you could help me make this work, And i really hate opening a new issue for this.
Thanks! ~Julle

Request: BungeeCord Logs

Could you please add the log file to the ajax.php file.

Here is an example of the change by adding the proxy.log.0 file. Thanks

case 'server_log':
                /*if($files = glob($user['home'] . "screenlog.?*")) {
                        // Prefer GNU screen log
                        echo mclogparse2(file_backread($user['home']));
                } else*/
                if(is_file($user['home'] . "/logs/latest.log")) {
                        // 1.7 logs
                        echo mclogparse2(file_backread($user['home'] . '/logs/latest.log', 64));
                } elseif(is_file($user['home'] . "/server.log")) {
                        // 1.6 and earlier
                        echo mclogparse2(file_backread($user['home'] . '/server.log', 64));
                } elseif(is_file($user['home'] . "/proxy.log.0")) {
                        // BungeeCord
                        echo mclogparse2(file_backread($user['home'] . '/proxy.log.0', 64));
                } else {
                        echo "No log file found.";
                }
                break;
        case 'server_log_bytes':
                header('Content-type: application/json');

                // Find log file
                if(is_file($user['home'] . '/logs/latest.log')) {
                        $file = $user['home'] . '/logs/latest.log';
                } elseif(is_file($user['home'] . '/server.log')) {
                        $file = $user['home'] . '/server.log';
                } elseif(is_file($user['home'] . '/proxy.log.0')) {
                        $file = $user['home'] . '/proxy.log.0';
                } else {
                        exit(json_encode(array('error' => 1, 'msg' => 'No log file found.')));
                }


Installation not working

So I uploaded all the files in the ZIP to /var/www/html/ in my Debian 8 VPS but when I try to access the web page it just comes up blank. I have php5, apache2, MySQL, and phpmyadmin installed. What did I do wrong?

ERR_TOO_MANY_REDIRECTS

Hey,

I've just installed MCHP in my subdomain and, after doing the installation as README says, it throws a "Too many redirections" error and it don't load the page.

Any idea about that?

The page isn't redirecting properly

Hello, I have Nginx and i have this error on dashboard.php :
"The page isn't redirecting properly"

I have the same probleme with apache2 ! Help me please :(

[Question] Start screen sessions on boot with crontab

Using crontab as www-data, how would I start screen sessions as the web interface would that the web interface would detect? I tried copying the command from the config file, replacing the string variables with the apropriate ones, but it doesn't seem to work. I think it's possible, but I need a few pointers. Any ideas?

Invalid login details

I followed step by step installation to the point of creating an administrator user, after that I get a box that allows me to return to the panel.
The problem is when I want to start session, because when I press the button "log in" only is refreshed, after a few minutes I try again and appears "Invalid login details."

Call install.php from commandline

I realize this project is a bit outdated and may not be actively developed.

However, I think this panel could be very useful in a slightly different context, there are so many Minecraft panels out there.

But I haven't found one that will do what I have in mind here.

So, if you could call install.php from command line or by some other automatable way it would make this panel the only Open Source one to my knowledge that would allow VPS/Hosting providers to offer turnkey dedicated Minecraft VPS servers which could be automatically spun up with the proper memory settings for that particular VPS (ideally it could detect the total RAM on the VPS, and inject that into the initial install)

See everyone has a shared panel that packs several Minecraft servers on one single system, but we are proposing a system which would be dedicated where each VPS would (by default) only run one single Minecraft instance

If I were a better coder I would do this myself, but I never did learn how to code all that much, So i post this as a feature request, or simply an inquiry as if anyone would be interested in working on this.

Servers will not start

i have installed this on a windows server 2012 r2 machine running iis.it looks as if it has installed correctly as the website works fine and I can create other users, but when I try to start a spogit server nothing happens,I click the button it disables for a second and then reenables.

Can you please fix s or tel me how I can fix it, thanks

servers not starting

when i want start the server it will go online and in a fews seconds offline again pls help :(

Installation

I am having a problem on installing this to my VPS (Ubunutu 16.04) I get it up and running on the internet, but I think I am missing something that the install.php does nothing? Even I put all the credentials its still cannot login, and again can again use install.php

Nothing happens which start button is clicked.

I've got all the dependencies installed (Apache, PHP, Screen, Java). The home directory and the data directories are chowned by www-data.

The server.jar is selected and then the start button is clicked, but the server does not launch. No screen sessions seem to be created (even though S-www-data is chowned by www-data).

The only thing that does happen is a server.properties file is created when the start server button is pressed.

I'm probable missing something silly, just not sure how to debug the issue.

Error

It Says Undefined index: error in C:\wamp\www\Server Control Panel\index.php on line 44 And Says Undefined index: user in C:\wamp\www\Server Control Panel\index.php on line 15 And When I Login It Says Warning: require_once(data/config.php): failed to open stre am: No such file or directory in C:\wamp\www\Server Control Panel\inc\lib.php on line 3 And Says require_once(): Failed opening required 'data/config.php' (include_path='.;C:\php\pear') in C:\wamp\www\Server Control Panel\inc\lib.php on line 3 You Better Fix This

Complete rewrite

This shouldn't be too hard to do, and I think we can do better overall with a new codebase.

Start Button

When I Press Start Server It Does Not Start And Players Says Unkown Running On X10hosting Linux VPS

Not Working

When I Click Start It Won't Start And Stills And Start And I Don't Know How To Make CraftBukkit And The Upload Button Is Not Working

once installed the panel wont remember password.

once I install using install.php the panel first of all does this.
"This web page has a redirect loop
ERR_TOO_MANY_REDIRECTS" - Google Chrome
then on Firefox the page shows but the password is apparently incorrect.

Thanks for your time, great project!

GNU Screen Dependency

GNU Screen should be added to "Requirements" in the readme, as it is not loaded by default in CentOS/RedHat environments.

Read/write permission

If you are running linux you need to get www-data or everyone or yourself write access to ./data/users or it wont work

Custom chmod for files added by panel

Hello, I would like to use this panel to my dedicated server and make a distinction between ftp, I have already created an account ftp is the only problem. Files which creates this panel are too small chmod. They form from 0644, and the user can only open. It gave to the council to form in August with more permisjami. every time I'd have to give chmod new users which will create the server. my ftp on debian from what I used proftpd

Start doesn't work

The start button doesn't work

I have java (the server work in terminal), screen and i set the server to 2048MB

Help please :/

Some issues with install

Hello!

When I install the panel, it does load the login screen but I cannot proceed past it. A few questions I have that might fix this are:

  • Do usernames have to be the same as SSH users?

  • Where is the home directory? Is it in the actual /home/user or is it wherever is set during the install?

EDIT: It says I am now logged in after making the admin account, yet still takes me to the main page and doesn't let me log in / view any other pages.

Players: Checking…

It just keeps saying Players: Checking…nothing happens
Using Nginx with php5-fpm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.