Skip to content

Instantly share code, notes, and snippets.

View chrisdchristo's full-sized avatar

Chris Damian chrisdchristo

View GitHub Profile
@chrisdchristo
chrisdchristo / 101_mediawiki.md
Created December 28, 2013 14:13
101: MediaWiki

101: MediaWiki

Install the package:

sudo apt-get install mediawiki

By default, an apache mediawiki.conf file is placed in /etc/apache2/conf.d/mediawiki.conf which links a conf file in the mediawiki installation. Its is better to manage the various websites via ssl encrypted virtual hosts.

@chrisdchristo
chrisdchristo / 101_phpmyadmin.md
Last active January 1, 2016 14:49
101: PhpMyAdmin

101: PhpMyAdmin

https://mydomain.com:445/pma

sudo apt-get install phpmyadmin

By default, an apache phpmyadmin.conf file is placed in /etc/apache2/conf.d/phpmyadmin.conf which links a conf file in the phpmyadmin installation. Its is better to manage the various websites via ssl encrypted virtual hosts.

@chrisdchristo
chrisdchristo / 101_apache.md
Created December 28, 2013 13:56
101: Apache

101: Apache

sudo apt-get install apache2

Setup the default site (/var/www)

To host your own custom website, you will want to use the /var/www folder for your files.

@chrisdchristo
chrisdchristo / 101_java.md
Created December 28, 2013 13:52
101: Java 7

101: Java

Current Version: 1.7.0_09-b05 x64

Download the lastest version from Oracle. You want Java 7 SE edition:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

You want the JDK version as this will include the JRE as well. Oracle require you to accept an agreement to download so you won't be able to wget the link from your server. So download it to your local machine and SCP it. Get the Linux x64 tar.gz version.

@chrisdchristo
chrisdchristo / 101_openldap.md
Created December 28, 2013 13:49
101: OpenLDAP
@chrisdchristo
chrisdchristo / 101_openvpn.md
Last active January 1, 2016 14:39
101: OpenVpn

101: OpenVPN

You might need to ask your hosting provider to enable TUN.

sudo apt-get install openvpn openvpn-blacklist

Create the static key

101: OpenSSL

sudo apt-get install openssl gnutls-bin ssl-cert

Creating the /etc/ssl/custom directory

sudo mkdir /etc/ssl/custom
@chrisdchristo
chrisdchristo / 101_ubuntu_setup.md
Last active December 29, 2015 18:09
101: Ubuntu Setup

101: Ubuntu Initial Setup

Updating & Upgrading

To start off with it is wise to to update aptitude, upgrade the system and finally auto remove any unneeded packages.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
@chrisdchristo
chrisdchristo / 101_mysql_reinstall.md
Last active December 29, 2015 17:39
101: Resetting MySQL

101: MySQL Reinstall

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql*
@chrisdchristo
chrisdchristo / 101_ejabberd.md
Last active December 29, 2015 17:39
101: ejabberd

101: ejabbered

ejabbered is a popular XMPP server to facilitate instant messaging.

Please replace all 'mydomain.com' with your own domain in the below configuration.

Kill all ejabberd processes:

killall beam beam.smp epmd ejabberd