Skip to content

Instantly share code, notes, and snippets.

View JoshHubi's full-sized avatar

Josh Hubi JoshHubi

View GitHub Profile
@JoshHubi
JoshHubi / memcached-centos6
Last active December 14, 2015 06:19
[RHEL] Installing Memcached CentOS 6 for Lighttpd / PHP
yum install memcached
vi /etc/sysconfig/memcached
# Sample Outputs
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="768"
OPTIONS="-l 127.0.0.1"
chkconfig --levels 235 memcached on
/etc/init.d/memcached start
@JoshHubi
JoshHubi / syslog-ng-centos6
Last active December 14, 2015 06:09
[RHEL] Installing syslog-ng on CentOS 6
wget http://mirrors.einstein.yu.edu/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uhv epel-release-6-8.noarch.rpm
yum install libdbi
yum install libdbi-drivers
yum install libdbi-dbd-mysql
yum install syslog-ng-libdbi
cd /dev
ll log
lrwxrwxrwx 1 root root 12 Dec 9 08:25 log -> /var/run/log
rm log
@JoshHubi
JoshHubi / lighttpd_setup_centos6
Last active December 14, 2015 06:09
Installing Lighttpd With PHP 5 fast-cgi /w MySQL support On CentOS 6.
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -Uhv rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
yum install lighttpd
chkconfig --levels 235 lighttpd on
yum install policycoreutils-python
grep lighttpd /var/log/audit/audit.log | audit2why -e
setsebool -P httpd_setrlimit 1
service auditd restart
/etc/init.d/lighttpd start
yum install lighttpd-fastcgi php-cli