Linux/install GameCP
From GameCPWiki
Need to install GameCP? It can be easy!
Check the GameCP Requirements, if you have them installed you wont have a problem!
Use the Automated Install to download and install GameCP automatically.
Use the Advanced Install if you want to install GameCP manually or need help configuring an individual service.
Contents |
Video How-To
This is a video how-to install the master server. It was done on CentOS 5.4 but can be applied to nearly any operating system.
http://www.youtube.com/watch?v=nNOPbmFe_s0
Automated Installer
Login to your server that meets the GameCP Requirements via ssh.
Navigate to a directory that is accessable from the internet, ie: /var/www/html/panel
Stable Release
Download & Install GameCP:
wget http://gamecp.com/get/from/this/mirror/install.sh sh install.sh
Navigate to your directory in a web browser and finish the install...
Beta Release
Download & Install GameCP:
wget http://gamecp.com/get/from/this/mirror/install-beta.sh sh install-beta.sh
Navigate to your directory in a web browser and finish the install.
Binary Installer
GameCP now has a new installer in binary form. This will replace the bash installers currently used later this year (2010).
Download & Install GameCP:
wget http://cvs.gamecp.com/gamecp-linux.run chmod +x gamecp-linux.run ./gamecp-linux.run
CentOS Installer
This will install all requirements for GameCP. It is recommended to do this on freshly installed machine.
As seen @ http://www.youtube.com/watch?v=nNOPbmFe_s0
- Login to root ssh
- Disable SELinux (setup > firewall > seLinux > disable)
- Open port 80 or disable the firewall (setup > firewall > configure > check www and save)
- If apache is installed (server edition of 5.4) start it first -
service httpd start # You might need to start mysql too service mysqld start
- Download & run gamecp-linux.run:
wget http://cvs.gamecp.com/gamecp-linux.run chmod +x gamecp-linux.run ./gamecp-linux.run
- Say 'yes' to fix the any errors
- Create the MySQL user by hitting enter for all defaults
- Save the generated password for use later in the installer
- Restart apache
service httpd restart
- Browse to your ip to see the installer
- Install RRDTool, optional, by reading our wiki
- Complete the GameCP installer in your browser
- Old method This method is old and no longer supported. This was designed for CentOS 5.2
- Download & Install GameCP:
wget http://gamecp.com/get/from/this/mirror/centos-installer.sh sh centos-installer.sh
Advanced Install
The Advanced Install is a bit bigger so it has been moved to its own page.
FTP Daemons
GameCP does not do anything special for FTP Daemons (except for cPanel's update script).
Any FTPD that reads /etc/passwd for its users will work properly for GameCP.
You are responsible for securing your FTPD from any unauthorized use or directory browsing, each FTPD is diffrent so review its documentation.
Use the installer to update
To do so append the --update-master to the end of your command
./install.sh --update-master ./install-beta.sh --update-master
This will create a backups/ directory and save a copy of your install.
- The backups directory uses .htaccess to protect if, please verify your .htaccess is working.
Goto your web directory in a browser and run installer/update.php
Updating GameCP
http://wiki.gamecp.com/?title=Linux/update
Clean Update
Here is an example of a clean update using the beta installer:
cd /path/to/gamecp/www mkdir tmp ; mv * tmp wget http://cvs.gamecp.com/install-update.sh sh install-update.sh mv tmp/includes/mysql.inc.php includes/ # overwrite the file # Browse to installer/update.php from FireFox to update the panel
Archive or remove the tmp/ directory if you are happy with the upgrade.
Manually Update GameCP
Navigate on your server via ssh to the directory your GameCP web files are.
Create a backup of your GameCP install.
tar -pczf GameCP-Backup.tar.gz *
Download the latest stable or beta version of GameCP to your server
Extract the archive in your GameCP web based directory. Example:
tar zxvf GameCP-Master-BleedingEdge.tar.gz
Goto your web directory in a browser and run installer/update.php
Downgrade GameCP
If using install-beta.sh (or install.sh when configured to do so): Archives are automatically created in the `backups` directory located in your web portion of GameCP.
Extract the backups from your web based directory:
cd /path/to/gamecp/www tar zxvf backups/GCPBackup-[date].tar.gz
If your not using the installers:
You should be creating your own backups, in this case extract one of your backups over GameCP.
Didnt make a backup? Download the latest "stable" version of GameCP and extract it over your web-based install.
cd /path/to/gamecp/www wget http://cvs.gamecp.com/install.sh sh install.sh --update-master
- You can edit install.sh to enable backups to be created, this is recommended.
There should be no need to modify anything in /usr/local/gcp/ or with your MySQL.
Uninstall GameCP
Automatic uninstaller
Login to your server and navigate to where web interface is installed.
Download and run uninstall.sh:
cd /path/to/gamecp wget http://gamecp.com/uninstall.sh sh uninstall.sh
You will need to remove /usr/local/gcp from any remote machines if doing a total uninstall.
Manual uninstall
Login to your server, goto the directory you installed GameCP and read your MySQL file to find the sql info to delete your database (unless you know it already)
cd /path/to/gamecp/www tail includes/mysql.inc.php
Login to MySQL and delete the database you created for GameCP.
Remove the files in your GameCP web-based directory using rm -rf.
Remove the gcp backend in /usr/local/gcp/
rm -rf /usr/local/gcp/
You will need to remove /usr/local/gcp from any remote machines if doing a total uninstall.
Ubuntu
You many need to install the 'whois' package to receive the 'mkpasswd' program - this is odd - but required for GameCP. This is in the latest editions of ubuntu.
apt-get install whois

