Sites update/upgrade

Just a quick post talking about update and hardware upgrades on this website and other websites I maintain.

So over the last week, I’ve updated the sites theme and upgrading the hardware the websites run on, the websites are not longer hosted on a contabo (https://contabo.com) vps but now on a vps on my own dedicated server witch I rent from UKServers (https://ukservers.com)

The website is now also running on cPanel instead of just apache making the site much easier to maintain, and the site looks to be loading alot faster

Stats for nerds

Dedicated Servers Specifications

100mb uplink

32GB of ddr3 ram

8 cores + hyperthreading – 3.20 gigahertz

4gb of ram – 2 standalone drive and 2 in raid 1

Running XenServer

cPanel/WHM virtual machine

500GB raid storage

4GB of ram with another 4GB shared reserved

2vcores

IGSteven / November 12, 2017 / Apprenticeships, Development, Thing that interest me / 0 Comments

multicraft install page - Multicraft - the minecraft hosting solution

How to Install Multicraft On CentOS 7

How to Install Multicraft On CentOS 7

What is the Multicraft Control Panel?

Multicraft is a powerful Minecraft control panel witch is brilliant for manging you’re servers or for hosting companies wanting to sell Minecraft hosting with a WHMCS and BoxBilling module with Multicraft you get the ability to limit server ram and player slots the configs and who has console and ftp access to the server (per mc server)

Installing the Dependencies

first its always a good idea to check for updates on you’r systeam

$ yum y update

next we want to install the dependencies, that multicraft requires to run (httpd, php, curl, zip, tar, wget, vim, java 1-8-0 php-mysql and a few other things)

$ yum -y install httpd php php-common php-gd php-mbstring php-ldap php-odbc php-pear php-xml php-xmlrpc php-bcmath php-mysql php-pdo wget vim tar zip curl java-1.8.0-openjdk
once installed 

Ok now we want to download and start installing multicraft

$ wget O multicraft.tar.gz http://www.multicraft.org/download/linux64
$ tar xfvz multicraft.tar.gz
$ cd multicraft
$ ./setup.sh

Now that its installing it will prompt you with a few settings options, I would recommend running each minecraft server under its own user as it says

next we need to make sure the web

$ chown R apache.apache /var/www/html

Now we need to allow override in apache

$awk ‘/AllowOverride None/{c++;if(c==2){sub(“AllowOverride None”,”AllowOverride All”);c=0}}1’ /etc/httpd/conf/httpd.conf > /tmp/httpd.conf; mv f /tmp/httpd.conf /etc/httpd/conf/httpd.conf

 

and now enable and restart apache/httpd

$ systemct1 enable httpd

$ service httpd restart

 

now visit the IP address of the server for example http://172.0.0.2/install.php

multicraft install page - Multicraft - the minecraft hosting solution

click start install.

Now we need to setup our databases

i would just use the default (SQLite) as it docent really matter and it makes it easier to move the multicraft to another server in the future.

 

once you’ve done that, we can now login to multicraft

The default username is admin and the password is admin as well.

 

now its a good idea to enable multicraft as a service so it can boot on lunch ( something i never did for 6months.. so every time i restarted i had to run systemctl start multicraft)

first thing we need to do to make it a service is to create a .service file you can find some online or use the example below.

$ nano /lib/systemd/system/multicraft.service

Now paste this in ( from ssh you can right click after you’ve put it in you clipboard

[Unit]
Description=IGSteven's Multicraft Startup Script
After=syslog.target network.target
 
[Service]
Type=forking
PIDFile=/home/minecraft/multicraft/multicraft.pid
ExecStart=/home/minecraft/multicraft/bin/multicraft -v start
ExecReload=/home/minecraft/multicraft/bin/multicraft -v restart
ExecStop=/home/minecraft/multicraft/bin/multicraft -v stop

[Install]
WantedBy=multi-user.target

now save and you should be good,

$ systemctl enable multicraft 
$ systemctl start multicraft

just like multicraft says we should remove the install file from the public so that people don’t just reinstall mutlicraft, i usually just put it in the /var/www folder

$ mv /var/www/html/install.php /var/www/

 

In the next part I’ll show you how to setup jars on multicraft and creating a server

Mutlicraft install page

IGSteven / October 31, 2017 / Development, Random / 5 Comments

How to installing your own nginx RTMP server

How to installing your own nginx RTMP server

Want to stream to more than one streaming platform such as Twitch, Mixer, Smashcast or youtube gaming at once without using restream or switchboard well then a private RMTP server might be your solution

I’m mainly writing this so cause people ask me how I stream to twitch and mixer without stupid delay you get from services like Restream and SwitchBoard. I’ve been running my own RTMP for around 9 months so far and I’ve only ever had 1 issue with it and that’s because of lack of restarts I’ve no got it on a cron to auto restart every month.

Installing nginx

login to your server using a terminal, this can be with ssh or by with a screen and keyboard plugged into it if you have the server box with you, but I personally use a VPS with Contrabo for my server

You need to install the dependencies,

$ sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev

Now we can download nginx it doesn’t matter where you put it, but I’ve put mine in /home

$ wget http://nginx.org/download/nginx-1.13.1.tar.gz

You also want to download the RTMP Module from GitHub

$ wget https://github.com/arut/nginx-rtmp-module/archive/master.zip

Now we can extract these files and begin the install

$ tar -zxvf nginx-1.13.1.tar.gz
$ unzip master.zip
$ cd nginx-1.13.1

After ok now we get down to business and configure and install nginx with the RMTP module

$ ./configure –with-http_ssl_module –add-module=../nginx-rtmp-module-master
$ make
$ sudo make install

Ok so now the servers installed, lets start it up

$ sudo /usr/local/nginx/sbin/nginx

Configuring RMTP

Where it says (KEY) replace that with you’re stream key for that platform; if you don’t want to stream on that platform you can remove that line,

you can chose if you want to be able to connect the server and watch the stream using publish but if you’re just using this to restream then can just leave it as off.

rtmp {

server {

listen 1935;
chunk_size 4096;

application live {

live on;
record off;
publish on;
push rtmp://live-lhr.twitch.tv/app/(KEY);
push rtmp://ingest-lon.beam.pro:1935/beam/(KEY);
push tmp://a.rtmp.youtube.com/live2(KEY);

}

}

}

Restart nginx/RTMP

to restart nginx and RTMP you can do the following commands,

$ sudo /usr/local/nginx/sbin/nginx -s stop
$ sudo /usr/local/nginx/sbin/nginx

IGSteven / October 28, 2017 / Development, Streaming Tips / 0 Comments

How to install cPanel/WHM on CentOS 7

How to install cPanel/WHM on CentOS 7

cPanel/WHM has a sh installer file that we can download and run on centos 7 witch we can download and run to install cpanel.

Things you’ll need

  • Root access
  • ssh or terminal access

Step 1 – First navigate to you’re home directory as this is where we will put the sh file

$

cd /home

Step 2 – Download the latest version of cpanel/whm

$

7udo wget http://layer1.cpanel.net/latest
Step 3 – run the sh file we just downloaded

$

sudo sh latest
alternatively you can use this command

$

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

IGSteven / October 28, 2017 / Development / 0 Comments