This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Magic markers: | |
#%# family=auto | |
#%# capabilities=autoconf | |
use strict; | |
use Munin::Plugin; | |
need_multigraph(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* TODO: File header. | |
* TODO: Code comments. | |
*/ | |
if(function_exists("apc_cache_info") && function_exists("apc_sma_info")) { | |
$time = time(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name yourghostdomain.com www.yourghostdomain.com; | |
access_log /home/nginx/domains/yourghostdomain.com/log/access.log combined buffer=32k; | |
error_log /home/nginx/domains/yourghostdomain.com/log/error.log; | |
root /home/nginx/domains/yourghostdomain.com/public; | |
location /blog { | |
include /home/nginx/domains/yourghostdomain.com/proxy.conf; | |
include /home/nginx/domains/yourghostdomain.com/proxycache.conf; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just deactivate WP-FFPC like any WP plugin and delete it. Then need to adjust your Nginx domain's Nginx vhost domain.conf file to format for WP Super Cache. Quick manual method for WP Super Cache install are the following commands via WP-CLI tool. | |
Assuming /home/nginx/domains/domainname.com/public/wp is your Wordpress install directory. If you haven't installed Wordpress yet follow only step #2 outlined at http://centminmod.com/nginx_configure_wordpress_ffpc_plugin.html | |
then type following commands in SSH window editing just your WPDIR variabvle to point to your domainname.com path where wordpress is installed. | |
WPDIR='/home/nginx/domains/domainname.com/public/wp' | |
CHOWNDFT='nginx:nginx' | |
cd $WPDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
########################################## | |
# /etc/init.d/btsync | |
# btsync init.d for CentminMod.com installs | |
########################################## | |
DEBUG='n' | |
########################################## | |
SERVICE=btsync | |
BITDIR='/usr/bin' | |
########################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################# | |
for 64bit OS only | |
pushd /svr-setup/ | |
mkdir bittorrentsync | |
wget http://download.getsyncapp.com/endpoint/btsync/os/linux-glibc23-x64/track/stable -O bittorrentsync/bittorrentsync.tar.gz | |
pushd bittorrentsync | |
tar xzfv bittorrentsync.tar.gz | |
cp btsync /usr/bin/ | |
chmod /usr/bin/btsync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginxpgspeedtarball() { | |
if [[ "$NGINX_PAGESPEED" = [yY] ]]; then | |
cd $DIR_TMP | |
# official github master zip renamed | |
if [[ "$NGINX_PAGESPEEDGITMASTER" = [yY] ]]; then | |
cecho "Download release-${NGXPGSPEED_VER}.tar.gz ..." $boldyellow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name domain1.com www.domain1.com domain2.com www.domain2.com; | |
# ngx_pagespeed & ngx_pagespeed handler | |
include /usr/local/nginx/conf/pagespeed.conf; | |
include /usr/local/nginx/conf/pagespeedhandler.conf; | |
include /usr/local/nginx/conf/pagespeedstatslog.conf; | |
access_log /home/nginx/domains/domain1.com/log/access.log combined buffer=32k; | |
error_log /home/nginx/domains/domain1.com/log/error.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
quick fix would be to edit linfo.sh and replace this line | |
tar -xzf linfo-${LINFO_VER}.tar.gz | |
with these 2 lines | |
mkdir -p linfo-${LINFO_VER} | |
tar -xzf linfo-${LINFO_VER}.tar.gz -C linfo-${LINFO_VER} | |
edit and change version number to 1.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download links pertaining to inc/downloads.inc file | |
# some download links have an alternate local mirror link for emergencies | |
# when the primary download link is down | |
CENTOSFIVEEPELFILE="epel-release-5-4.noarch.rpm" | |
CENTOSFIVEEPEL="http://mirror.us.leaseweb.net/epel/5/${ARCH}/${CENTOSFIVEEPELFILE}" | |
CENTOSFIVERPMFORGEFILE="rpmforge-release-0.5.3-1.el5.rf.${ARCH}.rpm" | |
CENTOSFIVERPMFORGE="http://pkgs.repoforge.org/rpmforge-release/${CENTOSFIVERPMFORGEFILE}" |