Skip to content

Instantly share code, notes, and snippets.

View centminmod's full-sized avatar

George Liu (eva2000) centminmod

View GitHub Profile
@centminmod
centminmod / monitrc
Last active August 29, 2015 14:03 — forked from palpalani/monitrc.sh
Forked instructions
//Monitor CentMinMod server using Monit
//About Monit
Monit is a helpful program that automatically monitors and manages server programs to ensure that they not only stay online consistently, but that the file size, checksum, or permissions are always correct. Additionally monit comes with a basic web interface through which all of the processes can be set up. This tutorial will cover the most basic setup and configuration.
//Install Monit on CentOS 6.5
//STEP 1: Installation
//packages needed
yum install pam-devel
@centminmod
centminmod / redisinfo.sh
Last active July 29, 2022 10:00
redis server info and stats for Centmin Mod installs centminmod.com. If redis password is set in /etc/redis.conf, edit the variable REDISPASSWORD='your_redis_password'
#!/bin/bash
VER=0.0.2
#########################################################
# redis server info script for CentminMod.com
# written by George Liu (eva2000) vbtechsupport.com
#########################################################
# redis password set by requirepass in /etc/redis.conf
REDISPASSWORD=''
SOCKET=n
TRINSICTIME=10
server {
server_name blog.centminmod.com www.blog.centminmod.com;
return 301 https://$server_name$request_uri;
}
# https SSL SPDY vhost
server {
listen 443 ssl spdy;
server_name blog.centminmod.com;
#!/bin/bash
echo "###################################"
echo "Patching OpenSSL 1.0.1g"
echo "###################################"
echo "CVE-2010-5298"
echo "http://www.cvedetails.com/cve/CVE-2010-5298/"
echo "####################################"
echo ""
cd /svr-setup
rm -rf openssl-1.0.1g*
@centminmod
centminmod / installer.sh
Last active August 29, 2015 14:00
Centmin Mod installer.sh using Github repository https://github.com/centminmod/centminmod. Using latest beta branches https://github.com/centminmod/centminmod/branches. To run installer.sh directly type: curl -sL https://gist.github.com/centminmod/88c3f88bca1e477295b0/raw/installer.sh | bash
#!/bin/bash
#######################################################
# centminmod.com cli installer
# To run installer.sh type:
# curl -sL https://gist.github.com/centminmod/88c3f88bca1e477295b0/raw/installer.sh | bash
#######################################################
branchname=123.07beta21
DOWNLOAD="${branchname}.zip"
INSTALLDIR='/usr/local/src'
@centminmod
centminmod / gist:87f05fdce6b65435ceb2
Last active August 29, 2015 14:00
owncloud 6.x install and configuration for Centmin Mod Nginx http://centminmod.com/

Step 1. Create MySQL database, MySQL username and password and grant privileges to the created MySQL database.

Where:

  • MySQL database name = owncloud1db
  • MySQL username = owncloud1username
  • MySQL password = yourmysqlpass
mysqladmin -u root -p create owncloud1db
@centminmod
centminmod / phpowncloud.conf
Created April 30, 2014 15:28
Owncloud for Centmin Mod Nginx vhost php include file i.e. /usr/local/nginx/conf/phpowncloud.conf to replace default provided /usr/local/nginx/conf/php.conf - needed changes to be inline with official suggested php context contents at http://doc.owncloud.org/server/6.0/admin_manual/installation/installation_source.html#web-server-configuration
location ~ ^(.+?\.php)(/.*)?$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
try_files $1 = 404;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/tmp/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$1;
fastcgi_param PATH_INFO $2;
@centminmod
centminmod / installer.sh
Last active August 29, 2015 13:58
Centmin Mod 1.2.3-eva2000.07 beta installer.sh wrapper featured at https://blog.centminmod.com/327
#!/bin/bash
# centminmod.com cli installer
#######################################################
DOWNLOAD='centmin-v1.2.3-eva2000.07_submenu_230514.zip'
INSTALLDIR='/usr/local/src'
# SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
#######################################################
#
@centminmod
centminmod / gist:9840834
Last active August 29, 2015 13:57
default WebScaleSQL MySQL 5.6.17 http://webscalesql.org out of the box default variables on custom compilation along side with existing MariaDB 5.5.36 RPM install on CentOS 6.5 64bit CentminMod.com Nginx web stack
/usr/local/mysql/bin/mysqladmin var | tr -s ' '
+------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value |
+------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| auto_increment_increment | 1 |
| auto_increment_offset | 1 |
| autocommit | ON |
| automatic_sp_privileges | ON |
| back_log | 80 |
| basedir | /usr/local/mysql |
@centminmod
centminmod / gcc473.sh
Created March 23, 2014 11:57
gcc 4.7.3 compile for centminmod.com builds
#/bin/bash
#######################################################
# gcc 4.7.3 install for Centminmod.com
#######################################################
GCC_VERSION='4.7.3'
GCC_CONF='n'
GMP_VER='5.1.3'
MPC_VER='1.0.1'
MPFR_VER='3.1.2'